Changeset 1408 in ExiteCMS
- Timestamp:
- 05/15/08 22:25:54 (4 years ago)
- Location:
- branches/PLi-Fusion
- Files:
-
- 35 edited
- 4 copied
-
administration/forums.php (modified) (1 diff)
-
administration/index.php (modified) (1 diff)
-
administration/settings_messages.php (modified) (2 diffs)
-
administration/tools/language_pack_English.php (modified) (10 diffs)
-
administration/tools/language_pack_Nederlands.php (modified) (13 diffs)
-
administration/upgrade/rev01070.php (modified) (1 diff)
-
administration/upgrade/rev01308.php (modified) (1 diff)
-
administration/upgrade/rev01350.php (copied) (copied from trunk/administration/upgrade/rev01350.php)
-
administration/upgrade/rev01400.php (copied) (copied from trunk/administration/upgrade/rev01400.php)
-
feeds.php (modified) (4 diffs)
-
files/locales/en.main.global.php (modified) (3 diffs)
-
files/locales/en.main.setup.php (modified) (2 diffs)
-
forum/viewposts.php (copied) (copied from trunk/forum/viewposts.php)
-
forum/viewthread.php (modified) (1 diff)
-
includes/core_functions.php (modified) (3 diffs)
-
includes/db_functions.php (modified) (1 diff)
-
includes/dbsetup_include.php (modified) (10 diffs)
-
includes/font2image.php (modified) (8 diffs)
-
includes/forum_functions_include.php (modified) (2 diffs)
-
includes/photo_functions_include.php (modified) (1 diff)
-
includes/templates/admin.404pages.tpl (modified) (1 diff)
-
includes/templates/admin.download_cats.tpl (modified) (1 diff)
-
includes/templates/admin.settings_messages.tpl (modified) (6 diffs)
-
includes/templates/forum.index.tpl (modified) (1 diff)
-
includes/templates/forum.post.tpl (modified) (2 diffs)
-
includes/templates/forum.renderpost.tpl (modified) (2 diffs)
-
includes/templates/forum.viewforum.tpl (modified) (1 diff)
-
includes/templates/forum.viewposts.tpl (copied) (copied from trunk/includes/templates/forum.viewposts.tpl)
-
includes/templates/main.pm.options.tpl (modified) (6 diffs)
-
includes/templates/main.pm.renderpm.tpl (modified) (3 diffs)
-
includes/templates/main.pm.tpl (modified) (4 diffs)
-
includes/user_functions.php (modified) (3 diffs)
-
lostpassword.php (modified) (1 diff)
-
modules/user_info_panel/templates/modules.user_info_panel.tpl (modified) (3 diffs)
-
modules/user_info_panel/user_info_panel.php (modified) (1 diff)
-
pm.php (modified) (9 diffs)
-
register.php (modified) (3 diffs)
-
search.php (modified) (2 diffs)
-
setup.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/PLi-Fusion/administration/forums.php
r1227 r1408 221 221 $result = dbquery(" 222 222 SELECT DISTINCT u.user_id, u.user_level, u.user_groups 223 FROM ".$db_prefix "threads_read tr223 FROM ".$db_prefix."threads_read tr 224 224 LEFT JOIN ".$db_prefix."users u ON u.user_id = tr.user_id 225 225 WHERE tr.thread_id = '".$thread_id."' -
branches/PLi-Fusion/administration/index.php
r1335 r1408 109 109 $variables['statistics']['members_deleted'] = dbcount("(user_id)", "users", "user_status='3'"); 110 110 $variables['statistics']['comments'] = dbcount("(comment_id)", "comments"); 111 $variables['statistics']['shouts'] = dbcount("(shout_id)", "shoutbox"); 111 if (dbtable_exists($db_prefix."shoutbox")) { 112 $variables['statistics']['shouts'] = dbcount("(shout_id)", "shoutbox"); 113 } else { 114 $variables['statistics']['shouts'] = 0; 115 } 112 116 $variables['statistics']['posts'] = dbcount("(post_id)", "posts"); 113 117 -
branches/PLi-Fusion/administration/settings_messages.php
r1227 r1408 32 32 33 33 if (isset($_POST['saveoptions'])) { 34 // validate the input 35 $pm_inbox = (isset($_POST['pm_inbox']) && isNum($_POST['pm_inbox'])) ? $_POST['pm_inbox'] : 25; 36 $pm_sentbox = (isset($_POST['pm_sentbox']) && isNum($_POST['pm_sentbox'])) ? $_POST['pm_sentbox'] : 25; 37 $pm_savebox = (isset($_POST['pm_savebox']) && isNum($_POST['pm_savebox'])) ? $_POST['pm_savebox'] : 100; 38 $pm_inbox_group = (isset($_POST['pm_inbox_group']) && isNum($_POST['pm_inbox_group'])) ? $_POST['pm_inbox_group'] : 101; 39 $pm_sentbox_group = (isset($_POST['pm_sentbox_group']) && isNum($_POST['pm_sentbox_group'])) ? $_POST['pm_sentbox_group'] : 101; 40 $pm_savebox_group = (isset($_POST['pm_savebox_group']) && isNum($_POST['pm_savebox_group'])) ? $_POST['pm_savebox_group'] : 101; 41 $pm_send2group = (isset($_POST['pm_send2group']) && isNum($_POST['pm_send2group'])) ? $_POST['pm_send2group'] : 103; 42 $pm_hide_rcpts = (isset($_POST['pm_hide_rcpts']) && isNum($_POST['pm_hide_rcpts'])) ? $_POST['pm_hide_rcpts'] : 0; 34 43 // update the mailbox sizes 35 $result = dbquery("UPDATE ".$db_prefix."configuration SET cfg_value = '".$_POST['pm_inbox']."' WHERE cfg_name = 'pm_inbox'"); 36 $result = dbquery("UPDATE ".$db_prefix."configuration SET cfg_value = '".$_POST['pm_sentbox']."' WHERE cfg_name = 'pm_sentbox'"); 37 $result = dbquery("UPDATE ".$db_prefix."configuration SET cfg_value = '".$_POST['pm_savebox']."' WHERE cfg_name = 'pm_savebox'"); 38 $result = dbquery("UPDATE ".$db_prefix."configuration SET cfg_value = '".$_POST['pm_send2group']."' WHERE cfg_name = 'pm_send2group'"); 39 $result = dbquery("UPDATE ".$db_prefix."configuration SET cfg_value = '".$_POST['pm_hide_rcpts']."' WHERE cfg_name = 'pm_hide_rcpts'"); 44 $result = dbquery("UPDATE ".$db_prefix."configuration SET cfg_value = '".$pm_inbox."' WHERE cfg_name = 'pm_inbox'"); 45 $result = dbquery("UPDATE ".$db_prefix."configuration SET cfg_value = '".$pm_sentbox."' WHERE cfg_name = 'pm_sentbox'"); 46 $result = dbquery("UPDATE ".$db_prefix."configuration SET cfg_value = '".$pm_savebox."' WHERE cfg_name = 'pm_savebox'"); 47 $result = dbquery("UPDATE ".$db_prefix."configuration SET cfg_value = '".$pm_inbox_group."' WHERE cfg_name = 'pm_inbox_group'"); 48 $result = dbquery("UPDATE ".$db_prefix."configuration SET cfg_value = '".$pm_sentbox_group."' WHERE cfg_name = 'pm_sentbox_group'"); 49 $result = dbquery("UPDATE ".$db_prefix."configuration SET cfg_value = '".$pm_savebox_group."' WHERE cfg_name = 'pm_savebox_group'"); 50 $result = dbquery("UPDATE ".$db_prefix."configuration SET cfg_value = '".$pm_send2group."' WHERE cfg_name = 'pm_send2group'"); 51 $result = dbquery("UPDATE ".$db_prefix."configuration SET cfg_value = '".$pm_hide_rcpts."' WHERE cfg_name = 'pm_hide_rcpts'"); 40 52 // update the global pm settings 41 53 dbquery("UPDATE ".$db_prefix."pm_config SET pmconfig_email_notify = '".$_POST['pm_email_notify']."', pmconfig_read_notify = '".$_POST['pm_read_notify']."', pmconfig_save_sent = '".$_POST['pm_save_sent']."', pmconfig_auto_archive = '".$_POST['pm_auto_archive']."', pmconfig_view = '".$_POST['pm_view']."' WHERE user_id='0'"); … … 50 62 $data = dbarray(dbquery("SELECT * FROM ".$db_prefix."configuration WHERE cfg_name = 'pm_savebox'")); 51 63 $variables['pm_savebox'] = $data['cfg_value']; 64 $data = dbarray(dbquery("SELECT * FROM ".$db_prefix."configuration WHERE cfg_name = 'pm_inbox_group'")); 65 $variables['pm_inbox_group'] = $data['cfg_value']; 66 $data = dbarray(dbquery("SELECT * FROM ".$db_prefix."configuration WHERE cfg_name = 'pm_sentbox_group'")); 67 $variables['pm_sentbox_group'] = $data['cfg_value']; 68 $data = dbarray(dbquery("SELECT * FROM ".$db_prefix."configuration WHERE cfg_name = 'pm_savebox_group'")); 69 $variables['pm_savebox_group'] = $data['cfg_value']; 52 70 $data = dbarray(dbquery("SELECT * FROM ".$db_prefix."configuration WHERE cfg_name = 'pm_send2group'")); 53 71 $variables['pm_send2group'] = $data['cfg_value']; -
branches/PLi-Fusion/administration/tools/language_pack_English.php
r1343 r1408 969 969 $localestrings['720'] = "Enable group messages for:"; 970 970 $localestrings['721'] = "Show all recipients of a message:"; 971 $localestrings['722'] = "No Inbox message limit for:"; 972 $localestrings['723'] = "No Outbox message limit for:"; 973 $localestrings['724'] = "No Archive message limit for:"; 974 $localestrings['725'] = "- no one -"; 971 975 $localestrings['750'] = "Save Settings"; 972 976 $localestrings['751'] = "<< Prev"; … … 2125 2129 $localestrings['412'] = "Page: "; 2126 2130 $localestrings['413'] = "RSS Feed"; 2131 $localestrings['414'] = "View all posts"; 2127 2132 $localestrings['430'] = "download(s)"; 2128 2133 $localestrings['450'] = "View Forum"; … … 2315 2320 $localestrings['472']['12'] = "violet"; 2316 2321 $localestrings['472']['13'] = "black"; 2317 $localestrings['472']['14'] = "gr ay";2322 $localestrings['472']['14'] = "grey"; 2318 2323 $localestrings['472']['15'] = "silver"; 2319 2324 $localestrings['472']['16'] = "white"; … … 2491 2496 $localestrings['026'] = "My Recent Threads"; 2492 2497 $localestrings['027'] = "My Recent Posts"; 2498 $localestrings['027a'] = "All Posts"; 2493 2499 $localestrings['028'] = "New Posts"; 2494 2500 $localestrings['029'] = "Latest News"; … … 2543 2549 $localestrings['083'] = "CMS Administration"; 2544 2550 $localestrings['084'] = "Logout"; 2545 $localestrings['085'] = "%u private ";2546 $localestrings['086'] = " message";2547 $localestrings['087'] = " messages";2548 $localestrings['088'] = " post";2549 $localestrings['089'] = " posts";2550 $localestrings['090'] = " %u new forum";2551 $localestrings['085'] = "%u private message"; 2552 $localestrings['086'] = "%u private messages"; 2553 $localestrings['087'] = "Downloads"; 2554 $localestrings['088'] = "%u new forum post"; 2555 $localestrings['089'] = "%u new forum posts"; 2556 $localestrings['090'] = "Posts"; 2551 2557 $localestrings['091'] = "Mark all read"; 2552 2558 $localestrings['100'] = "Member Poll"; … … 2620 2626 $localestrings['408'] = "Send me a new password"; 2621 2627 $localestrings['409'] = "New password for "; 2622 $localestrings['410'] = "Hello [USER _NAME],\n\nYou have or someone has requested a new password to access your [SITENAME] account.\n\nTo change your password please click the following link:\n\n[NEW_PASS_LINK]\n\nRegards,\n[SITEUSERNAME]";2623 $localestrings['411'] = "Hello [USER _NAME],\n\nYour new password to access your [SITENAME] account is:\n\n[NEW_PASS]\n\nRegards,\n[SITEUSERNAME]";2628 $localestrings['410'] = "Hello [USERNAME],\n\nYou have or someone has requested a new password to access your [SITENAME] account.\n\nTo change your password please click the following link:\n\n[NEW_PASS_LINK]\n\nRegards,\n[SITEUSERNAME]"; 2629 $localestrings['411'] = "Hello [USERNAME],\n\nYour new password to access your [SITENAME] account is:\n\n[NEW_PASS]\n\nRegards,\n[SITEUSERNAME]"; 2624 2630 load_localestrings($localestrings, LP_LOCALE, "main.lostpassword", $step); 2625 2631 … … 2867 2873 $localestrings['414'] = "Email address %s does not exist<br>(according to the mailserver %s)."; 2868 2874 $localestrings['449'] = "Welcome to %s"; 2869 $localestrings['450'] = "Hello [USER _NAME],\n\nWelcome to [SITENAME]. Here are your login details:\n\nUsername: [USERNAME]\nFullname: [FULLNAME]\nPassword: [PASSWORD]\n\nPlease activate your account via the following link:\n";2875 $localestrings['450'] = "Hello [USERNAME],\n\nWelcome to [SITENAME]. Here are your login details:\n\nUsername: [USERNAME]\nFullname: [FULLNAME]\nPassword: [PASSWORD]\n\nPlease activate your account via the following link:\n"; 2870 2876 $localestrings['451'] = "Registration complete"; 2871 2877 $localestrings['452'] = "You can now log in."; … … 3135 3141 $localestrings['u901'] = "Full Name"; 3136 3142 load_localestrings($localestrings, LP_LOCALE, "main.user_fields", $step); 3137 3138 $localestrings = array();3139 $localestrings['400'] = "Webshop";3140 $localestrings['410'] = "Select your shop. The shop currently selected is highlighted";3141 $localestrings['411'] = "<b>Note:</b><br />3142 <img src='".THEME."images/bullet.gif' /> If you don't live in these area's of the world, check out all shops to see which one has the best delivery fees for your country <br />3143 <img src='".THEME."images/bullet.gif' /> Sometimes the shop has session issues. If the shop doesn't display as expected, click on the 'Shop' button to reload the shop<br />3144 <img src='".THEME."images/bullet.gif' /> Every shop uses different suppliers. Not all products are available in all shops3145 ";3146 load_localestrings($localestrings, LP_LOCALE, "main.webshop", $step);3147 3148 3143 return ""; 3149 3144 } … … 3182 3177 if (!defined('LP_CHARSET')) define('LP_CHARSET', "iso-8859-1"); 3183 3178 if (!defined('LP_VERSION')) define('LP_VERSION', "7.10"); 3184 if (!defined('LP_DATE')) define('LP_DATE', "12 04579858");3185 $lp_date = "12 04579858";3179 if (!defined('LP_DATE')) define('LP_DATE', "1210855263"); 3180 $lp_date = "1210855263"; 3186 3181 3187 3182 /*---------------------------------------------------+ … … 3241 3236 // install the language pack 3242 3237 if ($step == "install" || $step == "upgrade") { 3243 if ($step == "install" ) {3238 if ($step == "install" || defined('CMS_SETUP_LOAD')) { 3244 3239 $result = dbquery("INSERT INTO ".$db_prefix."locale (locale_code, locale_name, locale_locale, locale_charset, locale_active) VALUES ('".LP_LOCALE."', '".LP_LANGUAGE."', '".LP_LOCALES."', '".LP_CHARSET."', 1)"); 3245 3240 } -
branches/PLi-Fusion/administration/tools/language_pack_Nederlands.php
r1343 r1408 969 969 $localestrings['720'] = "Sta berichten naar groepen toe voor:"; 970 970 $localestrings['721'] = "Toon alle ontvangers van een bericht:"; 971 $localestrings['722'] = "Geen maximum op de Inbox voor:"; 972 $localestrings['723'] = "Geen maximum op de Outbox voor:"; 973 $localestrings['724'] = "Geen maxumum op het Archief voor:"; 974 $localestrings['725'] = "- niemand -"; 971 975 $localestrings['750'] = "Instellingen bewaren"; 972 976 $localestrings['751'] = "<< Vorige"; … … 2125 2129 $localestrings['412'] = "Pagina: "; 2126 2130 $localestrings['413'] = "RSS Feed"; 2131 $localestrings['414'] = "Bekijk alle berichten"; 2127 2132 $localestrings['430'] = "download(s)"; 2128 2133 $localestrings['450'] = "Bekijk forum"; … … 2491 2496 $localestrings['026'] = "Mijn recente topics"; 2492 2497 $localestrings['027'] = "Mijn recente berichten"; 2498 $localestrings['027a'] = "Alle berichten"; 2493 2499 $localestrings['028'] = "Nieuwe berichten"; 2494 2500 $localestrings['029'] = "Laatste nieuws"; … … 2543 2549 $localestrings['083'] = "CMS Administratie"; 2544 2550 $localestrings['084'] = "Afmelden"; 2545 $localestrings['085'] = "%u privé ";2546 $localestrings['086'] = " bericht";2547 $localestrings['087'] = " berichten";2548 $localestrings['088'] = " bericht";2549 $localestrings['089'] = " e berichten";2550 $localestrings['090'] = " %u nieuw";2551 $localestrings['085'] = "%u privé bericht"; 2552 $localestrings['086'] = "%u privé berichten"; 2553 $localestrings['087'] = "Downloads"; 2554 $localestrings['088'] = "%u nieuw bericht"; 2555 $localestrings['089'] = "%u nieuwe berichten"; 2556 $localestrings['090'] = "Berichten"; 2551 2557 $localestrings['091'] = "Alles gelezen"; 2552 2558 $localestrings['100'] = "Leden Poll"; … … 2557 2563 $localestrings['105'] = "Stemmen: "; 2558 2564 $localestrings['106'] = "Gestart: "; 2559 $localestrings['107'] = "Geeindi d: ";2565 $localestrings['107'] = "Geeindigd: "; 2560 2566 $localestrings['108'] = "Poll Archief"; 2561 2567 $localestrings['109'] = "Selecteer de poll die u wilt bekijken uit de lijst:"; … … 2620 2626 $localestrings['408'] = "Send me a new password"; 2621 2627 $localestrings['409'] = "Nieuw wachtwoord voor "; 2622 $localestrings['410'] = "Hallo [USER _NAME],\n\nU of iemand anders heeft een nieuw wachtwoord aangevraagd voor toegang tot [SITENAME].\n\nOm het wachtwoord aan te passen, klik op deze link:\n\n[NEW_PASS_LINK]\n\nMet vriendelijke groeten,\n[SITEUSERNAME]";2623 $localestrings['411'] = "Hallo [USER _NAME],\n\nUw nieuwe wachtwoord om aan te melden op [SITENAME] is:\n\n[NEW_PASS]\n\nMet vriendelijke groeten,\n[SITEUSERNAME]";2628 $localestrings['410'] = "Hallo [USERNAME],\n\nU of iemand anders heeft een nieuw wachtwoord aangevraagd voor toegang tot [SITENAME].\n\nOm het wachtwoord aan te passen, klik op deze link:\n\n[NEW_PASS_LINK]\n\nMet vriendelijke groeten,\n[SITEUSERNAME]"; 2629 $localestrings['411'] = "Hallo [USERNAME],\n\nUw nieuwe wachtwoord om aan te melden op [SITENAME] is:\n\n[NEW_PASS]\n\nMet vriendelijke groeten,\n[SITEUSERNAME]"; 2624 2630 load_localestrings($localestrings, LP_LOCALE, "main.lostpassword", $step); 2625 2631 … … 2807 2813 $localestrings['624'] = "Opties bewaard"; 2808 2814 $localestrings['625'] = "Er is een nieuw privé bericht voor u op %s"; 2809 $localestrings['626'] = ",\nU hebt een nieuw privé bericht ontvangen op % 1\$s. U kunt dit bericht lezen op %2\$spm.php\n\nU kunt verdere notificaties uitschakelen via het optie paneel in het privé berichten scherm indien u niet langer prijs stelt op deze berichten.";2815 $localestrings['626'] = ",\nU hebt een nieuw privé bericht ontvangen op %2\$s van '%1\$s'. U kunt dit bericht lezen op %3\$spm.php\n\nU kunt verdere notificaties uitschakelen via het optie paneel in het privé berichten scherm indien u niet langer prijs stelt op deze berichten."; 2810 2816 $localestrings['627'] = "Fout"; 2811 2817 $localestrings['628'] = "Privé bericht kan niet verzonden worden. De inbox van de ontvanger is vol."; … … 2867 2873 $localestrings['414'] = "Volgens de mailserver %2\$s bestaat het email adres %1\$s niet."; 2868 2874 $localestrings['449'] = "Welkom op %s"; 2869 $localestrings['450'] = "Hallo [USER _NAME],\n\nWelkom op [SITENAME]. Hier zijn uw aanmeldgegevens:\n\nGebruikersnaam: [USERNAME]\nVolledige naam: [FULLNAME]\nWachtwoord: [PASSWORD]\n\nKlik op deze link om uw aanmelding te activeren:\n";2875 $localestrings['450'] = "Hallo [USERNAME],\n\nWelkom op [SITENAME]. Hier zijn uw aanmeldgegevens:\n\nGebruikersnaam: [USERNAME]\nVolledige naam: [FULLNAME]\nWachtwoord: [PASSWORD]\n\nKlik op deze link om uw aanmelding te activeren:\n"; 2870 2876 $localestrings['451'] = "Registratie compleet"; 2871 2877 $localestrings['452'] = "U kunt u nu aanmelden."; … … 3000 3006 $localestrings['463'] = "Blokkeren"; 3001 3007 $localestrings['464'] = "Commentaar"; 3002 $localestrings['465'] = "Dynamische pagina 's";3008 $localestrings['465'] = "Dynamische pagina\'s"; 3003 3009 $localestrings['466'] = "Database backup"; 3004 3010 $localestrings['467'] = "Download categorieen"; … … 3064 3070 $localestrings['552'] = "Beveiliging"; 3065 3071 $localestrings['553'] = "Software"; 3066 $localestrings['554'] = "Thema 's";3072 $localestrings['554'] = "Thema\'s"; 3067 3073 $localestrings['555'] = "Windows"; 3068 3074 $localestrings['560'] = "Sorry, maar het door u gevraagde document kan niet op de server gevonden worden."; … … 3071 3077 $localestrings['563'] = "De beste kans om te vinden wat je zoek is te starten op onze home pagina, (<a href=\"/\">klik hier om daar na toe te gaan</a>), de opties in het menu te bekijken, of gebruik te maken van de zoek optie in het menu."; 3072 3078 $localestrings['564'] = "Als dat geen resultaat mocht opleveren, en u weet zeker dat het document dat u zoekt op deze website te vinden moet zijn, stuur dat een website beheerder een privé bericht (alleen voor geregistreerde gebruikers)."; 3073 $localestrings['580'] = "De installatie is klaar, ExiteCMS is nu klaar voor gebruik.<br>\n<a href='index.php'>Klik hier</a> om naar uw ExiteCMS powered website te gaan.<br>\n<b>Opmerking:</b> voor uw veiligheid kunt u het best nu het bestand setup.php van uw server verwijderen<br>\ en de rechten op het bestand config op alleen lezen zetten (chmod 644).<br><br>\nWij danken u voor uw keuze voor ExiteCMS.";3079 $localestrings['580'] = "De installatie is klaar, ExiteCMS is nu klaar voor gebruik.<br>\n<a href='index.php'>Klik hier</a> om naar uw ExiteCMS powered website te gaan.<br>\n<b>Opmerking:</b> voor uw veiligheid kunt u het best nu het bestand setup.php van uw server verwijderen<br>\nen de rechten op het bestand config op alleen lezen zetten (chmod 644).<br><br>\nWij danken u voor uw keuze voor ExiteCMS."; 3074 3080 $localestrings['title'] = "ExiteCMS Setup"; 3075 3081 load_localestrings($localestrings, LP_LOCALE, "main.setup", $step); … … 3171 3177 if (!defined('LP_CHARSET')) define('LP_CHARSET', "iso-8859-1"); 3172 3178 if (!defined('LP_VERSION')) define('LP_VERSION', "7.10"); 3173 if (!defined('LP_DATE')) define('LP_DATE', "12 04579862");3174 $lp_date = "12 04579862";3179 if (!defined('LP_DATE')) define('LP_DATE', "1210855268"); 3180 $lp_date = "1210855268"; 3175 3181 3176 3182 /*---------------------------------------------------+ … … 3230 3236 // install the language pack 3231 3237 if ($step == "install" || $step == "upgrade") { 3232 if ($step == "install" ) {3238 if ($step == "install" || defined('CMS_SETUP_LOAD')) { 3233 3239 $result = dbquery("INSERT INTO ".$db_prefix."locale (locale_code, locale_name, locale_locale, locale_charset, locale_active) VALUES ('".LP_LOCALE."', '".LP_LANGUAGE."', '".LP_LOCALES."', '".LP_CHARSET."', 1)"); 3234 3240 } -
branches/PLi-Fusion/administration/upgrade/rev01070.php
r1124 r1408 42 42 locales_key varchar(25) NOT NULL default '', 43 43 locales_value TEXT NOT NULL default '', 44 locales_datestamp INT(10) UNSIGNED NOT NULL default '',44 locales_datestamp INT(10) UNSIGNED NOT NULL default 0, 45 45 PRIMARY KEY (locales_id) 46 46 ) ENGINE=MyISAM;"); -
branches/PLi-Fusion/administration/upgrade/rev01308.php
r1335 r1408 30 30 31 31 // update the threads_read table 32 $commands[] = array('type' => 'db', 'value' => "ALTER TABLE ".$db_prefix."threads_read CHANGE thread_page thread_first_read INT(10) UNSIGNED NOT NULL DEFAULT '9999999999'");33 $commands[] = array('type' => 'db', 'value' => "ALTER TABLE ".$db_prefix."threads_read CHANGE thread_last_read thread_last_read INT(10) UNSIGNED NOT NULL DEFAULT '0'");32 $commands[] = array('type' => 'db', 'value' => "ALTER TABLE ".$db_prefix."threads_read CHANGE thread_page thread_first_read INT(10) UNSIGNED NOT NULL DEFAULT 4294967295"); 33 $commands[] = array('type' => 'db', 'value' => "ALTER TABLE ".$db_prefix."threads_read CHANGE thread_last_read thread_last_read INT(10) UNSIGNED NOT NULL DEFAULT 0"); 34 34 35 35 ?> -
branches/PLi-Fusion/feeds.php
r1227 r1408 55 55 // $channel['lastBuildDate'] = ""; 56 56 $channel['generator'] = "ExiteCMS RSS Feed Generator v1.0"; 57 $channel['webMaster'] = $settings['siteemail'] ;57 $channel['webMaster'] = $settings['siteemail']." (Feed Manager)"; 58 58 $channels[] = $channel; 59 59 $channel_count = count($channels); … … 72 72 $item['description'] = "<![CDATA[ ".(strlen($data['post_message']) > 500 ? (substr($data['post_message'],0,496)." ...") : $data['post_message'])." ]]>"; 73 73 $item['pubDate'] = strftime("%a, %d %b %G %T %z", $data['post_datestamp']); 74 // $item['guid'] = ""; 74 $item['guid'] = $item['link']; // make the guid equal to the link, we don't have a need for permalinks 75 75 $feed[] = $item; 76 76 } … … 89 89 header("Content-type: text/xml; charset=".$settings['charset']); 90 90 echo "<?xml version=\"1.0\" encoding=\"".$settings['charset']."\"?>\n"; 91 echo "<rss version=\"2.0\" >\n";91 echo "<rss version=\"2.0\" xmlns:atom=\"http://www.w3.org/2005/Atom\">\n"; 92 92 93 93 // loop through the channels … … 95 95 // opening: channel information 96 96 echo "\t<channel>\n"; 97 // atom backlink to the channel 98 echo "\t\t<atom:link href=\"".$settings['siteurl'].FUSION_SELF."?".FUSION_QUERY."\" rel=\"self\" type=\"application/rss+xml\" />\n"; 97 99 foreach ($channel as $tag => $value) { 98 100 echo "\t\t<".$tag.">".$value."</".$tag.">\n"; -
branches/PLi-Fusion/files/locales/en.main.global.php
r1343 r1408 3 3 // locale : English 4 4 // locale name : main.global 5 // generated on : Mon Mar 3 2008, 22:47:24 CET5 // generated on : Thu May 15 2008, 22:16:36 CEST 6 6 // ---------------------------------------------------------- 7 7 $locale['001'] = "Navigation"; … … 27 27 $locale['026'] = "My Recent Threads"; 28 28 $locale['027'] = "My Recent Posts"; 29 $locale['027a'] = "All Posts"; 29 30 $locale['028'] = "New Posts"; 30 31 $locale['029'] = "Latest News"; … … 79 80 $locale['083'] = "CMS Administration"; 80 81 $locale['084'] = "Logout"; 81 $locale['085'] = "%u private ";82 $locale['086'] = " message";83 $locale['087'] = " messages";84 $locale['088'] = " post";85 $locale['089'] = " posts";86 $locale['090'] = " %u new forum";82 $locale['085'] = "%u private message"; 83 $locale['086'] = "%u private messages"; 84 $locale['087'] = "Downloads"; 85 $locale['088'] = "%u new forum post"; 86 $locale['089'] = "%u new forum posts"; 87 $locale['090'] = "Posts"; 87 88 $locale['091'] = "Mark all read"; 88 89 $locale['100'] = "Member Poll"; -
branches/PLi-Fusion/files/locales/en.main.setup.php
r1192 r1408 3 3 // locale : English 4 4 // locale name : main.setup 5 // generated on : Wed Nov 28 2007, 19:16:14 CET5 // generated on : Thu May 15 2008, 14:41:03 CEST 6 6 // translators : ExiteCMS team,WanWizard 7 7 // ---------------------------------------------------------- … … 49 49 $locale['471'] = "Images"; 50 50 $locale['472'] = "Modules & Plugins"; 51 $locale['473'] = " x";51 $locale['473'] = "Blogs"; 52 52 $locale['474'] = "Members"; 53 53 $locale['475'] = "News"; -
branches/PLi-Fusion/forum/viewthread.php
r1343 r1408 325 325 $data['group_names'] = array(); 326 326 $data['group_names'][] = array('type' => 'U', 'level' => $data['user_level'], 'name' => getuserlevel($data['user_level'])); 327 if ($data['user_groups'] != "") { 328 $gresult = dbquery("SELECT group_name, group_forumname, group_color FROM ".$db_prefix."user_groups WHERE group_id IN (".str_replace('.', ',', substr($data['user_groups'],1)).") AND group_visible & 2"); 329 $grecs = dbrows($gresult); 330 while ($gdata = dbarray($gresult)) { 331 $data['group_names'][] = array('type' => 'G', 'color' => $gdata['group_color'], 'name' => $gdata['group_forumname']==""?$gdata['group_name']:$gdata['group_forumname']); 327 328 if ($data['user_groups']) { 329 $groups = (strpos($data['user_groups'], ".") == 0 ? explode(".", substr($data['user_groups'], 1)) : explode(".", $data['user_groups'])); 330 foreach ($groups as $group) { 331 // check if this groups has subgroups. If so, add them to the array 332 getsubgroups($group); 333 } 334 for ($i = 0;$i < count($groups);$i++) { 335 $gresult = dbquery("SELECT group_name, group_forumname, group_color FROM ".$db_prefix."user_groups WHERE group_id='".$groups[$i]."' AND group_visible & 2"); 336 if(dbrows($gresult)) { 337 $gdata = dbarray($gresult); 338 $data['group_names'][] = array('type' => 'G', 'color' => $gdata['group_color'], 'name' => $gdata['group_forumname']==""?$gdata['group_name']:$gdata['group_forumname']); 339 } 332 340 } 333 341 } -
branches/PLi-Fusion/includes/core_functions.php
r1335 r1408 49 49 // prevent any possible XSS attacks via $_GET. 50 50 foreach ($_GET as $check_url) { 51 if ((eregi("<[^>]*script*\"?[^>]*>", $check_url)) || (eregi("<[^>]*object*\"?[^>]*>", $check_url)) || 52 (eregi("<[^>]*iframe*\"?[^>]*>", $check_url)) || (eregi("<[^>]*applet*\"?[^>]*>", $check_url)) || 53 (eregi("<[^>]*meta*\"?[^>]*>", $check_url)) || (eregi("<[^>]*style*\"?[^>]*>", $check_url)) || 54 (eregi("<[^>]*form*\"?[^>]*>", $check_url)) || (eregi("\([^>]*\"?[^)]*\)", $check_url))) { 55 die (); 51 // deal with array's in GET parameters 52 if (is_array($check_url)) { 53 foreach ($check_url as $url_parts) { 54 if ((eregi("<[^>]*script*\"?[^>]*>", $url_parts)) || (eregi("<[^>]*object*\"?[^>]*>", $url_parts)) || 55 (eregi("<[^>]*iframe*\"?[^>]*>", $url_parts)) || (eregi("<[^>]*applet*\"?[^>]*>", $url_parts)) || 56 (eregi("<[^>]*meta*\"?[^>]*>", $url_parts)) || (eregi("<[^>]*style*\"?[^>]*>", $url_parts)) || 57 (eregi("<[^>]*form*\"?[^>]*>", $url_parts)) || (eregi("\([^>]*\"?[^)]*\)", $url_parts))) { 58 die (); 59 } 60 } 61 } else { 62 if ((eregi("<[^>]*script*\"?[^>]*>", $check_url)) || (eregi("<[^>]*object*\"?[^>]*>", $check_url)) || 63 (eregi("<[^>]*iframe*\"?[^>]*>", $check_url)) || (eregi("<[^>]*applet*\"?[^>]*>", $check_url)) || 64 (eregi("<[^>]*meta*\"?[^>]*>", $check_url)) || (eregi("<[^>]*style*\"?[^>]*>", $check_url)) || 65 (eregi("<[^>]*form*\"?[^>]*>", $check_url)) || (eregi("\([^>]*\"?[^)]*\)", $check_url))) { 66 die (); 67 } 56 68 } 57 69 } … … 524 536 } 525 537 538 // internal function: preg_replace_callback for parseubb, to validate the URL found in [url] 539 function _parseubb_checkurl($matches) { 540 541 // if it's a old-style bbcode (not [url=][/url] but [url][/url]), convert it before checking 542 if (empty($matches[2])) { 543 $matches[2] = $matches[3]; 544 } 545 546 // Build the regex to check the URL 547 $scheme = "(https?|s?ftp|mailto|svn|cvs|callto|mms|skype)\:\/\/"; // SCHEMES supported 548 $urlregex = "^(".$scheme.")?"; // make the scheme optional 549 $urlregex .= "([a-z0-9+!*(),;?&=\$_.-]+(\:[a-z0-9+!*(),;?&=\$_.-]+)?@)?"; // USERID + PASSWORD (optional) 550 $urlregex .= "[a-z0-9+\$_-]+(\.[a-z0-9+\$_-]+)*"; // HOSTNAME or IP 551 $urlregex .= "(\:[0-9]{2,5})?"; // PORT (optional) 552 $urlregex .= "(\/([a-z0-9+\$_-]\.?)+)*\/?"; // PATH (optional) 553 $urlregex .= "(\?[a-z+&\$_.-][a-z0-9;:@/&%=+\$_.-]*)?"; // GET querystring (optional) 554 $urlregex .= "(#[a-z_.-][a-z0-9+\$_.-]*)?\$"; // ANCHOR (optional) 555 556 // validate the URL (in $matches[1]) 557 if (eregi($urlregex, $matches[2])) { 558 // check if the URL is prefixed. If not, assume http:// 559 if (!eregi("^(".$scheme."){1}", $matches[2])) { 560 $matches[2] = "http://".$matches[2]; 561 } 562 // return the html for the URL bbcode 563 return "<a href='".$matches[2]."' alt='' target='_blank'>".$matches[3]."</a>"; 564 } else { 565 // make the bbcode passed harmless 566 return stripinput($matches[0]); 567 } 568 } 569 526 570 // Parse bbcode into HTML code 527 571 function parseubb($text) { … … 550 594 // correct illegal [url=] BBcode 551 595 $text = str_replace("[url=]", "[url]", $text); 552 553 $text = preg_replace('#\[url\]([\r\n]*)(http://|ftp://|https://|ftps://)([^\s\'\";\+]*?)([\r\n]*)\[/url\]#si', '<a href=\'\2\3\' target=\'_blank\'>\2\3</a>', $text); 554 $text = preg_replace('#\[url\]([\r\n]*)([^\s\'\";\+]*?)([\r\n]*)\[/url\]#si', '<a href=\'http://\2\' target=\'_blank\'>\2</a>', $text); 555 $text = preg_replace('#\[url=([\r\n]*)(http://|ftp://|https://|ftps://)([^\'\";]*?)\](.*?)([\r\n]*)\[/url\]#si', '<a href=\'\2\3\' target=\'_blank\'>\4</a>', $text); 556 $text = preg_replace('#\[url=([\r\n]*)([^\s\'\";\+]*?)\](.*?)([\r\n]*)\[/url\]#si', '<a href=\'http://\2\' target=\'_blank\'>\3</a>', $text); 557 596 597 // convert URL bbcode, strip non-valid URL's 598 $text = preg_replace_callback('#\[url(=)?(.*?)\](.*?)([\r\n]*)\[/url\]#si', '_parseubb_checkurl', $text); 599 600 // convert mail bbcode 558 601 $text = preg_replace('#\[mail\]([\r\n]*)([^\s\'\";:\+]*?)([\r\n]*)\[/mail\]#si', '<a href=\'mailto:\2\'>\2</a>', $text); 559 602 $text = preg_replace('#\[mail=([\r\n]*)([^\s\'\";:\+]*?)\](.*?)([\r\n]*)\[/mail\]#si', '<a href=\'mailto:\2\'>\3</a>', $text); 560 603 561 604 $text = preg_replace('#\[small\](.*?)\[/small\]#si', '<span class=\'small\'>\1</span>', $text); 562 $text = preg_replace('#\[color=(\#[0-9a-fA-F]{6}|black|blue|brown|cyan|gr ay|green|lime|maroon|navy|olive|orange|purple|red|silver|violet|white|yellow)\](.*?)\[/color\]#si', '<span style=\'color:\1\'>\2</span>', $text);605 $text = preg_replace('#\[color=(\#[0-9a-fA-F]{6}|black|blue|brown|cyan|grey|green|lime|maroon|navy|olive|orange|purple|red|silver|violet|white|yellow)\](.*?)\[/color\]#si', '<span style=\'color:\1\'>\2</span>', $text); 563 606 564 607 $text = preg_replace('#\[flash width=([0-9]*?) height=([0-9]*?)\]([^\s\'\";:\+]*?)(\.swf)\[/flash\]#si', '<object classid=\'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\' codebase=\'http://active.macromedia.com/flash6/cabs/swflash.cab#version=6,0,0,0\' id=\'\3\4\' width=\'\1\' height=\'\2\'><param name=movie value=\'\3\4\'><param name=\'quality\' value=\'high\'><param name=\'bgcolor\' value=\'#ffffff\'><embed src=\'\3\4\' quality=\'high\' bgcolor=\'#ffffff\' width=\'\1\' height=\'\2\' type=\'application/x-shockwave-flash\' pluginspage=\'http://www.macromedia.com/go/getflashplayer\'></embed></object>', $text); -
branches/PLi-Fusion/includes/db_functions.php
r1335 r1408 42 42 $isUserQuery = true; 43 43 $query = str_replace(" ".$db_prefix.$usertable, " ".$user_db_name.".".$user_db_prefix.$usertable, $query); 44 $query = str_replace("=".$db_prefix.$usertable, "=".$user_db_name.".".$user_db_prefix.$usertable, $query); 44 45 } 45 46 } -
branches/PLi-Fusion/includes/dbsetup_include.php
r1227 r1408 2 2 //---------------------------------------------------------- 3 3 // ExiteCMS file : dbsetup_include.php 4 // Date generated : ` 08/02/2008 00:24`4 // Date generated : `10/03/2008 22:38` 5 5 //---------------------------------------------------------- 6 6 7 define('CMS_VERSION', '7. 00');8 define('CMS_REVISION', '1 223');7 define('CMS_VERSION', '7.10'); 8 define('CMS_REVISION', '1350'); 9 9 10 10 if ($step == 1) { … … 160 160 161 161 // 162 // Code to create table `captcha`163 //164 $result = dbquery("DROP TABLE IF EXISTS ".$db_prefix."captcha");165 $result = dbquery("CREATE TABLE IF NOT EXISTS ".$db_prefix."captcha (166 `captcha_datestamp` int(10) unsigned NOT NULL default '0',167 `captcha_ip` varchar(20) NOT NULL default '',168 `captcha_encode` varchar(32) NOT NULL default '',169 `captcha_string` varchar(15) NOT NULL default ''170 ) ENGINE=MYISAM;");171 if (!$result) {172 $fail = "1";173 $failed[] = "captcha : ".mysql_error();174 }175 176 //177 162 // Code to create table `comments` 178 163 // … … 202 187 `cfg_name` varchar(50) NOT NULL default '', 203 188 `cfg_value` text NOT NULL, 189 `cfg_timestamp` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, 204 190 PRIMARY KEY (`cfg_id`) 205 191 ) ENGINE=MYISAM;"); … … 209 195 } else { 210 196 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('admin_activation', '0')"); 211 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('article_localisation', ' multiple')");197 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('article_localisation', 'none')"); 212 198 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('attachmax', '10485760')"); 213 199 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('attachments', '1')"); 214 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('attachtypes', '.exe,.com,.bat,.js,.htm,.html,.shtml,.php,.php3 ,.esml,.psd,.mvi')");200 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('attachtypes', '.exe,.com,.bat,.js,.htm,.html,.shtml,.php,.php3')"); 215 201 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('bad_words', '')"); 216 202 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('bad_words_enabled', '0')"); … … 218 204 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('blogs_indexage', '90')"); 219 205 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('blogs_indexsize', '5')"); 220 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('counter', ' 518')");221 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('country', ' nl')");206 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('counter', '0')"); 207 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('country', 'gb')"); 222 208 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('debug_querylog', '')"); 223 209 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('description', 'ExiteCMS, a light-weight CMS system, wriiten in PHP, and using MySQL and the Smarty template engine')"); 224 210 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('display_validation', '1')"); 225 211 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('download_columns', '1')"); 226 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('download_localisation', ' multiple')");212 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('download_localisation', 'none')"); 227 213 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('email_verification', '1')"); 228 214 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('enable_registration', '1')"); … … 230 216 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('folderhotlevel', '20')"); 231 217 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('footer', '')"); 232 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('forumdate', '% d/%m/%Y %H:%M')");218 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('forumdate', '%m/%d/%Y %H:%M')"); 233 219 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('forum_flags', '1')"); 234 220 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('forum_max_h', '600')"); 235 221 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('forum_max_w', '600')"); 236 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('guestposts', ' 0')");222 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('guestposts', '1')"); 237 223 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('hide_webmaster', '0')"); 238 224 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('keywords', 'ExiteCMS, CMS, Smarty, MySQL, PHP, Open-Source')"); 239 225 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('locale', 'English')"); 226 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('login_expire', '7200')"); 227 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('login_extended_expire', '604800')"); 240 228 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('longdate', '%m/%d/%Y %H:%M:%S')"); 241 229 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('maintenance', '0')"); 242 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('maintenance_color', '# CF8E91')");230 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('maintenance_color', '#A19BCF')"); 243 231 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('maintenance_message', '')"); 244 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('max_users', ' 5')");232 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('max_users', '0')"); 245 233 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('max_users_datestamp', '1193029685')"); 246 234 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('navbar_range', '5')"); 247 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('newsletter_email', ' noreply@exite.eu')");235 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('newsletter_email', '')"); 248 236 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('news_columns', '1')"); 249 237 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('news_headline', '1')"); 250 238 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('news_items', '3')"); 251 239 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('news_latest', '0')"); 252 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('news_localisation', ' multiple')");240 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('news_localisation', 'none')"); 253 241 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('numofshouts', '5')"); 254 242 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('numofthreads', '20')"); 255 243 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('opening_page', 'news.php')"); 256 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('panels_localisation', ' multiple')");244 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('panels_localisation', 'none')"); 257 245 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('photo_h', '300')"); 258 246 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('photo_max_b', '150000')"); … … 262 250 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('pm_hide_rcpts', '1')"); 263 251 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('pm_inbox', '25')"); 252 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('pm_inbox_group', '103')"); 264 253 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('pm_savebox', '100')"); 254 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('pm_savebox_group', '0')"); 265 255 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('pm_send2group', '103')"); 266 256 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('pm_sentbox', '25')"); 257 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('pm_sentbox_group', '103')"); 267 258 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('remote_stats', '0')"); 268 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('revision', '1 223')");259 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('revision', '1350')"); 269 260 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('session_gc_divisor', '100')"); 270 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('session_gc_maxlifetime', ' 43200')");261 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('session_gc_maxlifetime', '604800')"); 271 262 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('session_gc_probability', '1')"); 272 263 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('session_name', 'ExiteCMSid')"); 273 264 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('shortdate', '%m/%d/%Y')"); 274 265 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('siteemail', 'exitecms@exite.eu')"); 275 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('siteintro', '<center>\r\n<b>This website is under construction at the moment!</b><br /><br /> We are currently preparing the release of version 7.0. The release date has been set for October 27th, providing no last-minute showstoppers pop up.<br /><br />\r\nExiteCMS v7.0 ©2007Exite BV.</center>')");276 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('sitelinks_localisation', ' multiple')");277 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('sitename', ' ExiteCMS Support Site')");266 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('siteintro', '<center>\r\n<b>This website is under construction at the moment!</b><br /><br />\r\nExiteCMS v7.1 ©2008 Exite BV.</center>')"); 267 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('sitelinks_localisation', 'none')"); 268 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('sitename', 'New ExiteCMS Website')"); 278 269 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('siteurl', '/')"); 279 270 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('siteusername', 'webmaster')"); … … 293 284 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('unread_threshold', '90')"); 294 285 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('validation_method', 'image')"); 295 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('version', '7. 00')");286 $result = dbquery("INSERT INTO ".$db_prefix."configuration (cfg_name, cfg_value) VALUES('version', '7.10')"); 296 287 } 297 288 … … 917 908 `forum_id` smallint(5) NOT NULL default '0', 918 909 `thread_id` mediumint(8) NOT NULL default '0', 919 `thread_ page` smallint(5) NOT NULL default '0',920 `thread_last_read` int(10) NOT NULL default '0',910 `thread_first_read` int(10) unsigned NOT NULL default '4294967295', 911 `thread_last_read` int(10) unsigned NOT NULL default '0', 921 912 PRIMARY KEY (`user_id`,`forum_id`,`thread_id`) 922 913 ) ENGINE=MYISAM;"); … … 987 978 `user_newsletters` tinyint(1) unsigned NOT NULL default '1', 988 979 `user_sponsor` tinyint(1) unsigned NOT NULL default '0', 980 `user_posts_unread` tinyint(1) NOT NULL default '1', 989 981 `user_cc_code` char(2) NOT NULL default '', 990 982 PRIMARY KEY (`user_id`) -
branches/PLi-Fusion/includes/font2image.php
r1343 r1408 1 1 <?php 2 2 /* 3 Dynamic Heading Generator 4 Original code by Stewart Rosenberger, http://www.stewartspeak.com/headings/ 5 6 Converted by WanWizard to work in am ExiteCMS environment 7 8 usage: $image_resource = font2image($f2i_array); 9 10 $f2i_array = array(); 11 $f2i_array['image'] = "png"; // Type of image to generate. If not specified, defaults to PNG 12 $f2i_array['font_text'] = "Text to convert"; // Text to convert to an image. Required. 13 $f2i_array['font_file'] = "font2use.ttf"; // FQN of the TTF font file to use. Required. 14 $f2i_array['font_size'] = 10; // Font size. Optional. Valid values are 4 to 96. Default = 10. 15 $f2i_array['font_color'] = "#000000"; // Font color (html style). Default = black. 16 $f2i_array['font_spacing'] = false; // Use the standard font spacing. Default = false. 17 // Disables kerning, outline and shadows!! 18 $f2i_array['font_kerning'] = 0; // Additional space between characters in pixels. Default = 0, Max = 20. 19 $f2i_array['background_color'] = "#FFFFFF"; // Image background color (html style). Default = white. 20 $f2i_array['background_shadow_color'] = "#000000"; // Image shadow background color for a 3D look (html style). Default black. 21 $f2i_array['background_shadow_width'] = 0; // Width of the background shadow of the image. Default = 0, Max = 10. 22 $f2i_array['outline_color'] = ""; // Outline color (html style). If not specified, width is set to 0. 23 $f2i_array['outline_width'] = 0; // Width of the outline of the character in pixels. Default = 0, Max = 10. 24 $f2i_array['shadow_color'] = ""; // Shadow color (html style). If not specified, width is set to 0. 25 $f2i_array['shadow_width'] = 0; // Width of the shadow of the character in pixels. Default = 0, Max = 10. 26 $f2i_array['background_transparent'] = false; // Should the background color be marked transparent? Boolean, default = false; 27 $f2i_array['background_transparent_color'] = ""; // Optional. If defined, this color will be used for transparancy instead of 28 // the specified background color. Required if a background shadow is defined 29 $f2i_array['cache_images'] = false; // Cache the image after generation? Boolean, default = false. 30 $f2i_array['cache_folder'] = ""; // Directory to store the cached images in. 31 // If not defined or not valid, cache_images will be set to false. 32 $f2i_array['cache_prefix'] = false; // If defined, this will be prepended to the filename of the cached file 33 $f2i_array['cache_hash'] = false; // Boolean. If false, the text will be used as filename, otherwise a hash is calculated 34 35 Notes: 36 * if the background has a shadow, background transparency is used to create the 3D effect. The text background 37 itself can therefore not be transparent. 3 Original code by Stewart Rosenberger, http://www.stewartspeak.com/headings/ 4 5 Converted and extended by WanWizard to work in am ExiteCMS environment 6 7 usage: $image_resource = font2image($f2i_array); 8 9 $f2i_array = array(); 10 $f2i_array['image'] = "png"; // Type of image to generate. If not specified, defaults to PNG 11 $f2i_array['font_text'] = "Text to convert"; // Text to convert to an image. Required. 12 $f2i_array['font_file'] = "font2use.ttf"; // FQN of the TTF font file to use. Required. 13 $f2i_array['font_size'] = 10; // Font size. Optional. Valid values are 4 to 96. Default = 10. 14 $f2i_array['font_color'] = "#000000"; // Font color (html style). Default = black. 15 $f2i_array['font_spacing'] = false; // Use the standard font spacing. Default = false. 16 // Disables kerning, outline and shadows!! 17 $f2i_array['font_kerning'] = 0; // Additional space between characters in pixels. Default = 0, Max = 20. 18 $f2i_array['background_color'] = "#FFFFFF"; // Image background color (html style). Default = white. 19 $f2i_array['background_shadow_color'] = "#000000"; // Image shadow background color for a 3D look (html style). Default black. 20 $f2i_array['background_shadow_width'] = 0; // Width of the background shadow of the image. Default = 0, Max = 10. 21 $f2i_array['outline_color'] = ""; // Outline color (html style). If not specified, width is set to 0. 22 $f2i_array['outline_width'] = 0; // Width of the outline of the character in pixels. Default = 0, Max = 10. 23 $f2i_array['shadow_color'] = ""; // Shadow color (html style). If not specified, width is set to 0. 24 $f2i_array['shadow_width'] = 0; // Width of the shadow of the character in pixels. Default = 0, Max = 10. 25 $f2i_array['background_transparent'] = false; // Should the background color be marked transparent? Boolean, default = false; 26 $f2i_array['background_transparent_color'] = ""; // Optional. If defined, this color will be used for transparancy instead of 27 // the specified background color. Required if a background shadow is defined 28 $f2i_array['cache_images'] = false; // Cache the image after generation? Boolean, default = false. 29 $f2i_array['cache_folder'] = ""; // Directory to store the cached images in. 30 // If not defined or not valid, cache_images will be set to false. 31 $f2i_array['cache_prefix'] = false; // If defined, this will be prepended to the filename of the cached file 32 $f2i_array['cache_hash'] = false; // Boolean. If false, the text will be used as filename, otherwise a hash is calculated 33 $f2i_array['return_link'] = false; // If true, the function returns a relative link to the cached image instead of the 34 // image itself. If true, cache_images MUST be set to true as well!!! 35 36 Notes: 37 * if the background has a shadow, background transparency is used to create the 3D effect. The text background 38 itself can therefore not be transparent. 38 39 39 40 */ 40 if ( !defined("INIT_CMS_OK")) { header("Location: ../index.php"); exit; }41 if (eregi("font2image.php", $_SERVER['PHP_SELF']) || !defined('INIT_CMS_OK')) die(); 41 42 42 43 function font2image($font2image) { … … 93 94 if (!isset($font2image['background_transparent'])) $font2image['background_transparent'] = false; 94 95 if (!isset($font2image['cache_images'])) $font2image['cache_images'] = false; 96 if (!isset($font2image['return_link'])) $font2image['return_link'] = false; 95 97 if (!isset($font2image['cache_folder'])) $font2image['cache_images'] = false; 96 if ($font2image['cache_folder'] !="" && !is_dir($font2image['cache_folder'])) fatal_error( 'Cache folder does not exist.');98 if ($font2image['cache_folder'] !="" && !is_dir($font2image['cache_folder'])) fatal_error("Cache folder does not exist."); 97 99 if (!isset($font2image['cache_prefix']) || $font2image['cache_prefix'] == false) $font2image['cache_prefix'] = ""; 98 100 if (!isset($font2image['cache_hash'])) $font2image['cache_hash'] = false; 101 if ($font2image['return_link'] && !$font2image['cache_images']) fatal_error("Can't link without cache."); 99 102 100 103 if (!isset($font2image['font_spacing'])) $font2image['font_spacing'] = false; … … 121 124 } 122 125 126 // Create the filename for this image, use hash if requested 127 if ($font2image['cache_hash']) { 128 $hash = ""; 129 foreach ($font2image as $element) { 130 $hash .= $element; 131 } 132 $hash = md5($hash); 133 } else { 134 $hash = str_replace(' ', '_', $font2image['font_text']); 135 } 136 $cache_filename = $font2image['cache_folder'] . '/' . $font2image['cache_prefix'] . $hash . '.' . $font2image['image'] ; 137 123 138 // Do we have caching enabled for this image? 124 139 if ($font2image['cache_images']) { 125 140 // look for cached copy, if it exists, convert it to a resource and return it 126 if ($font2image['cache_hash']) {127 $hash = "";128 foreach ($font2image as $element) {129 $hash .= $element;130 }131 $hash = md5($hash);132 } else {133 $hash = str_replace(' ', '_', $font2image['font_text']);134 }135 $cache_filename = $font2image['cache_folder'] . '/' . $font2image['cache_prefix'] . $hash . '.' . $font2image['image'] ;136 141 if($font2image['cache_images'] && is_readable($cache_filename)) { 137 142 // convert the file to a resource … … 140 145 fatal_error("Cached image file '".$cache_filename."' is not a valid ".strtoupper($font2image['image'])." image!"); 141 146 } 142 switch ($font2image['image']) { 143 case "png": 144 $image = imagecreatefrompng($cache_filename); 145 break; 146 case "jpg": 147 $image = imagecreatefromjpeg($cache_filename); 148 break; 149 case "gif": 150 $image = imagecreatefromgif($cache_filename); 151 break; 147 if ($font2image['return_link']) { 148 // check if the cache path is inside the webroot 149 if (substr($cache_filename,0,strlen(PATH_ROOT)) != PATH_ROOT) { 150 fatal_error("Cached image is not inside the webroot!"); 151 } else { 152 return substr($cache_filename, strlen(PATH_ROOT)-1); 153 } 154 } else { 155 switch ($font2image['image']) { 156 case "png": 157 $image = imagecreatefrompng($cache_filename); 158 break; 159 case "jpg": 160 $image = imagecreatefromjpeg($cache_filename); 161 break; 162 case "gif": 163 $image = imagecreatefromgif($cache_filename); 164 break; 165 } 166 return $image; 152 167 } 153 return $image;154 168 } 155 169 } … … 182 196 fatal_error('The server could not create this image.') ; 183 197 } 184 185 198 // give the image a background color 186 199 if (isset($font2image['background_transparent_color'])) { … … 191 204 $font2image['background_transparent_color'] = @ImageColorAllocate($image, $background_rgb['red'], $background_rgb['green'], $background_rgb['blue']) ; 192 205 imagefill($image, 0,0, $font2image['background_transparent_color']); 206 // set transparency 207 if ($font2image['background_transparent']) { 208 ImageColorTransparent($image, $font2image['background_transparent_color']) ; 209 } 210 // background color and background shadow color 193 211 $background_rgb = hex_to_rgb($font2image['background_shadow_color']) ; 194 212 $font2image['background_shadow_color'] = @ImageColorAllocate($image, $background_rgb['red'], $background_rgb['green'], $background_rgb['blue']) ; … … 250 268 } 251 269 252 // set transparency253 if ($font2image['background_transparent']) {254 ImageColorTransparent($image, $font2image['background_transparent_color']) ;255 }256 257 270 // write it to the cache directory if needed 258 271 if ($font2image['cache_images']) { … … 269 282 } 270 283 } 271 // imagePNG($image);die(); 272 return $image; 284 if ($font2image['return_link']) { 285 // check if the cache path is inside the webroot 286 if (substr($cache_filename,0,strlen(PATH_ROOT)) != PATH_ROOT) { 287 fatal_error("Cached image is not inside the webroot!"); 288 } else { 289 return substr($cache_filename, strlen(PATH_ROOT)-1); 290 } 291 } else { 292 return $image; 293 } 273 294 } 274 295 -
branches/PLi-Fusion/includes/forum_functions_include.php
r1335 r1408 383 383 if (strlen($rawmsg)) $message .= $rawmsg; 384 384 385 // find remaining URL's in the text, and convert them to a href as well386 $pattern = '#(^|[^\"=]{1})(https?://|ftp://|mailto:|news:)([^(,\s<>\[\]\)]+)([,\s\n<>\)]|$)#sme';387 $message = preg_replace($pattern,"'$1<a href=\'$2$3\' target=\'_blank\'>'.shortenlink('$2$3',83).'</a>$4'",$message);388 // re-insert the saved url blocks389 foreach($urlblocks as $urlblock) {390 // find the first placeholder391 $i = strpos($message, "{@@**@@}");392 $message = substr($message, 0, $i).$urlblock.substr($message, $i+8);393 }394 395 385 // detect and convert wikitags to wiki bbcodes if needed 396 386 if (isset($settings['wiki_forum_links']) && $settings['wiki_forum_links']) { … … 405 395 $message = preg_replace($search, $replace, $message); 406 396 } 397 398 // find remaining URL's in the text, and convert them to a href as well 399 $pattern = '#(^|[^\"=]{1})(https?://|ftp://|mailto:|news:)([^(,\s<>\[\]\)]+)([,\s\n<>\)]|$)#sme'; 400 $message = preg_replace($pattern,"'$1<a href=\'$2$3\' target=\'_blank\'>'.shortenlink('$2$3',83).'</a>$4'",$message); 401 // re-insert the saved url blocks 402 foreach($urlblocks as $urlblock) { 403 // find the first placeholder 404 $i = strpos($message, "{@@**@@}"); 405 $message = substr($message, 0, $i).$urlblock.substr($message, $i+8); 406 } 407 407 408 // parse the smileys in the message 408 409 if ($smileys) $message = parsesmileys($message); -
branches/PLi-Fusion/includes/photo_functions_include.php
r863 r1408 18 18 19 19 global $settings; 20 20 21 // give this process plenty of memory to handle large images 22 ini_set('memory_limit', '64M'); 23 21 24 if ($filetype == 1) { $origimage = imagecreatefromgif($origfile); } 22 25 elseif ($filetype == 2) { $origimage = imagecreatefromjpeg($origfile); } -
branches/PLi-Fusion/includes/templates/admin.404pages.tpl
r1335 r1408 42 42 <br /> 43 43 <textarea name='page_content' cols='95' rows='20' class='{if $settings.tinymce_enabled != 1}textbox{/if}' style='width:100%; height:{math equation='x/2' format="%u" x=$smarty.const.BROWSER_HEIGHT}px'>{$page_content}</textarea> 44 </td> 44 45 </tr> 45 46 {if $settings.tinymce_enabled != 1} -
branches/PLi-Fusion/includes/templates/admin.download_cats.tpl
r1192 r1408 186 186 <a href='{$smarty.const.FUSION_SELF}{$aidlink}&step=delete&cat_id={$cats[dc].download_cat_id}&cat_locale={$cat_locale}'><img src='{$smarty.const.THEME}images/page_delete.gif' alt='{$locale.504}' title='{$locale.504}' /></a> 187 187 </td> 188 </tr>188 </tr> 189 189 {sectionelse} 190 190 <tr> -
branches/PLi-Fusion/includes/templates/admin.settings_messages.tpl
r864 r1408 36 36 <tr> 37 37 <td class='tbl' width='50%'> 38 {$locale.722} 39 </td> 40 <td class='tbl' width='50%'> 41 <select name='pm_inbox_group' class='textbox'> 42 <option value='0'{if $pm_inbox_group == 0} selected="selected"{/if}>{$locale.725}</option> 43 {section name=id loop=$usergroups} 44 <option value='{$usergroups[id].0}'{if $usergroups[id].0 == $pm_inbox_group} selected="selected"{/if}>{$usergroups[id].1}</option> 45 {/section} 46 </select> 47 </td> 48 </tr> 49 <tr> 50 <td class='tbl' width='50%'> 38 51 {$locale.702} 39 52 <br /> … … 46 59 <tr> 47 60 <td class='tbl' width='50%'> 61 {$locale.723} 62 </td> 63 <td class='tbl' width='50%'> 64 <select name='pm_sentbox_group' class='textbox'> 65 <option value='0'{if $pm_sentbox_group == 0} selected="selected"{/if}>{$locale.725}</option> 66 {section name=id loop=$usergroups} 67 <option value='{$usergroups[id].0}'{if $usergroups[id].0 == $pm_sentbox_group} selected="selected"{/if}>{$usergroups[id].1}</option> 68 {/section} 69 </select> 70 </td> 71 </tr> 72 <tr> 73 <td class='tbl' width='50%'> 48 74 {$locale.703} 49 75 <br /> … … 52 78 <td class='tbl' width='50%'> 53 79 <input type='text' name='pm_savebox' maxlength='4' class='textbox' style='width:40px;' value='{$pm_savebox}' /> 80 </td> 81 </tr> 82 <tr> 83 <td class='tbl' width='50%'> 84 {$locale.724} 85 </td> 86 <td class='tbl' width='50%'> 87 <select name='pm_savebox_group' class='textbox'> 88 <option value='0'{if $pm_savebox_group == 0} selected="selected"{/if}>{$locale.725}</option> 89 {section name=id loop=$usergroups} 90 <option value='{$usergroups[id].0}'{if $usergroups[id].0 == $pm_savebox_group} selected="selected"{/if}>{$usergroups[id].1}</option> 91 {/section} 92 </select> 54 93 </td> 55 94 </tr> … … 72 111 <option value='1' {if $pm_hide_rcpts == "1"} selected="selected"{/if}>{$locale.509}</option> 73 112 <option value='0' {if $pm_hide_rcpts == "0"} selected="selected"{/if}>{$locale.508}</option> 74 </select>75 </td>76 </tr>77 <tr>78 <td class='tbl' width='50%'>79 {$locale.715}80 </td>81 <td class='tbl' width='50%'>82 <select name='pm_read_notify' class='textbox'>83 <option value='0' {if $pm_read_notify == "0"} selected="selected"{/if}>{$locale.509}</option>84 <option value='1' {if $pm_read_notify == "1"} selected="selected"{/if}>{$locale.508}</option>85 113 </select> 86 114 </td> … … 110 138 <tr> 111 139 <td class='tbl' width='50%'> 140 {$locale.720} 141 </td> 142 <td class='tbl' width='50%'> 143 <select name='pm_send2group' class='textbox'> 144 {section name=id loop=$usergroups} 145 <option value='{$usergroups[id].0}'{if $usergroups[id].0 == $pm_send2group} selected="selected"{/if}>{$usergroups[id].1}</option> 146 {/section} 147 </select> 148 </td> 149 </tr> 150 <tr> 151 <td class='tbl' align='center' colspan='2'> 152 <br /> 153 </td> 154 </tr> 155 <tr> 156 <td class='tbl2' align='center' colspan='2'> 157 {$locale.708} 158 </td> 159 </tr> 160 <tr> 161 <td class='tbl' width='50%'> 162 {$locale.715} 163 </td> 164 <td class='tbl' width='50%'> 165 <select name='pm_read_notify' class='textbox'> 166 <option value='0' {if $pm_read_notify == "0"} selected="selected"{/if}>{$locale.509}</option> 167 <option value='1' {if $pm_read_notify == "1"} selected="selected"{/if}>{$locale.508}</option> 168 </select> 169 </td> 170 </tr> 171 <tr> 172 <td class='tbl' width='50%'> 173 {$locale.709} 174 </td> 175 <td class='tbl' width='50%'> 176 <select name='pm_email_notify' class='textbox'> 177 <option value='0' {if $pm_email_notify == "0"} selected="selected"{/if}>{$locale.509}</option> 178 <option value='1' {if $pm_email_notify == "1"} selected="selected"{/if}>{$locale.508}</option> 179 </select> 180 </td> 181 </tr> 182 <tr> 183 <td class='tbl' width='50%'> 184 {$locale.710} 185 </td> 186 <td class='tbl' width='50%'> 187 <select name='pm_save_sent' class='textbox'> 188 <option value='0' {if $pm_save_sent == "0"} selected="selected"{/if}>{$locale.509}</option> 189 <option value='1' {if $pm_save_sent == "1"} selected="selected"{/if}>{$locale.508}</option> 190 </select> 191 </td> 192 </tr> 193 <tr> 194 <td class='tbl' width='50%'> 112 195 {$locale.717} 113 196 </td> … … 120 203 </tr> 121 204 <tr> 122 <td class='tbl' width='50%'>123 {$locale.720}124 </td>125 <td class='tbl' width='50%'>126 <select name='pm_send2group' class='textbox'>127 {section name=id loop=$usergroups}128 <option value='{$usergroups[id].0}'{if $usergroups[id].0 == $pm_send2group} selected="selected"{/if}>{$usergroups[id].1}</option>129 {/section}130 </select>131 </td>132 </tr>133 <tr>134 <td class='tbl' align='center' colspan='2'>135 <br />136 </td>137 </tr>138 <tr>139 <td class='tbl2' align='center' colspan='2'>140 {$locale.708}141 </td>142 </tr>143 <tr>144 <td class='tbl' width='50%'>145 {$locale.709}146 </td>147 <td class='tbl' width='50%'>148 <select name='pm_email_notify' class='textbox'>149 <option value='0' {if $pm_email_notify == "0"} selected="selected"{/if}>{$locale.509}</option>150 <option value='1' {if $pm_email_notify == "1"} selected="selected"{/if}>{$locale.508}</option>151 </select>152 </td>153 </tr>154 <tr>155 <td class='tbl' width='50%'>156 {$locale.710}157 </td>158 <td class='tbl' width='50%'>159 <select name='pm_save_sent' class='textbox'>160 <option value='0' {if $pm_save_sent == "0"} selected="selected"{/if}>{$locale.509}</option>161 <option value='1' {if $pm_save_sent == "1"} selected="selected"{/if}>{$locale.508}</option>162 </select>163 </td>164 </tr>165 <tr>166 205 <td align='center' colspan='2' class='tbl'> 167 206 <span class='small2'>{$locale.711}</span> -
branches/PLi-Fusion/includes/templates/forum.index.tpl
r960 r1408 131 131 <img src='{$smarty.const.THEME}images/folder.gif' alt='{$locale.561}' style='vertical-align:middle;' /> - {$locale.410} 132 132 </td> 133 <td class='forum' style='vertical-align:bottom;'> 134 {buttonlink name=$locale.414 link="viewposts.php"} 135 </td> 133 136 <td align='right' valign='bottom' class='forum'> 134 137 <form name='searchform' method='post' action='{$smarty.const.BASEDIR}search.php?stype=f'> -
branches/PLi-Fusion/includes/templates/forum.post.tpl
r1227 r1408 138 138 {/section} 139 139 <td class='tbl1'> 140 <input type='submit' name='upload' value='{$locale.471}' class='button' />141 140 <input type='file' name='attach' class='textbox' style='width:200px;' /> 142 141 <br /><br /> … … 146 145 <br /> 147 146 <textarea name='attach_comment' cols='50' rows='2' class='textbox'>{$comments}</textarea> 147 <br /> 148 <input type='submit' name='upload' value='{$locale.471}' class='button' /> 148 149 </td> 149 150 </tr> -
branches/PLi-Fusion/includes/templates/forum.renderpost.tpl
r1192 r1408 46 46 {buttonlink name=$locale.568 link="post.php?action=edit&forum_id="|cat:$forum_id|cat:"&thread_id="|cat:$posts[pid].thread_id|cat:"&post_id="|cat:$posts[pid].post_id} 47 47 {/if} 48 {if $smarty.const.SHOW_REPLY_BUTTON && !$thread.thread_locked}48 {if $smarty.const.SHOW_REPLY_BUTTON && (!$thread.thread_locked || $smarty.const.iMOD)} 49 49 {if $smarty.const.REPLY_AS_QUOTE} 50 50 {buttonlink name=$locale.575 link="post.php?action=quote&forum_id="|cat:$forum_id|cat:"&thread_id="|cat:$posts[pid].thread_id|cat:"&reply_id="|cat:$posts[pid].post_id} … … 53 53 {/if} 54 54 {/if} 55 {if $smarty.const.SHOW_QUOTE_BUTTON && !$thread.thread_locked}55 {if $smarty.const.SHOW_QUOTE_BUTTON && (!$thread.thread_locked || $smarty.const.iMOD)} 56 56 {buttonlink name=$locale.569 link="post.php?action=quote&forum_id="|cat:$forum_id|cat:"&thread_id="|cat:$posts[pid].thread_id|cat:"&reply_id="|cat:$posts[pid].post_id} 57 57 {/if} -
branches/PLi-Fusion/includes/templates/forum.viewforum.tpl
r1227 r1408 192 192 {/if} 193 193 </td> 194 {if $smarty.const.iMEMBER && $user_can_post} 195 <td align='right'> 196 {if $unread_posts} 197 {buttonlink name=$locale.573 link="viewforum.php?action=markallread&forum_id="|cat:$forum_id} 198 {/if} 199 {buttonlink name=$locale.566 link="post.php?action=newthread&forum_id="|cat:$forum_id} 200 </td> 201 {/if} 194 <td align='right'> 195 {buttonlink name=$locale.414 link="viewposts.php?forum_id="|cat:$forum_id} 196 {if $smarty.const.iMEMBER && $user_can_post} 197 {if $unread_posts} 198 {buttonlink name=$locale.573 link="viewforum.php?action=markallread&forum_id="|cat:$forum_id} 199 {/if} 200 {buttonlink name=$locale.566 link="post.php?action=newthread&forum_id="|cat:$forum_id} 201 {/if} 202 </td> 202 203 </tr> 203 204 </table> -
branches/PLi-Fusion/includes/templates/main.pm.options.tpl
r1124 r1408 41 41 </table> 42 42 <form name='options_form' method='post' action='{$smarty.const.FUSION_SELF}?folder=options'> 43 <table align='center' cellpadding='0' cellspacing='1' class='tbl' width='500 px'>43 <table align='center' cellpadding='0' cellspacing='1' class='tbl' width='500'> 44 44 <tr> 45 45 <td align='right' class='tbl1' width='70%'> … … 48 48 <td class='tbl1' width='30%'> 49 49 <select name='pm_email_notify' class='textbox'> 50 <option value='1'{if $user_options.pmconfig_email_notify == "1"} selected {/if}>{$locale.631}</option>51 <option value='0'{if $user_options.pmconfig_email_notify == "0"} selected {/if}>{$locale.632}</option>50 <option value='1'{if $user_options.pmconfig_email_notify == "1"} selected='selected'{/if}>{$locale.631}</option> 51 <option value='0'{if $user_options.pmconfig_email_notify == "0"} selected='selected'{/if}>{$locale.632}</option> 52 52 </select> 53 53 </td> … … 59 59 <td class='tbl1' width='30%'> 60 60 <select name='pm_read_notify' class='textbox'> 61 <option value='1'{if $user_options.pmconfig_read_notify == "1"} selected {/if}>{$locale.631}</option>62 <option value='0'{if $user_options.pmconfig_read_notify == "0"} selected {/if}>{$locale.632}</option>61 <option value='1'{if $user_options.pmconfig_read_notify == "1"} selected='selected'{/if}>{$locale.631}</option> 62 <option value='0'{if $user_options.pmconfig_read_notify == "0"} selected='selected'{/if}>{$locale.632}</option> 63 63 </select> 64 64 </td> … … 70 70 <td class='tbl1' width='30%'> 71 71 <select name='pm_save_sent' class='textbox'> 72 <option value='1'{if $user_options.pmconfig_save_sent == "1"} selected {/if}>{$locale.631}</option>73 <option value='0'{if $user_options.pmconfig_save_sent == "0"} selected {/if}>{$locale.632}</option>72 <option value='1'{if $user_options.pmconfig_save_sent == "1"} selected='selected'{/if}>{$locale.631}</option> 73 <option value='0'{if $user_options.pmconfig_save_sent == "0"} selected='selected'{/if}>{$locale.632}</option> 74 74 </select> 75 75 </td> … … 107 107 <td class='tbl1' width='30%'> 108 108 <select name='pm_view' class='textbox'> 109 <option value='0'{if $user_options.pmconfig_view == "0"} selected {/if}>{$locale.639}</option>110 <option value='1'{if $user_options.pmconfig_view == "1"} selected {/if}>{$locale.640}</option>109 <option value='0'{if $user_options.pmconfig_view == "0"} selected='selected'{/if}>{$locale.639}</option> 110 <option value='1'{if $user_options.pmconfig_view == "1"} selected='selected'{/if}>{$locale.640}</option> 111 111 </select> 112 112 </td> … … 115 115 <td align='center' colspan='2' class='tbl1'> 116 116 <br /> 117 <input type='hidden' name='update_type' value='{$update_type}' >118 <input type='submit' name='save_options' value='{$locale.623}' class='button' >117 <input type='hidden' name='update_type' value='{$update_type}' /> 118 <input type='submit' name='save_options' value='{$locale.623}' class='button' /> 119 119 </td> 120 120 </tr> -
branches/PLi-Fusion/includes/templates/main.pm.renderpm.tpl
r1227 r1408 15 15 {* *} 16 16 {***************************************************************************} 17 <a name='view_{$messages[id].pmindex_id}'></a>18 17 {if !$smarty.section.id.first && !$is_inline} 19 18 <tr> … … 24 23 <tr> 25 24 <td width='140' class='tbl_top_left'> 25 <a name='view_{$messages[id].pmindex_id}'></a> 26 26 <b>{$locale.422} 27 27 {if $is_preview || $messages[id].pmindex_user_id != $messages[id].pmindex_to_id} … … 61 61 <td align='center' width='10' class='tbl_top_right'> 62 62 {if !$is_preview} 63 <input type='checkbox' name='check_mark[]' value='{$messages[id].pmindex_id}' >63 <input type='checkbox' name='check_mark[]' value='{$messages[id].pmindex_id}' /> 64 64 {/if} 65 65 </td> -
branches/PLi-Fusion/includes/templates/main.pm.tpl
r1192 r1408 51 51 </tr> 52 52 </table> 53 {if $totals.inbox == $global_options.pm_inbox || $totals.outbox == $global_options.pm_sentbox || $totals.archive == $global_options.pm_savebox} 53 {assign var=hadbreak value=0} 54 {if !$global_options.pm_inbox_group && $totals.inbox == $global_options.pm_inbox} 54 55 <br /> 55 {if $totals.inbox == $global_options.pm_inbox} 56 <div class='infobar' style='font-weight:bold;color:red;text-align:center;'>{$locale.488}</div> 57 {/if} 58 {if $totals.outbox == $global_options.pm_sentbox && $user_options.pmconfig_save_sent} 59 <div class='infobar' style='font-weight:bold;color:red;text-align:center;'>{$locale.489}</div> 60 {/if} 61 {if $totals.archive == $global_options.pm_savebox} 62 <div class='infobar' style='font-weight:bold;color:red;text-align:center;'>{$locale.490}</div> 63 {/if} 56 {assign var=hadbreak value=1} 57 <div class='infobar' style='font-weight:bold;color:red;text-align:center;'>{$locale.488}</div> 58 {/if} 59 {if !$global_options.pm_sentbox_group && $totals.outbox == $global_options.pm_sentbox && $user_options.pmconfig_save_sent} 60 {if !$hadbreak} 61 <br /> 62 {assign var=hadbreak value=1} 63 {/if} 64 <div class='infobar' style='font-weight:bold;color:red;text-align:center;'>{$locale.489}</div> 65 {/if} 66 {if !$global_options.pm_savebox_group && $totals.archive == $global_options.pm_savebox} 67 {if !$hadbreak} 68 <br /> 69 {assign var=hadbreak value=1} 70 {/if} 71 <div class='infobar' style='font-weight:bold;color:red;text-align:center;'>{$locale.490}</div> 64 72 {/if} 65 73 <form name='pm_form' method='post' action='{$smarty.const.FUSION_SELF}?folder={$folder}'> … … 80 88 <input type='submit' name='multi_unread' value='{$locale.415}' class='button' /> 81 89 {/if} 82 {if $folder != $locale.404 && $global_options.pm_savebox > $totals.archive}90 {if $folder != $locale.404 && ($global_options.pm_savebox > $totals.archive || $global_options.pm_savebox_group)} 83 91 <input type='submit' name='multi_archive' value='{$locale.448}' class='button' /> 84 92 {/if} 85 93 {if $folder == $locale.404} 86 {if ($messages[id].pmindex_user_id == $messages[id].pmindex_to_id && $global_options.pm_inbox > $totals.inbox) || ($messages[id].pmindex_user_id != $messages[id].pmindex_to_id && $global_options.pm_sentbox > $totals.outbox)}94 {if ($messages[id].pmindex_user_id == $messages[id].pmindex_to_id && ($global_options.pm_inbox > $totals.inbox || $global_options.pm_inbox_group)) || ($messages[id].pmindex_user_id != $messages[id].pmindex_to_id && ($global_options.pm_sentbox > $totals.outbox || $global_options.pm_sentbox_group))} 87 95 <input type='submit' name='multi_restore' value='{$locale.412}' class='button' /> 88 96 {/if} … … 135 143 {if $messages[id].pmindex_id == $view_id} 136 144 <tr> 137 <td colspan=' 4' class='tbl2'>145 <td colspan='5' class='tbl2'> 138 146 <table cellpadding='0' cellspacing='0' width='100%' class='tbl-border'> 139 147 {assign var='is_inline' value=true} … … 225 233 <input type='submit' name='multi_unread' value='{$locale.415}' class='button' /> 226 234 {/if} 227 {if $folder != $locale.404 && $global_options.pm_savebox > $totals.archive}235 {if $folder != $locale.404 && ($global_options.pm_savebox > $totals.archive || $global_options.pm_savebox_group)} 228 236 <input type='submit' name='multi_archive' value='{$locale.448}' class='button' /> 229 237 {/if} 230 238 {if $folder == $locale.404} 231 {if ($messages[id].pmindex_user_id == $messages[id].pmindex_to_id && $global_options.pm_inbox > $totals.inbox) || ($messages[id].pmindex_user_id != $messages[id].pmindex_to_id && $global_options.pm_sentbox > $totals.outbox)}239 {if ($messages[id].pmindex_user_id == $messages[id].pmindex_to_id && ($global_options.pm_inbox > $totals.inbox || $global_options.pm_inbox_group)) || ($messages[id].pmindex_user_id != $messages[id].pmindex_to_id && ($global_options.pm_sentbox > $totals.outbox || $global_options.pm_sentbox_group))} 232 240 <input type='submit' name='multi_restore' value='{$locale.412}' class='button' /> 233 241 {/if} -
branches/PLi-Fusion/includes/user_functions.php
r1343 r1408 42 42 43 43 // Login code 44 if (isset($_POST['login']) ) {45 $user_pass = md5( $_POST['user_pass']);44 if (isset($_POST['login']) && isset($_POST['user_name']) && isset($_POST['user_pass'])) { 45 $user_pass = md5(md5($_POST['user_pass'])); 46 46 $user_name = preg_replace(array("/\=/","/\#/","/\sOR\s/"), "", stripinput($_POST['user_name'])); 47 // double hashed passwords as of revision 95448 if ($settings['revision'] >= 954) {49 $user_pass = md5($user_pass);50 }51 47 $result = dbquery("SELECT * FROM ".$db_prefix."users WHERE user_name='$user_name' AND user_password='".$user_pass."'"); 52 48 if (dbrows($result) != 0) { … … 85 81 } 86 82 } else { 87 redirect(BASEDIR."setuser.php?error=3" );83 redirect(BASEDIR."setuser.php?error=3", "script"); 88 84 exit; 89 85 } … … 365 361 366 362 if (iSUPERADMIN) { 367 $res .= ($hidden == false?" AND ":"")."($field != '100'"; 363 $res .= ($res != ""?" AND ":"")."$field != '100'"; 364 return $res; 368 365 } elseif ($userdata['user_level'] >= 102) { 369 366 $res .= ($hidden == false?" AND ":"")."($field='0' OR $field='101' OR $field='102'"; -
branches/PLi-Fusion/lostpassword.php
r1124 r1408 41 41 for ($i=0;$i<=7;$i++) { $new_pass .= chr(rand(97, 122)); } 42 42 $mailbody = str_replace("[NEW_PASS]", $new_pass, $locale['411']); 43 $mailbody = str_replace("[USER _NAME]", $data['user_name'], $mailbody);43 $mailbody = str_replace("[USERNAME]", $data['user_name'], $mailbody); 44 44 $mailbody = str_replace("[SITENAME]", $settings['sitename'], $mailbody); 45 45 $mailbody = str_replace("[SITEUSERNAME]", $settings['siteusername'], $mailbody); -
branches/PLi-Fusion/modules/user_info_panel/templates/modules.user_info_panel.tpl
r1343 r1408 34 34 <hr /> 35 35 <div id='countdown' style='text-align:center'> 36 Login session ends on {$login_expiry|date_format:"subheaderdate"}36 Login session ends on<br />{$login_expiry|date_format:"subheaderdate"} 37 37 </div> 38 38 {/if} … … 40 40 <hr /> 41 41 <div style='text-align:center'> 42 <b><a href='{$smarty.const.BASEDIR}pm.php?action=show_new' class='side'>{ $new_pm_msg|string_format:$locale.085}{if $new_pm_msg == 1}{$locale.086}{else}{$locale.087}{/if}</a></b>42 <b><a href='{$smarty.const.BASEDIR}pm.php?action=show_new' class='side'>{if $new_pm_msg == 1}{$new_pm_msg|string_format:$locale.085}{else}{$new_pm_msg|string_format:$locale.086}{/if}</a></b> 43 43 </div> 44 44 {/if} … … 47 47 <div style='text-align:center'> 48 48 {if $new_posts_panel} 49 <a href='{$smarty.const.MODULES}forum_threads_list_panel/new_posts.php' class='side'><b>{ $new_post_msg|string_format:$locale.090}{if $new_post_msg == 1}{$locale.088}{else}{$locale.089}{/if}</b></a>49 <a href='{$smarty.const.MODULES}forum_threads_list_panel/new_posts.php' class='side'><b>{if $new_post_msg == 1}{$new_post_msg|string_format:$locale.088}{else}{$new_post_msg|string_format:$locale.089}{/if}</b></a> 50 50 <hr /> 51 51 {buttonlink name=$locale.091 link=$smarty.const.MODULES|cat:"forum_threads_list_panel/new_posts.php?markasread="|cat:$user_id} 52 52 {else} 53 <b>{ $new_post_msg|string_format:$locale.090}{if $new_post_msg == 1}{$locale.088}{else}{$locale.089}{/if}</b>53 <b>{if $new_post_msg == 1}{$new_post_msg|string_format:$locale.088}{else}{$new_post_msg|string_format:$locale.089}{/if}</b> 54 54 {/if} 55 55 </div> -
branches/PLi-Fusion/modules/user_info_panel/user_info_panel.php
r1343 r1408 64 64 $variables['loginerror'] = isset($loginerror) ? $loginerror : ""; 65 65 $variables['remember_me'] = isset($_SESSION['remember_me']) ? $_SESSION['remember_me'] : "no"; 66 $variables['login_expiry'] = (iADMIN && isset($_SESSION['login_expire'])) ? $_SESSION['login_expire']: "";66 $variables['login_expiry'] = (iADMIN && isset($_SESSION['login_expire'])) ? time_system2local($_SESSION['login_expire']) : ""; 67 67 68 68 $template_variables['modules.user_info_panel'] = $variables; -
branches/PLi-Fusion/pm.php
r1227 r1408 300 300 301 301 // check if we need to make room in the outbox of the sender 302 if ($totals['outbox'] >= $global_options['pm_sentbox']) { 303 $limit = $totals['outbox'] - $global_options['pm_sentbox'] + 1; 304 $result = dbquery( 305 "SELECT * FROM ".$db_prefix."pm m, ".$db_prefix."pm_index i 306 WHERE m.pm_id = i.pm_id AND i.pmindex_user_id = '".$userdata['user_id']."' AND i.pmindex_folder = '1' 307 ORDER BY m.pm_datestamp LIMIT ".$limit 308 ); 309 while ($data = dbarray($result)) { 310 deletemessage($data['pmindex_id'], $userdata['user_id']); 302 if (!$global_options['pm_sentbox_group']) { 303 if ($totals['outbox'] >= $global_options['pm_sentbox']) { 304 $limit = $totals['outbox'] - $global_options['pm_sentbox'] + 1; 305 $result = dbquery( 306 "SELECT * FROM ".$db_prefix."pm m, ".$db_prefix."pm_index i 307 WHERE m.pm_id = i.pm_id AND i.pmindex_user_id = '".$userdata['user_id']."' AND i.pmindex_folder = '1' 308 ORDER BY m.pm_datestamp LIMIT ".$limit 309 ); 310 while ($data = dbarray($result)) { 311 deletemessage($data['pmindex_id'], $userdata['user_id']); 312 } 311 313 } 312 314 } … … 383 385 foreach($message['user_ids'] as $user) { 384 386 // check if this recipient has room in his inbox. If not, create it 385 $inbox_total = dbcount("(pmindex_id)", "pm_index", "pmindex_user_id = '".$user['user_id']."' AND pmindex_folder = '0'"); 386 if ($inbox_total >= $global_options['pm_inbox']) { 387 $limit = $inbox_total - $global_options['pm_inbox'] + 1; 388 $result = dbquery( 389 "SELECT * FROM ".$db_prefix."pm m, ".$db_prefix."pm_index i 390 WHERE m.pm_id = i.pm_id AND i.pmindex_user_id = '".$user['user_id']."' AND i.pmindex_folder = '0' 391 ORDER BY m.pm_datestamp LIMIT ".$limit 392 ); 393 while ($data = dbarray($result)) { 394 deletemessage($data['pmindex_id'], $user['user_id']); 387 if (!$global_options['pm_inbox_group']) { 388 $inbox_total = dbcount("(pmindex_id)", "pm_index", "pmindex_user_id = '".$user['user_id']."' AND pmindex_folder = '0'"); 389 if ($inbox_total >= $global_options['pm_inbox']) { 390 $limit = $inbox_total - $global_options['pm_inbox'] + 1; 391 $result = dbquery( 392 "SELECT * FROM ".$db_prefix."pm m, ".$db_prefix."pm_index i 393 WHERE m.pm_id = i.pm_id AND i.pmindex_user_id = '".$user['user_id']."' AND i.pmindex_folder = '0' 394 ORDER BY m.pm_datestamp LIMIT ".$limit 395 ); 396 while ($data = dbarray($result)) { 397 deletemessage($data['pmindex_id'], $user['user_id']); 398 } 395 399 } 396 400 } … … 455 459 $global_options['pm_sentbox'] = $settings['pm_sentbox']; 456 460 $global_options['pm_savebox'] = $settings['pm_savebox']; 461 $global_options['pm_inbox_group'] = ($settings['pm_inbox_group'] && checkgroup($settings['pm_inbox_group'])); 462 $global_options['pm_sentbox_group'] = ($settings['pm_sentbox_group'] && checkgroup($settings['pm_sentbox_group'])); 463 $global_options['pm_savebox_group'] = ($settings['pm_savebox_group'] && checkgroup($settings['pm_savebox_group'])); 457 464 $global_options['pm_send2group'] = $settings['pm_send2group']; 458 465 $global_options['pm_hide_rcpts'] = $settings['pm_hide_rcpts']; … … 609 616 // move the selected messages to the arhive folder 610 617 if ($msg_ids && $check_count > 0) { 611 if ($global_options['pm_savebox'] == "0" || ($totals['archive'] + $check_count) <= $global_options['pm_savebox'] ) {618 if ($global_options['pm_savebox'] == "0" || ($totals['archive'] + $check_count) <= $global_options['pm_savebox'] || $global_options['pm_savebox_group']) { 612 619 $result = dbquery("UPDATE ".$db_prefix."pm_index SET pmindex_folder='2' WHERE pmindex_id IN(".$msg_ids.") AND pmindex_user_id='".$userdata['user_id']."' AND pmindex_read_datestamp != '0'"); 613 620 } else { … … 628 635 if ($data['pmindex_user_id'] == $data['pmindex_to_id']) { 629 636 // restore to inbox 630 if ($global_options['pm_inbox'] == "0" || $totals['inbox'] < $global_options['pm_inbox'] ) {637 if ($global_options['pm_inbox'] == "0" || $totals['inbox'] < $global_options['pm_inbox'] || $global_options['pm_inbox_group']) { 631 638 $result = dbquery("UPDATE ".$db_prefix."pm_index SET pmindex_folder='0' WHERE pmindex_id = '".$msg_id."' AND pmindex_user_id='".$userdata['user_id']."'"); 632 639 $totals['inbox'] = dbcount("(pmindex_id)", "pm_index", "pmindex_user_id = '".$userdata['user_id']."' AND pmindex_folder = '0'"); … … 637 644 } else { 638 645 // restore to outbox 639 if ($global_options['pm_sentbox'] == "0" || $totals['outbox'] < $global_options['pm_sentbox'] ) {646 if ($global_options['pm_sentbox'] == "0" || $totals['outbox'] < $global_options['pm_sentbox'] || $global_options['pm_sentbox_group']) { 640 647 $result = dbquery("UPDATE ".$db_prefix."pm_index SET pmindex_folder='1' WHERE pmindex_id = '".$msg_id."' AND pmindex_user_id='".$userdata['user_id']."'"); 641 648 $totals['outbox'] = dbcount("(pmindex_id)", "pm_index", "pmindex_user_id = '".$userdata['user_id']."' AND pmindex_folder = '1'"); … … 699 706 } elseif ($action == "archive") { 700 707 701 if ($global_options['pm_savebox'] == "0" || $totals['archive'] < $global_options['pm_savebox'] ) {708 if ($global_options['pm_savebox'] == "0" || $totals['archive'] < $global_options['pm_savebox'] || $global_options['pm_savebox_group']) { 702 709 $result = dbquery("UPDATE ".$db_prefix."pm_index SET pmindex_folder='2' WHERE pmindex_id = '".$msg_id."' AND pmindex_user_id='".$userdata['user_id']."'"); 703 710 } else { … … 713 720 if ($data['pmindex_user_id'] == $data['pmindex_to_id']) { 714 721 // restore to inbox 715 if ($global_options['pm_inbox'] == "0" || $totals['inbox'] < $global_options['pm_inbox'] ) {722 if ($global_options['pm_inbox'] == "0" || $totals['inbox'] < $global_options['pm_inbox'] || $global_options['pm_inbox_group']) { 716 723 $result = dbquery("UPDATE ".$db_prefix."pm_index SET pmindex_folder='0' WHERE pmindex_id = '".$msg_id."' AND pmindex_user_id='".$userdata['user_id']."'"); 717 724 } else { … … 720 727 } else { 721 728 // restore to outbox 722 if ($global_options['pm_sentbox'] == "0" || $totals['outbox'] < $global_options['pm_sentbox'] ) {729 if ($global_options['pm_sentbox'] == "0" || $totals['outbox'] < $global_options['pm_sentbox'] || $global_options['pm_sentbox_group']) { 723 730 $result = dbquery("UPDATE ".$db_prefix."pm_index SET pmindex_folder='1' WHERE pmindex_id = '".$msg_id."' AND pmindex_user_id='".$userdata['user_id']."'"); 724 731 } else { -
branches/PLi-Fusion/register.php
r1335 r1408 15 15 require_once dirname(__FILE__)."/includes/core_functions.php"; 16 16 require_once PATH_INCLUDES."theme_functions.php"; 17 require_once PATH_INCLUDES."dns_functions.php"; 17 18 18 19 // temp storage for template variables … … 37 38 $user_info = unserialize($data['user_info']); 38 39 $activation = $settings['admin_activation'] == "1" ? "2" : "0"; 39 $result = dbquery("INSERT INTO ".$db_prefix."users (user_name, user_fullname, user_password, user_email, user_hide_email, user_location, user_birthdate, user_aim, user_icq, user_msn, user_yahoo, user_web, user_theme, user_offset, user_avatar, user_sig, user_posts, user_joined, user_lastvisit, user_ip, user_rights, user_groups, user_level, user_status, user_newsletters) VALUES('".$user_info['user_name']."', '".$user_info['user_fullname']."', '".md5(md5($user_info['user_password']))."', '".$user_info['user_email']."', '".$user_info['user_hide_email']."', '', '0000-00-00', '', '', '', '', '', 'Default', '".$user_info['user_offset']."', '', '', '0', '".time()."', ' 0', '".USER_IP."', '', '', '101', '$activation', '1')");40 $result = dbquery("INSERT INTO ".$db_prefix."users (user_name, user_fullname, user_password, user_email, user_hide_email, user_location, user_birthdate, user_aim, user_icq, user_msn, user_yahoo, user_web, user_theme, user_offset, user_avatar, user_sig, user_posts, user_joined, user_lastvisit, user_ip, user_rights, user_groups, user_level, user_status, user_newsletters) VALUES('".$user_info['user_name']."', '".$user_info['user_fullname']."', '".md5(md5($user_info['user_password']))."', '".$user_info['user_email']."', '".$user_info['user_hide_email']."', '', '0000-00-00', '', '', '', '', '', 'Default', '".$user_info['user_offset']."', '', '', '0', '".time()."', '".time()."', '".USER_IP."', '', '', '101', '$activation', '1')"); 40 41 $result = dbquery("DELETE FROM ".$db_prefix."new_users WHERE user_code='$activate'"); 41 42 if ($settings['admin_activation'] == "1") { … … 134 135 require_once PATH_INCLUDES."secureimage-1.0.3/securimage.php"; 135 136 $securimage = new Securimage(); 136 if ( $securimage->check($_POST['captcha_code']) == false) {137 if (!isset($_POST['captcha_code']) || $securimage->check($_POST['captcha_code']) == false) { 137 138 // the code was incorrect 138 139 $error .= $locale['410']."<br />\n"; -
branches/PLi-Fusion/search.php
r1124 r1408 46 46 $variables['rowstart'] = $rowstart; 47 47 48 // do we have a localized menu? If so, select only the current locale 49 switch ($settings['sitelinks_localisation']) { 50 case "none": 51 $where = ""; 52 break; 53 case "single": 54 $where = ""; 55 break; 56 case "multiple": 57 if (isset($link_locale)) { 58 $result = dbquery("SELECT * FROM ".$db_prefix."locale WHERE locale_code = '".stripinput($link_locale)."' AND locale_active = '1' LIMIT 1"); 59 if (!dbrows($result)) unset($link_locale); 60 } 61 if (!isset($link_locale)) $link_locale = $settings['locale_code']; 62 $variables['link_locale'] = $link_locale; 63 $where = "AND link_locale = '".$link_locale."' "; 64 break; 65 } 66 48 67 // get the available options from the database 49 $result = dbquery("SELECT * FROM ".$db_prefix."site_links WHERE link_position<='2' ORDER BY link_order");68 $result = dbquery("SELECT * FROM ".$db_prefix."site_links WHERE link_position<='2' ".$where."ORDER BY link_order"); 50 69 $variables['links'] = array(); 51 70 if (dbrows($result) != 0) { … … 91 110 case "f": // forums 92 111 $result = dbquery( 93 "SELECT tp.*, tf.*, tu.user_id,user_name, 94 MATCH( post_subject, post_message) AGAINST ('$stext' IN BOOLEAN MODE) AS score112 "SELECT tp.*, tf.*, tu.user_id,user_name, fa.attach_id, 113 MATCH(tp.post_subject, tp.post_message, fa.attach_name, fa.attach_realname, fa.attach_comment) AGAINST ('$stext' IN BOOLEAN MODE) AS score 95 114 FROM ".$db_prefix."posts tp 96 115 INNER JOIN ".$db_prefix."forums tf USING(forum_id) 97 116 INNER JOIN ".$db_prefix."users tu ON tp.post_author=tu.user_id 98 WHERE ".groupaccess('forum_access')." AND MATCH(post_subject, post_message) AGAINST ('$stext' IN BOOLEAN MODE) 117 LEFT JOIN ".$db_prefix."forum_attachments fa ON tp.post_id=fa.post_id 118 WHERE ".groupaccess('forum_access')." AND MATCH(tp.post_subject, tp.post_message, fa.attach_name, fa.attach_realname, fa.attach_comment) AGAINST ('$stext' IN BOOLEAN MODE) 99 119 ORDER BY score DESC, post_datestamp DESC" 100 120 ); -
branches/PLi-Fusion/setup.php
r1227 r1408 291 291 // add records to the admin table 292 292 $commands = array(); 293 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('A', 'articles.gif', '". $locale['462']."', 'articles.php', 1)");294 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('AC', 'article_cats.gif', '". $locale['461']."', 'article_cats.php', 1)");295 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('AD', 'admins.gif', '". $locale['460']."', 'administrators.php', 2)");296 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('B', 'blacklist.gif', '". $locale['463']."', 'blacklist.php', 2)");297 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('BG', 'blogs.gif', '". $locale['473']."', 'blogs.php', 1)");298 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('C', '', '". $locale['464']."', 'reserved', 2)");299 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('CP', 'c-pages.gif', '". $locale['465']."', 'custom_pages.php', 1)");300 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('D', 'dl.gif', '". $locale['468']."', 'downloads.php', 1)");301 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('DB', 'db_backup.gif', '". $locale['466']."', 'db_backup.php', 3)");302 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('DC', 'dl_cats.gif', '". $locale['467']."', 'download_cats.php', 1)");303 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('F', 'forums.gif', '". $locale['470']."', 'forums.php', 1)");304 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('FQ', 'faq.gif', '". $locale['469']."', 'faq.php', 1)");305 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('I', 'modules.gif', '". $locale['472']."', 'modules.php', 3)");306 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('IM', 'images.gif', '". $locale['471']."', 'images.php', 1)");307 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('IP', '', '". $locale['473']."', 'reserved', 3)");308 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('M', 'members.gif', '". $locale['474']."', 'members.php', 2)");309 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('N', 'news.gif', '". $locale['475']."', 'news.php', 1)");310 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('NC', 'news_cats.gif', '". $locale['494']."', 'news_cats.php', 1)");311 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('P', 'panels.gif', '". $locale['476']."', 'panels.php', 3)");312 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('PI', 'phpinfo.gif', '". $locale['478']."', 'phpinfo.php', 3)");313 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('PO', 'polls.gif', '". $locale['479']."', 'forum_polls.php', 1)");314 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('S1', 'settings.gif', '". $locale['487']."', 'settings_main.php', 3)");315 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('S2', 'settings_time.gif', '". $locale['488']."', 'settings_time.php', 3)");316 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('S3', 'settings_forum.gif', '". $locale['489']."', 'settings_forum.php', 3)");317 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('S4', 'registration.gif', '". $locale['490']."', 'settings_registration.php', 3)");318 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('S6', 'settings_misc.gif', '". $locale['492']."', 'settings_misc.php', 3)");319 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('S7', 'settings_pm.gif', '". $locale['493']."', 'settings_messages.php', 3)");320 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('S8', 'settings_lang.gif', '". $locale['459']."', 'settings_languages.php', 3)");321 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('SL', 'site_links.gif', '". $locale['481']."', 'site_links.php', 3)");322 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('T', 'tools.gif', '". $locale['495']."', 'tools.php', 3)");323 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('U', 'upgrade.gif', '". $locale['483']."', 'upgrade.php', 3)");324 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('UG', 'user_groups.gif', '". $locale['484']."', 'user_groups.php', 2)");325 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('UR', 'submissions.gif', '". $locale['496']."', 'redirects.php', 1)");293 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('A', 'articles.gif', '".addslashes($locale['462'])."', 'articles.php', 1)"); 294 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('AC', 'article_cats.gif', '".addslashes($locale['461'])."', 'article_cats.php', 1)"); 295 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('AD', 'admins.gif', '".addslashes($locale['460'])."', 'administrators.php', 2)"); 296 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('B', 'blacklist.gif', '".addslashes($locale['463'])."', 'blacklist.php', 2)"); 297 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('BG', 'blogs.gif', '".addslashes($locale['473'])."', 'blogs.php', 1)"); 298 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('C', '', '".addslashes($locale['464'])."', 'reserved', 2)"); 299 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('CP', 'c-pages.gif', '".addslashes($locale['465'])."', 'custom_pages.php', 1)"); 300 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('D', 'dl.gif', '".addslashes($locale['468'])."', 'downloads.php', 1)"); 301 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('DB', 'db_backup.gif', '".addslashes($locale['466'])."', 'db_backup.php', 3)"); 302 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('DC', 'dl_cats.gif', '".addslashes($locale['467'])."', 'download_cats.php', 1)"); 303 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('F', 'forums.gif', '".addslashes($locale['470'])."', 'forums.php', 1)"); 304 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('FQ', 'faq.gif', '".addslashes($locale['469'])."', 'faq.php', 1)"); 305 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('I', 'modules.gif', '".addslashes($locale['472'])."', 'modules.php', 3)"); 306 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('IM', 'images.gif', '".addslashes($locale['471'])."', 'images.php', 1)"); 307 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('IP', '', '".addslashes($locale['473'])."', 'reserved', 3)"); 308 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('M', 'members.gif', '".addslashes($locale['474'])."', 'members.php', 2)"); 309 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('N', 'news.gif', '".addslashes($locale['475'])."', 'news.php', 1)"); 310 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('NC', 'news_cats.gif', '".addslashes($locale['494'])."', 'news_cats.php', 1)"); 311 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('P', 'panels.gif', '".addslashes($locale['476'])."', 'panels.php', 3)"); 312 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('PI', 'phpinfo.gif', '".addslashes($locale['478'])."', 'phpinfo.php', 3)"); 313 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('PO', 'polls.gif', '".addslashes($locale['479'])."', 'forum_polls.php', 1)"); 314 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('S1', 'settings.gif', '".addslashes($locale['487'])."', 'settings_main.php', 3)"); 315 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('S2', 'settings_time.gif', '".addslashes($locale['488'])."', 'settings_time.php', 3)"); 316 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('S3', 'settings_forum.gif', '".addslashes($locale['489'])."', 'settings_forum.php', 3)"); 317 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('S4', 'registration.gif', '".addslashes($locale['490'])."', 'settings_registration.php', 3)"); 318 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('S6', 'settings_misc.gif', '".addslashes($locale['492'])."', 'settings_misc.php', 3)"); 319 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('S7', 'settings_pm.gif', '".addslashes($locale['493'])."', 'settings_messages.php', 3)"); 320 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('S8', 'settings_lang.gif', '".addslashes($locale['459'])."', 'settings_languages.php', 3)"); 321 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('SL', 'site_links.gif', '".addslashes($locale['481'])."', 'site_links.php', 3)"); 322 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('T', 'tools.gif', '".addslashes($locale['495'])."', 'tools.php', 3)"); 323 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('U', 'upgrade.gif', '".addslashes($locale['483'])."', 'upgrade.php', 3)"); 324 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('UG', 'user_groups.gif', '".addslashes($locale['484'])."', 'user_groups.php', 2)"); 325 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('UR', 'submissions.gif', '".addslashes($locale['496'])."', 'redirects.php', 1)"); 326 326 $result = dbcommands($commands, $db_prefix); 327 327 328 328 // add the default 404 page to the custom pages table 329 329 $commands = array(); 330 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##custom_pages (page_title, page_access, page_content, page_allow_comments, page_allow_ratings) VALUES ('404 Error Page', 0, '".mysql_escape_string("<table border=\"0\" cellspacing=\"0\" cellpadding=\"5\" width=\"100%\" align=\"center\"> <tbody><tr><td width=\"10\"> </td><td><div align=\"center\"><font size=\"6\"><span class=\"shoutboxname\"><br />404 - Page Not Found</span><br /></font></div><br /><br /><hr width=\"90%\" size=\"2\" /><br /><br /><div align=\"center\">". $locale['560']."<br /></div><br /><div align=\"center\">".$locale['561']."<br /></div><br /><div align=\"center\">".$locale['562']."<br /></div><br /><br /><hr width=\"90%\" size=\"2\" /><br /><br /><div align=\"center\">".$locale['563']."<br /></div><br /><div align=\"center\">".$locale['564']."</div></td><td width=\"10\"> </td></tr></tbody></table><br />")."', 0, 0)");330 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##custom_pages (page_title, page_access, page_content, page_allow_comments, page_allow_ratings) VALUES ('404 Error Page', 0, '".mysql_escape_string("<table border=\"0\" cellspacing=\"0\" cellpadding=\"5\" width=\"100%\" align=\"center\"> <tbody><tr><td width=\"10\"> </td><td><div align=\"center\"><font size=\"6\"><span class=\"shoutboxname\"><br />404 - Page Not Found</span><br /></font></div><br /><br /><hr width=\"90%\" size=\"2\" /><br /><br /><div align=\"center\">".addslashes($locale['560'])."<br /></div><br /><div align=\"center\">".addslashes($locale['561'])."<br /></div><br /><div align=\"center\">".addslashes($locale['562'])."<br /></div><br /><br /><hr width=\"90%\" size=\"2\" /><br /><br /><div align=\"center\">".addslashes($locale['563'])."<br /></div><br /><div align=\"center\">".addslashes($locale['564'])."</div></td><td width=\"10\"> </td></tr></tbody></table><br />")."', 0, 0)"); 331 331 $commands[] = array('type' => 'db', 'value' => "UPDATE ##PREFIX##custom_pages SET page_id = 0"); 332 332 $result = dbcommands($commands, $db_prefix); … … 351 351 // add the default news categories 352 352 $commands = array(); 353 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##news_cats (news_cat_name, news_cat_image) VALUES ('". $locale['540']."', 'bugs.gif')");354 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##news_cats (news_cat_name, news_cat_image) VALUES ('". $locale['541']."', 'downloads.gif')");355 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##news_cats (news_cat_name, news_cat_image) VALUES ('". $locale['542']."', 'games.gif')");356 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##news_cats (news_cat_name, news_cat_image) VALUES ('". $locale['543']."', 'graphics.gif')");357 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##news_cats (news_cat_name, news_cat_image) VALUES ('". $locale['544']."', 'hardware.gif')");358 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##news_cats (news_cat_name, news_cat_image) VALUES ('". $locale['545']."', 'journal.gif')");359 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##news_cats (news_cat_name, news_cat_image) VALUES ('". $locale['546']."', 'members.gif')");360 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##news_cats (news_cat_name, news_cat_image) VALUES ('". $locale['547']."', 'mods.gif')");361 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##news_cats (news_cat_name, news_cat_image) VALUES ('". $locale['548']."', 'movies.gif')");362 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##news_cats (news_cat_name, news_cat_image) VALUES ('". $locale['549']."', 'network.gif')");363 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##news_cats (news_cat_name, news_cat_image) VALUES ('". $locale['550']."', 'news.gif')");364 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##news_cats (news_cat_name, news_cat_image) VALUES ('". $locale['552']."', 'security.gif')");365 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##news_cats (news_cat_name, news_cat_image) VALUES ('". $locale['553']."', 'software.gif')");366 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##news_cats (news_cat_name, news_cat_image) VALUES ('". $locale['554']."', 'themes.gif')");367 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##news_cats (news_cat_name, news_cat_image) VALUES ('". $locale['555']."', 'windows.gif')");353 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##news_cats (news_cat_name, news_cat_image) VALUES ('".addslashes($locale['540'])."', 'bugs.gif')"); 354 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##news_cats (news_cat_name, news_cat_image) VALUES ('".addslashes($locale['541'])."', 'downloads.gif')"); 355 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##news_cats (news_cat_name, news_cat_image) VALUES ('".addslashes($locale['542'])."', 'games.gif')"); 356 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##news_cats (news_cat_name, news_cat_image) VALUES ('".addslashes($locale['543'])."', 'graphics.gif')"); 357 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##news_cats (news_cat_name, news_cat_image) VALUES ('".addslashes($locale['544'])."', 'hardware.gif')"); 358 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##news_cats (news_cat_name, news_cat_image) VALUES ('".addslashes($locale['545'])."', 'journal.gif')"); 359 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##news_cats (news_cat_name, news_cat_image) VALUES ('".addslashes($locale['546'])."', 'members.gif')"); 360 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##news_cats (news_cat_name, news_cat_image) VALUES ('".addslashes($locale['547'])."', 'mods.gif')"); 361 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##news_cats (news_cat_name, news_cat_image) VALUES ('".addslashes($locale['548'])."', 'movies.gif')"); 362 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##news_cats (news_cat_name, news_cat_image) VALUES ('".addslashes($locale['549'])."', 'network.gif')"); 363 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##news_cats (news_cat_name, news_cat_image) VALUES ('".addslashes($locale['550'])."', 'news.gif')"); 364 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##news_cats (news_cat_name, news_cat_image) VALUES ('".addslashes($locale['552'])."', 'security.gif')"); 365 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##news_cats (news_cat_name, news_cat_image) VALUES ('".addslashes($locale['553'])."', 'software.gif')"); 366 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##news_cats (news_cat_name, news_cat_image) VALUES ('".addslashes($locale['554'])."', 'themes.gif')"); 367 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##news_cats (news_cat_name, news_cat_image) VALUES ('".addslashes($locale['555'])."', 'windows.gif')"); 368 368 $result = dbcommands($commands, $db_prefix); 369 369 … … 377 377 // and activate the panels of these modules 378 378 $commands = array(); 379 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##panels (panel_name, panel_filename, panel_side, panel_order, panel_type, panel_access, panel_display, panel_status) VALUES ('". $locale['520']."', 'main_menu_panel', '1', '1', 'file', '0', '0', '1')");380 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##panels (panel_name, panel_filename, panel_side, panel_order, panel_type, panel_access, panel_display, panel_status) VALUES ('". $locale['524']."', 'welcome_message_panel', '2', '1', 'file', '0', '0', '1')");381 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##panels (panel_name, panel_filename, panel_side, panel_order, panel_type, panel_access, panel_display, panel_status) VALUES ('". $locale['526']."', 'user_info_panel', '4', 1, 'file', '0', '0', '1')");379 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##panels (panel_name, panel_filename, panel_side, panel_order, panel_type, panel_access, panel_display, panel_status) VALUES ('".addslashes($locale['520'])."', 'main_menu_panel', '1', '1', 'file', '0', '0', '1')"); 380 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##panels (panel_name, panel_filename, panel_side, panel_order, panel_type, panel_access, panel_display, panel_status) VALUES ('".addslashes($locale['524'])."', 'welcome_message_panel', '2', '1', 'file', '0', '0', '1')"); 381 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##panels (panel_name, panel_filename, panel_side, panel_order, panel_type, panel_access, panel_display, panel_status) VALUES ('".addslashes($locale['526'])."', 'user_info_panel', '4', 1, 'file', '0', '0', '1')"); 382 382 $result = dbcommands($commands, $db_prefix); 383 383 384 384 // add the default menu links 385 385 $commands = array(); 386 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##site_links (link_name, link_url, link_visibility, link_position, link_window, link_order, panel_name) VALUES ('". $locale['500']."', 'index.php', '0', '1', '0', '1', 'main_menu_panel')");387 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##site_links (link_name, link_url, link_visibility, link_position, link_window, link_order, panel_name) VALUES ('". $locale['501']."', 'article_cats.php', '0', '1', '0', '2', 'main_menu_panel')");388 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##site_links (link_name, link_url, link_visibility, link_position, link_window, link_order, panel_name) VALUES ('". $locale['502']."', 'downloads.php', '0', '1', '0', '3', 'main_menu_panel')");389 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##site_links (link_name, link_url, link_visibility, link_position, link_window, link_order, panel_name) VALUES ('". $locale['503']."', 'faq.php', '0', '1', '0', '4', 'main_menu_panel')");390 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##site_links (link_name, link_url, link_visibility, link_position, link_window, link_order, panel_name) VALUES ('". $locale['504']."', 'forum/index.php', '0', '1', '0', '5', 'main_menu_panel')");391 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##site_links (link_name, link_url, link_visibility, link_position, link_window, link_order, panel_name) VALUES ('". $locale['505']."', 'news_cats.php', '0', '1', '0', '6', 'main_menu_panel')");392 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##site_links (link_name, link_url, link_visibility, link_position, link_window, link_order, panel_name) VALUES ('". $locale['473']."', 'blogs.php', '0', '1', '0', '7', 'main_menu_panel')");393 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##site_links (link_name, link_url, link_visibility, link_position, link_window, link_order, panel_name) VALUES ('". $locale['506']."', 'contact.php', '0', '1', '0', '8', 'main_menu_panel')");394 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##site_links (link_name, link_url, link_visibility, link_position, link_window, link_order, panel_name) VALUES ('". $locale['507']."', 'search.php', '0', '1', '0', '9', 'main_menu_panel')");395 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##site_links (link_name, link_url, link_visibility, link_position, link_window, link_order, panel_name) VALUES ('". $locale['508']."', 'register.php', '100', '2', '0', '10', 'main_menu_panel')");386 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##site_links (link_name, link_url, link_visibility, link_position, link_window, link_order, panel_name) VALUES ('".addslashes($locale['500'])."', 'index.php', '0', '1', '0', '1', 'main_menu_panel')"); 387 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##site_links (link_name, link_url, link_visibility, link_position, link_window, link_order, panel_name) VALUES ('".addslashes($locale['501'])."', 'article_cats.php', '0', '1', '0', '2', 'main_menu_panel')"); 388 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##site_links (link_name, link_url, link_visibility, link_position, link_window, link_order, panel_name) VALUES ('".addslashes($locale['502'])."', 'downloads.php', '0', '1', '0', '3', 'main_menu_panel')"); 389 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##site_links (link_name, link_url, link_visibility, link_position, link_window, link_order, panel_name) VALUES ('".addslashes($locale['503'])."', 'faq.php', '0', '1', '0', '4', 'main_menu_panel')"); 390 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##site_links (link_name, link_url, link_visibility, link_position, link_window, link_order, panel_name) VALUES ('".addslashes($locale['504'])."', 'forum/index.php', '0', '1', '0', '5', 'main_menu_panel')"); 391 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##site_links (link_name, link_url, link_visibility, link_position, link_window, link_order, panel_name) VALUES ('".addslashes($locale['505'])."', 'news_cats.php', '0', '1', '0', '6', 'main_menu_panel')"); 392 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##site_links (link_name, link_url, link_visibility, link_position, link_window, link_order, panel_name) VALUES ('".addslashes($locale['473'])."', 'blogs.php', '0', '1', '0', '7', 'main_menu_panel')"); 393 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##site_links (link_name, link_url, link_visibility, link_position, link_window, link_order, panel_name) VALUES ('".addslashes($locale['506'])."', 'contact.php', '0', '1', '0', '8', 'main_menu_panel')"); 394 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##site_links (link_name, link_url, link_visibility, link_position, link_window, link_order, panel_name) VALUES ('".addslashes($locale['507'])."', 'search.php', '0', '1', '0', '9', 'main_menu_panel')"); 395 $commands[] = array('type' => 'db', 'value' => "INSERT INTO ##PREFIX##site_links (link_name, link_url, link_visibility, link_position, link_window, link_order, panel_name) VALUES ('".addslashes($locale['508'])."', 'register.php', '100', '2', '0', '10', 'main_menu_panel')"); 396 396 $result = dbcommands($commands, $db_prefix); 397 397
Note: See TracChangeset
for help on using the changeset viewer.
