From 116747e4dba29e9e2e4daa82c45d8bbb302e9378 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Mon, 16 Mar 2009 20:05:15 +0000 Subject: [PATCH] Even more rewritten --- inc/autopurge/purge-general.php | 2 +- inc/autopurge/purge-inact.php | 2 +- inc/autopurge/purge-mails.php | 2 +- inc/autopurge/purge-tsks.php | 2 +- inc/autopurge/purge-unconfirmed.php | 2 +- inc/doubler_send.php | 2 +- inc/functions.php | 36 ++++++++++----------- inc/install-inc.php | 16 ++++----- inc/libs/beg_functions.php | 2 +- inc/libs/bonus_functions.php | 4 +-- inc/libs/order_functions.php | 2 +- inc/libs/rallye_functions.php | 2 +- inc/libs/theme_functions.php | 2 +- inc/libs/wernis_functions.php | 2 +- inc/modules/admin/admin-inc.php | 6 ++-- inc/modules/admin/what-admins_mails.php | 4 +-- inc/modules/admin/what-config_autopurge.php | 18 +++++------ inc/modules/admin/what-config_beg.php | 8 ++--- inc/modules/admin/what-config_cats.php | 2 +- inc/modules/admin/what-config_home.php | 2 +- inc/modules/admin/what-config_order.php | 16 ++++----- inc/modules/admin/what-config_other.php | 6 ++-- inc/modules/admin/what-config_payouts.php | 2 +- inc/modules/admin/what-config_refid.php | 8 ++--- inc/modules/admin/what-config_register.php | 2 +- inc/modules/admin/what-config_register2.php | 8 ++--- inc/modules/admin/what-config_removeip.php | 6 ++-- inc/modules/admin/what-config_stats.php | 6 ++-- inc/modules/admin/what-config_surfbar.php | 4 +-- inc/modules/admin/what-config_title.php | 6 ++-- inc/modules/admin/what-config_transfer.php | 4 +-- inc/modules/admin/what-config_yoomedia.php | 6 ++-- inc/modules/admin/what-edit_sponsor.php | 8 ++--- inc/modules/admin/what-edit_user.php | 6 ++-- inc/modules/admin/what-extensions.php | 4 +-- inc/modules/admin/what-guestedit.php | 4 +-- inc/modules/admin/what-memedit.php | 4 +-- inc/modules/admin/what-refbanner.php | 2 +- inc/modules/admin/what-unlock_emails.php | 2 +- inc/modules/guest/what-register.php | 6 ++-- inc/modules/guest/what-sponsor_reg.php | 10 +++--- inc/modules/member/what-mydata.php | 6 ++-- inc/modules/member/what-order.php | 6 ++-- inc/modules/member/what-points.php | 2 +- inc/modules/member/what-refback.php | 2 +- inc/modules/member/what-themes.php | 2 +- inc/modules/member/what-transfer.php | 2 +- inc/modules/sponsor/account.php | 6 ++-- inc/monthly/monthly_beg.php | 4 +-- inc/mysql-manager.php | 6 ++-- 50 files changed, 137 insertions(+), 137 deletions(-) diff --git a/inc/autopurge/purge-general.php b/inc/autopurge/purge-general.php index 0b9cc48045..acaacc33ff 100644 --- a/inc/autopurge/purge-general.php +++ b/inc/autopurge/purge-general.php @@ -44,7 +44,7 @@ if (!defined('__SECURITY')) { } // Abort if autopurge is not active or disabled by admin -if ((!EXT_IS_ACTIVE('autopurge')) || (getConfig('auto_purge_active') != "Y")) { +if ((!EXT_IS_ACTIVE('autopurge')) || (getConfig('auto_purge_active') != 'Y')) { // Abort here return false; } diff --git a/inc/autopurge/purge-inact.php b/inc/autopurge/purge-inact.php index a7a978dcc6..9d630b2058 100644 --- a/inc/autopurge/purge-inact.php +++ b/inc/autopurge/purge-inact.php @@ -43,7 +43,7 @@ if (!defined('__SECURITY')) { } // END - if // Abort if autopurge is not active or disabled by admin -if ((!EXT_IS_ACTIVE('autopurge')) || (getConfig('auto_purge_active') != "Y")) { +if ((!EXT_IS_ACTIVE('autopurge')) || (getConfig('auto_purge_active') != 'Y')) { // Abort here return false; } // END - if diff --git a/inc/autopurge/purge-mails.php b/inc/autopurge/purge-mails.php index 61d2f2babc..05c3242fb4 100644 --- a/inc/autopurge/purge-mails.php +++ b/inc/autopurge/purge-mails.php @@ -43,7 +43,7 @@ if (!defined('__SECURITY')) { } // END - if // Abort if autopurge is not active or disabled by admin -if ((!EXT_IS_ACTIVE('autopurge')) || (getConfig('auto_purge_active') != "Y")) { +if ((!EXT_IS_ACTIVE('autopurge')) || (getConfig('auto_purge_active') != 'Y')) { // Abort here return false; } // END - if diff --git a/inc/autopurge/purge-tsks.php b/inc/autopurge/purge-tsks.php index 5a19d67782..1903319a0f 100644 --- a/inc/autopurge/purge-tsks.php +++ b/inc/autopurge/purge-tsks.php @@ -43,7 +43,7 @@ if (!defined('__SECURITY')) { } // END - if // Abort if autopurge is not active or disabled by admin -if ((!EXT_IS_ACTIVE('autopurge')) || (getConfig('auto_purge_active') != "Y")) { +if ((!EXT_IS_ACTIVE('autopurge')) || (getConfig('auto_purge_active') != 'Y')) { // Abort here return false; } // END - if diff --git a/inc/autopurge/purge-unconfirmed.php b/inc/autopurge/purge-unconfirmed.php index 0c6861c389..152689ba98 100644 --- a/inc/autopurge/purge-unconfirmed.php +++ b/inc/autopurge/purge-unconfirmed.php @@ -43,7 +43,7 @@ if (!defined('__SECURITY')) { } // END - if // Abort if autopurge is not active or disabled by admin -if ((!EXT_IS_ACTIVE('autopurge')) || (getConfig('auto_purge_active') != "Y")) { +if ((!EXT_IS_ACTIVE('autopurge')) || (getConfig('auto_purge_active') != 'Y')) { // Abort here return false; } // END - if diff --git a/inc/doubler_send.php b/inc/doubler_send.php index bcc9af7c82..b9f06e0191 100644 --- a/inc/doubler_send.php +++ b/inc/doubler_send.php @@ -77,7 +77,7 @@ ORDER BY d.timemark LIMIT %d", array($DOUBLER_POINTS, $min, getConfig('doubler_max_sent')), __FILE__, __LINE__); // Do we have entries found? -if (((SQL_NUMROWS($result_total) > 0) && (getConfig('doubler_sent_all') == 'Y')) || ((SQL_NUMROWS($result_main) == getConfig('doubler_group_sent')) && (getConfig('doubler_sent_all') != "Y"))) { +if (((SQL_NUMROWS($result_total) > 0) && (getConfig('doubler_sent_all') == 'Y')) || ((SQL_NUMROWS($result_main) == getConfig('doubler_group_sent')) && (getConfig('doubler_sent_all') != 'Y'))) { // Switch to matching SQL resource $result_load = $result_main; if ((SQL_NUMROWS($result_total) > 0) && (getConfig('doubler_sent_all') == 'Y')) $result_load = $result_total; diff --git a/inc/functions.php b/inc/functions.php index 025f936e7d..a04e852dad 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -1101,7 +1101,7 @@ function array_pk_sort (&$array, $a_sort, $primary_key = 0, $order = -1, $nums = function ADD_SELECTION ($type, $DEFAULT, $prefix="", $id="0") { $OUT = ''; - if ($type == "yn") { + if ($type == 'yn') { // This is a yes/no selection only! if ($id > 0) $prefix .= "[".$id."]"; $OUT .= " \n"; for ($idx = 0; $idx <= 10; $idx++) { $OUT .= " \n"; } diff --git a/inc/libs/rallye_functions.php b/inc/libs/rallye_functions.php index 32a205e40c..0a11d0f1a4 100644 --- a/inc/libs/rallye_functions.php +++ b/inc/libs/rallye_functions.php @@ -700,7 +700,7 @@ function RALLYE_TEMPLATE_SELECTION ($name="template", $default="") { \n"; foreach ($ral as $rallye) { $OUT .= "