Changeset 1068 in ExiteCMS
- Timestamp:
- 11/06/07 00:40:02 (4 years ago)
- Location:
- trunk
- Files:
-
- 7 added
- 10 edited
-
administration/images/tools.gif (added)
-
administration/index.php (modified) (1 diff)
-
administration/tools.php (added)
-
administration/tools/templates (added)
-
administration/tools/templates/index.php (added)
-
administration/tools/update_geoip_database.php (added)
-
administration/upgrade/rev01067.php (added)
-
includes/core_functions.php (modified) (2 diffs)
-
includes/templates/admin.index.tpl (modified) (6 diffs)
-
includes/templates/admin.tools.tpl (added)
-
includes/theme_functions.php (modified) (3 diffs)
-
locale/English/admin/main.php (modified) (1 diff)
-
locale/English/setup.php (modified) (1 diff)
-
members.php (modified) (1 diff)
-
setup.php (modified) (1 diff)
-
themes/ExiteCMS/templates/templates/_openside_x.tpl (modified) (1 diff)
-
themes/ExiteCMS/templates/templates/_opentable_x.tpl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/administration/index.php
r1020 r1068 89 89 $variables['statistics']['members_registered'] = dbcount("(user_id)", "users", "user_status<='1'"); 90 90 $variables['statistics']['members_unactive'] = dbcount("(user_id)", "users", "user_status='2'"); 91 $variables['statistics']['members_ banned'] = dbcount("(user_id)", "users", "user_status='1'");91 $variables['statistics']['members_suspended'] = dbcount("(user_id)", "users", "user_status='1'"); 92 92 $variables['statistics']['messages_unread'] = dbcount("(post_id)", "posts_unread"); 93 93 $variables['statistics']['comments'] = dbcount("(comment_id)", "comments"); -
trunk/includes/core_functions.php
r957 r1068 197 197 if (isset($_SERVER['SERVER_SOFTWARE'])) { 198 198 // Common definitions - CGI mode 199 define("CMS_CLI", false); 199 200 $_SERVER['QUERY_STRING'] = isset($_SERVER['QUERY_STRING']) ? cleanurl($_SERVER['QUERY_STRING']) : ""; 200 201 $_SERVER['REQUEST_URI'] = isset($_SERVER['REQUEST_URI']) ? cleanurl($_SERVER['REQUEST_URI']) : ""; … … 208 209 } else { 209 210 // Common definitions - CLI mode 211 define("CMS_CLI", true); 210 212 define("USER_IP", '0.0.0.0'); 211 213 } -
trunk/includes/templates/admin.index.tpl
r1015 r1068 17 17 {***************************************************************************} 18 18 {include file="_opentable.tpl" name=$_name title="ExiteCMS v."|cat:$settings.version|cat:" • "|cat:" SVN Revision "|cat:$settings.revision|cat:" • "|cat:$locale.200|cat:" <b>"|cat:$settings.sitename|cat:"</b>" state=$_state style=$_style} 19 {assign var='cols' value='0'} 19 20 <table align='center' cellpadding='0' cellspacing='1' width='100%' class='tbl-border'> 20 21 <tr> 21 22 {if $adminpage1|default:0 != 0} 23 {assign var='cols' value=$cols+1} 22 24 <td align='center' width='20%' class='{if $pagenum == 1}tbl1{else}tbl2{/if}'> 23 25 <span class='small'> … … 27 29 {/if} 28 30 {if $adminpage2|default:0 != 0} 31 {assign var='cols' value=$cols+1} 29 32 <td align='center' width='20%' class='{if $pagenum == 2}tbl1{else}tbl2{/if}'> 30 33 <span class='small'> … … 34 37 {/if} 35 38 {if $adminpage3|default:0 != 0} 39 {assign var='cols' value=$cols+1} 36 40 <td align='center' width='20%' class='{if $pagenum == 3}tbl1{else}tbl2{/if}'> 37 41 <span class='small'> … … 41 45 {/if} 42 46 {if $adminpage4|default:0 != 0} 47 {assign var='cols' value=$cols+1} 43 48 <td align='center' width='20%' class='{if $pagenum == 4}tbl1{else}tbl2{/if}'> 44 49 <span class='small'> … … 49 54 </tr> 50 55 <tr> 51 <td colspan=' 4' class='tbl1'>56 <td colspan='{$cols}' class='tbl1'> 52 57 {counter start=1 print=false assign='column'} 53 58 <table cellpadding='0' cellspacing='0' width='100%'> … … 85 90 {$locale.251} {$statistics.members_registered}<br /> 86 91 {$locale.252} {$statistics.members_unactive}<br /> 87 {$locale.253} {$statistics.members_ banned}<br />92 {$locale.253} {$statistics.members_suspended}<br /> 88 93 </td> 89 94 <td valign='top' width='33%' class='small'> -
trunk/includes/theme_functions.php
r1060 r1068 258 258 $td = $template->template_dir; 259 259 $template->template_dir = array_merge(array(PATH_MODULES.$tpl_parts[1].'/templates'), $template->template_dir); 260 } else { 261 // we shouldn't get here 262 } 263 264 //if this is a tools template... 265 $tpl_parts = explode(".", $panel['template']); 266 if ($tpl_parts[0] == "tools") { 267 // store the current template directories, we need to restore them later 268 $td = $template->template_dir; 269 $template->template_dir = array_merge(array(PATH_ADMIN.'tools/templates'), $template->template_dir); 260 270 } else { 261 271 // we shouldn't get here … … 400 410 function theme_cleanup() { 401 411 402 global $db_prefix, $userdata, $_db_logs, $template ;412 global $db_prefix, $userdata, $_db_logs, $template, $settings; 403 413 404 414 // clean-up tasks, will be executed by all admins and super-admins … … 416 426 // unread posts indicators: set to 30 days 417 427 $result = dbquery("DELETE FROM ".$db_prefix."posts_unread WHERE post_time < '".(time() - $day * 30)."'", false); 418 // deactivate accounts with a bad email address after 90 days 419 $result = dbquery("UPDATE ".$db_prefix."users SET user_status = 1, user_ban_reason = '', user_ban_expire = '".time()."' WHERE user_bad_email > 0 AND user_bad_email < '".(time() - $day * 90)."'"); 428 // deactivate accounts with a bad email address after 90 days (available since v7.0 rev.1060) 429 if ($settings['revision'] >= 1060) { 430 $result = dbquery("UPDATE ".$db_prefix."users SET user_status = 1, user_ban_reason = '', user_ban_expire = '".time()."' WHERE user_bad_email > 0 AND user_bad_email < '".(time() - $day * 90)."'"); 431 } 420 432 } 421 433 -
trunk/locale/English/admin/main.php
r831 r1068 38 38 $locale['235'] = "News Categories"; 39 39 $locale['236'] = "Language Settings"; 40 $locale['237'] = "Webmaster Toolbox for"; 40 41 // Website Statistics 41 42 $locale['250'] = "Website Statistics"; 42 43 $locale['251'] = "Registered Members:"; 43 44 $locale['252'] = "Unactivated Members:"; 44 $locale['253'] = "Banned Members:"; 45 $locale['254'] = "x"; 45 $locale['253'] = "Suspended Members:"; 46 46 $locale['255'] = "x"; 47 47 $locale['256'] = "x"; -
trunk/locale/English/setup.php
r960 r1068 58 58 $locale['471'] = "Images"; 59 59 $locale['472'] = "Modules & Plugins"; 60 $locale['473'] = " Infusion Panels";60 $locale['473'] = "x"; 61 61 $locale['474'] = "Members"; 62 62 $locale['475'] = "News"; 63 63 $locale['476'] = "Panels"; 64 $locale['477'] = " Photo Albums";64 $locale['477'] = "x"; 65 65 $locale['478'] = "PHP Info"; 66 66 $locale['479'] = "Polls"; 67 $locale['480'] = " Shoutbox";67 $locale['480'] = "x"; 68 68 $locale['481'] = "Menu System"; 69 $locale['482'] = " Submissions";69 $locale['482'] = "x"; 70 70 $locale['483'] = "Upgrade"; 71 71 $locale['484'] = "User Groups"; 72 $locale['485'] = " Web Link Categories";73 $locale['486'] = " Web Links";72 $locale['485'] = "x"; 73 $locale['486'] = "x"; 74 74 $locale['487'] = "Main Settings"; 75 75 $locale['488'] = "Time and Date Settings"; 76 76 $locale['489'] = "Forum Settings"; 77 77 $locale['490'] = "Registration Settings"; 78 $locale['491'] = " Photo Gallery Settings";78 $locale['491'] = "x"; 79 79 $locale['492'] = "Miscellaneous Settings"; 80 80 $locale['493'] = "Private Message Settings"; 81 81 $locale['494'] = "News Categories"; 82 $locale['495'] = " Forum Polls";82 $locale['495'] = "Webmaster Toolbox"; 83 83 $locale['496'] = "URL Redirects"; 84 $locale['497'] = "Newsletters";85 $locale['498'] = "Advertising";86 $locale['499'] = "Virtual Website";87 84 // Step 2 - Navigation Links 88 85 $locale['500'] = "Home"; -
trunk/members.php
r1060 r1068 45 45 } else { 46 46 if ($country == "") { 47 $filter .= " AND user_name LIKE '".stripinput($sortby)."%' OR user_name LIKE '".strtolower(stripinput($sortby))."%'";47 $filter .= " AND (user_name LIKE '".stripinput($sortby)."%' OR user_name LIKE '".strtolower(stripinput($sortby))."%')"; 48 48 } else { 49 $filter .= " AND user_cc_code = '".$country."' AND (user_name LIKE '".stripinput($sortby)."%' OR user_name LIKE '".strtolower(stripinput($sortby))."%')";49 $filter .= " AND (user_cc_code = '".$country."' AND (user_name LIKE '".stripinput($sortby)."%' OR user_name LIKE '".strtolower(stripinput($sortby))."%'))"; 50 50 } 51 51 } -
trunk/setup.php
r1009 r1068 330 330 $result = dbquery("INSERT INTO ".$db_prefix."admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('S8', 'settings_lang.gif', '".$locale['459']."', 'settings_languages.php', 3)"); 331 331 $result = dbquery("INSERT INTO ".$db_prefix."admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('SL', 'site_links.gif', '".$locale['481']."', 'site_links.php', 3)"); 332 $result = dbquery("INSERT INTO ".$db_prefix."admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('T', 'tools.gif', '".$locale['495']."', 'tools.php', 3)"); 332 333 $result = dbquery("INSERT INTO ".$db_prefix."admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('U', 'upgrade.gif', '".$locale['483']."', 'upgrade.php', 3)"); 333 334 $result = dbquery("INSERT INTO ".$db_prefix."admin (admin_rights, admin_image, admin_title, admin_link, admin_page) VALUES ('UG', 'user_groups.gif', '".$locale['484']."', 'user_groups.php', 2)"); -
trunk/themes/ExiteCMS/templates/templates/_openside_x.tpl
r934 r1068 27 27 <td class='sub-cap-main'> 28 28 <div style='display:inline; position:relative; float:right;margin-top:2px;'> 29 <img src='{$smarty.const.THEME}images/panel_{if $_state == 1}on{else}off{/if}.gif' name='b_{$_name}' onclick="javascript:flipBox('{$_name}')" />29 <img src='{$smarty.const.THEME}images/panel_{if $_state == 1}on{else}off{/if}.gif' alt='' name='b_{$_name}' onclick="javascript:flipBox('{$_name}')" /> 30 30 </div> 31 31 {$title|default:" "} -
trunk/themes/ExiteCMS/templates/templates/_opentable_x.tpl
r934 r1068 26 26 <td class='cap-main'> 27 27 <div style='display:inline; position:relative; float:right;margin-top:2px;'> 28 <img src='{$smarty.const.THEME}images/panel_{if $_state == 1}on{else}off{/if}.gif' name='b_{$_name}' onclick="javascript:flipBox('{$_name}')" />28 <img src='{$smarty.const.THEME}images/panel_{if $_state == 1}on{else}off{/if}.gif' name='b_{$_name}' alt='' onclick="javascript:flipBox('{$_name}')" /> 29 29 </div> 30 30 {$title|default:" "}
Note: See TracChangeset
for help on using the changeset viewer.
