}
// Add description as navigation point
-ADD_DESCR("admin", __FILE__);
+ADD_DESCR('admin', __FILE__);
// Init variable
$SEL = 0;
if (IS_FORM_SENT()) {
// Fix older calls from add-new-banner-form
- if (!REQUEST_ISSET_GET(('mode'))) REQUEST_SET_GET('mode', "add");
- $sql = "";
+ if (!REQUEST_ISSET_GET(('mode'))) REQUEST_SET_GET('mode', 'add');
+ $sql = '';
switch (REQUEST_GET('mode'))
{
- case "add":
+ case 'add':
// Check if banner is already added
$result = SQL_QUERY_ESC("SELECT id FROM `{!_MYSQL_PREFIX!}_refbanner` WHERE url='%s' LIMIT 1",
array(REQUEST_POST('url')), __FILE__, __LINE__);
} else {
$content = "<span class=\"admin_failed\">{--SETTINGS_NOT_SAVED--}</span>";
}
- LOAD_TEMPLATE("admin_settings_saved", false, $content);
+ LOAD_TEMPLATE('admin_settings_saved', false, $content);
} elseif (($SEL > 0) && (REQUEST_ISSET_POST('edit'))) {
// Edit banner
- $SW = ""; $OUT = "";
+ $SW = ''; $OUT = '';
foreach (REQUEST_POST('sel') as $id => $sel) {
// Load data
$result = SQL_QUERY_ESC("SELECT url, alternate, visible FROM `{!_MYSQL_PREFIX!}_refbanner` WHERE id=%s LIMIT 1",
__FILE__, __LINE__);
if (SQL_NUMROWS($result) > 0) {
// Make referal banner editable and deletable
- $OUT = ""; $SW = 2;
+ $OUT = ''; $SW = 2;
while ($content = SQL_FETCHARRAY($result)) {
// Preapre data for the row
// @TODO Rewritings: alt->alternate,cnt->counter,clx->clicks in template