Changeset 1159 in ExiteCMS
- Timestamp:
- 12/08/07 00:04:43 (4 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 14 edited
-
administration/administrators.php (modified) (2 diffs)
-
administration/downloads.php (modified) (9 diffs)
-
administration/index.php (modified) (1 diff)
-
administration/members.php (modified) (1 diff)
-
administration/phpinfo.php (modified) (1 diff)
-
administration/tools/language_pack_English.php (modified) (4 diffs)
-
administration/upgrade/rev01145.php (added)
-
administration/user_groups.php (modified) (2 diffs)
-
forum/viewthread.php (modified) (2 diffs)
-
includes/core_functions.php (modified) (2 diffs)
-
includes/templates/admin.downloads.tpl (modified) (2 diffs)
-
includes/templates/admin.index.tpl (modified) (1 diff)
-
includes/templates/admin.members.tpl (modified) (2 diffs)
-
includes/templates/forum.renderpost.tpl (modified) (2 diffs)
-
includes/templates/main.profile.members.tpl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/administration/administrators.php
r1117 r1159 77 77 78 78 // get the list of members with administrator or webmaster level 79 $result = dbquery("SELECT * FROM ".$db_prefix."users WHERE user_level>='102' ORDER BY user_level DESC, user_name");79 $result = dbquery("SELECT * FROM ".$db_prefix."users WHERE user_level>='102' AND user_status = '0' ORDER BY user_level DESC, user_name"); 80 80 $variables['admins'] = array(); 81 81 while ($data = dbarray($result)) { … … 96 96 97 97 // get the list of all members (remove the user himself from the list!) 98 $result = dbquery("SELECT * FROM ".$db_prefix."users ORDER BY user_name");98 $result = dbquery("SELECT * FROM ".$db_prefix."users WHERE user_status = '0' ORDER BY user_name"); 99 99 $variables['users'] = array(); 100 100 while ($data = dbarray($result)) { -
trunk/administration/downloads.php
r1071 r1159 18 18 // load the locale for this module 19 19 locale_load("admin.downloads"); 20 21 // TODO - WANWIZARD - 20070718 - NEED TO MOVE THIS TO SETTINGS22 define('MAX_BARS', 9);23 20 24 21 //check if the user has a right to be here. If not, bail out … … 89 86 if (!isset($download_cat_id)) $download_cat_id = "-1"; 90 87 if (!isset($step)) $step = ""; 91 $barmsg = "";92 $bartitle = "";93 88 94 89 // temp storage for template variables 95 90 $variables = array(); 96 91 97 if(isset($_POST['save_bars'])) { 98 $barcontent = $_POST['download_bar']; 99 if (!is_array($barcontent)) fallback(BASEDIR."index.php"); 100 $bar_title = stripinput($_POST['bar_title']); 101 $result = dbquery("UPDATE ".$db_prefix."download_cats SET download_cat_name = '".$bar_title."' WHERE download_cat_id = '0'"); 102 // reset all bar indicators before setting new ones 103 $result = dbquery("UPDATE ".$db_prefix."downloads SET download_bar = '0'"); 104 foreach($barcontent as $key => $bar) { 105 if ($bar != 0) $result = dbquery("UPDATE ".$db_prefix."downloads SET download_bar = '".$key."' WHERE download_id = '".$bar."'"); 106 } 107 $barmsg = $locale['523']; 108 } 109 110 $result = dbquery("SELECT * FROM ".$db_prefix."download_cats"); 92 // compose the query where clause based on the localisation method choosen 93 switch ($settings['download_localisation']) { 94 case "none": 95 $where = ""; 96 $cat_locale = ""; 97 break; 98 case "single": 99 $where = ""; 100 $cat_locale = ""; 101 break; 102 case "multiple": 103 if (isset($cat_locale)) { 104 $result = dbquery("SELECT * FROM ".$db_prefix."locale WHERE locale_code = '".stripinput($cat_locale)."' AND locale_active = '1' LIMIT 1"); 105 if (!dbrows($result)) unset($cat_locale); 106 } 107 if (!isset($cat_locale)) $cat_locale = $settings['locale_code']; 108 $where = "download_cat_locale = '".$cat_locale."' "; 109 break; 110 } 111 $variables['cat_locale'] = $cat_locale; 112 113 // get the installed locales 114 $variables['locales'] = array(); 115 $result = dbquery("SELECT * FROM ".$db_prefix."locale WHERE locale_active = '1'"); 116 while ($data = dbarray($result)) { 117 $variables['locales'][$data['locale_code']] = $data['locale_name']; 118 } 119 120 $result = dbquery("SELECT * FROM ".$db_prefix."download_cats LIMIT 1"); 111 121 if (dbrows($result) != 0) { 112 122 $variables['cats_found'] = true; … … 114 124 $result = dbquery("DELETE FROM ".$db_prefix."downloads WHERE download_id='$download_id'"); 115 125 if (dbcount("(*)", "downloads", "download_cat=$download_cat_id") == 0) { 116 redirect(FUSION_SELF.$aidlink );117 } else { 118 redirect(FUSION_SELF.$aidlink."&download_cat_id=$download_cat_id ");126 redirect(FUSION_SELF.$aidlink."&cat_locale=$cat_locale"); 127 } else { 128 redirect(FUSION_SELF.$aidlink."&download_cat_id=$download_cat_id&cat_locale=$cat_locale"); 119 129 } 120 130 } … … 130 140 $download_datestamp = isset($_POST['update_datestamp']) ? ", download_datestamp='".time()."'" : ""; 131 141 $result = dbquery("UPDATE ".$db_prefix."downloads SET download_title='$download_title', download_description='$download_description', download_url='$download_url', download_cat='$download_cat', download_license='$download_license', download_os='$download_os', download_version='$download_version', download_filesize='$download_filesize'".$download_datestamp." WHERE download_id='$download_id'"); 132 redirect(FUSION_SELF.$aidlink."&download_cat_id=$download_cat ");142 redirect(FUSION_SELF.$aidlink."&download_cat_id=$download_cat&cat_locale=$cat_locale"); 133 143 } else { 134 144 $result = dbquery("INSERT INTO ".$db_prefix."downloads (download_title, download_description, download_url, download_cat, download_license, download_os, download_version, download_filesize, download_datestamp, download_count) VALUES ('$download_title', '$download_description', '$download_url', '$download_cat', '$download_license', '$download_os', '$download_version', '$download_filesize', '".time()."', '0')"); 135 redirect(FUSION_SELF.$aidlink."&download_cat_id=$download_cat ");145 redirect(FUSION_SELF.$aidlink."&download_cat_id=$download_cat&cat_locale=$cat_locale"); 136 146 } 137 147 } … … 161 171 $variables['cats'] = array(); 162 172 $variables['download_cats'] = array(); 163 $result2 = dbquery("SELECT * FROM ".$db_prefix."download_cats WHERE download_cat_id > 0 ORDER BY download_cat_id*10000+download_parent");173 $result2 = dbquery("SELECT * FROM ".$db_prefix."download_cats WHERE download_cat_id > 0 ".($where==""?"":("AND ".$where))." ORDER BY download_cat_id*10000+download_parent"); 164 174 while ($data2 = dbarray($result2)) { 165 175 $variables['download_cats'][$data2['download_cat_id']] = $data2['download_cat_name']; … … 183 193 } 184 194 // Then recurse through the download categories 185 $result = dbquery("SELECT * FROM ".$db_prefix."download_cats WHERE download_cat_id > 0 AND download_parent = 0 ORDER BY download_datestamp DESC");195 $result = dbquery("SELECT * FROM ".$db_prefix."download_cats WHERE download_cat_id > 0 ".($where==""?"":("AND ".$where))." AND download_parent = 0 ORDER BY download_datestamp DESC"); 186 196 while($data = dbarray($result)) { 187 197 recurse_dc($data['download_cat_id'], 0); 188 }189 190 // get the download bar panel title191 $result = dbquery("SELECT download_cat_name FROM ".$db_prefix."download_cats WHERE download_cat_id='0'");192 if ($data = dbarray($result)) {193 $bar_title = $data['download_cat_name'];194 } else {195 $result = dbquery("INSERT INTO ".$db_prefix."download_cats (download_cat_name, download_cat_access) VALUES ('', '255')");196 $bar_title_id = mysql_insert_id();197 $result = dbquery("UPDATE ".$db_prefix."download_cats SET download_cat_id = '0' WHERE download_cat_id = '".$bar_title_id."'");198 $bar_title = "";199 198 } 200 199 … … 203 202 $result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_id DESC"); 204 203 while($data = dbarray($result)) { 204 // skip all downloads from filtered categories 205 if (!isset($variables['download_cats'][$data['download_cat']])) continue; 205 206 if ($data['download_cat']) { 206 207 $data['download_cat_name'] = $variables['download_cats'][$data['download_cat']]; … … 213 214 // template variables 214 215 $variables['step'] = $step; 215 $variables['formaction'] = $formaction ;216 $variables['formaction'] = $formaction.($cat_locale==""?"":("&cat_locale=".$cat_locale)); 216 217 $variables['download_cat_id'] = $download_cat_id; 217 218 $variables['download_title'] = $download_title; … … 222 223 $variables['download_version'] = $download_version; 223 224 $variables['download_filesize'] = $download_filesize; 224 $variables['barmsg'] = $barmsg;225 $variables['bar_title'] = $bar_title;226 225 227 226 } else { -
trunk/administration/index.php
r1112 r1159 99 99 $variables['statistics']['members_unactive'] = dbcount("(user_id)", "users", "user_status='2'"); 100 100 $variables['statistics']['members_suspended'] = dbcount("(user_id)", "users", "user_status='1'"); 101 $variables['statistics']['members_deleted'] = dbcount("(user_id)", "users", "user_status='3'"); 101 102 $variables['statistics']['messages_unread'] = dbcount("(post_id)", "posts_unread"); 102 103 $variables['statistics']['comments'] = dbcount("(comment_id)", "comments"); -
trunk/administration/members.php
r1095 r1159 116 116 } elseif ($step == "delete") { 117 117 if ($user_id != 1) { 118 $result = dbquery("DELETE FROM ".$db_prefix."users WHERE user_id='$user_id'"); 119 $result = dbquery("DELETE FROM ".$db_prefix."articles WHERE article_name='$user_id'"); 120 $result = dbquery("DELETE FROM ".$db_prefix."comments WHERE comment_name='$user_id'"); 121 $result = dbquery("DELETE FROM ".$db_prefix."messages WHERE message_to='$user_id'"); 122 $result = dbquery("DELETE FROM ".$db_prefix."messages WHERE message_from='$user_id'"); 123 $result = dbquery("DELETE FROM ".$db_prefix."news WHERE news_name='$user_id'"); 124 $result = dbquery("DELETE FROM ".$db_prefix."ratings WHERE rating_user='$user_id'"); 125 $result = dbquery("DELETE FROM ".$db_prefix."shoutbox WHERE shout_name='$user_id'"); 126 $result = dbquery("DELETE FROM ".$db_prefix."threads WHERE thread_author='$user_id'"); 127 $result = dbquery("DELETE FROM ".$db_prefix."posts WHERE post_author='$user_id'"); 128 $result = dbquery("DELETE FROM ".$db_prefix."posts_unread WHERE user_id='$user_id'"); 129 $result = dbquery("DELETE FROM ".$db_prefix."thread_notify WHERE notify_user='$user_id'"); 118 // did this user do anything on this website? 119 $refs = dbcount("(*)", "articles", "article_name='$user_id'"); 120 $refs += dbcount("(*)", "news", "news_name='$user_id'"); 121 $refs += dbcount("(*)", "comments", "comment_name='$user_id'"); 122 $refs += dbcount("(*)", "ratings", "rating_user='$user_id'"); 123 $refs += dbcount("(*)", "posts", "post_author='$user_id'"); 124 $refs += dbcount("(*)", "posts", "post_edituser='$user_id'"); 125 $refs += dbcount("(*)", "pm_index", "pmindex_user_id='$user_id'"); 126 $refs += dbcount("(*)", "pm_index", "pmindex_reply_id='$user_id'"); 127 $refs += dbcount("(*)", "pm_index", "pmindex_from_id='$user_id'"); 128 $refs = 1; 129 if ($refs) { 130 // if so, mark this user as deleted, but don't delete anything 131 $result = dbquery("UPDATE ".$db_prefix."users SET user_status = '3' WHERE user_id='$user_id'"); 132 } else { 133 // it's save to delete this user 134 $result = dbquery("DELETE FROM ".$db_prefix."users WHERE user_id='$user_id'"); 135 } 130 136 $message = $locale['432']; 131 137 } 132 138 $variables['message'] = isset($message) ? $message : ""; 139 } elseif ($step == "undelete") { 140 $result = dbquery("UPDATE ".$db_prefix."users SET user_status = '0' WHERE user_id='$user_id'"); 133 141 } 134 142 -
trunk/administration/phpinfo.php
r864 r1159 12 12 require_once dirname(__FILE__)."/../includes/core_functions.php"; 13 13 require_once PATH_ROOT."/includes/theme_functions.php"; 14 15 // show the output full screen 16 define('FULL_SCREEN', true); 14 17 15 18 // temp storage for template variables -
trunk/administration/tools/language_pack_English.php
r1158 r1159 217 217 $localestrings['513'] = " for the locale "; 218 218 $localestrings['514'] = "Category Locale:"; 219 $localestrings['515'] = ""; 219 $localestrings['515'] = "Select a language:"; 220 $localestrings['516'] = "Add a download entry"; 220 221 load_localestrings($localestrings, LP_LOCALE, "admin.downloads", $step); 221 222 … … 462 463 $localestrings['252'] = "Unactivated Members:"; 463 464 $localestrings['253'] = "Suspended Members:"; 464 $localestrings['255'] = " x";465 $localestrings['255'] = "Deleted Members:"; 465 466 $localestrings['256'] = "x"; 466 467 $localestrings['257'] = "Comments:"; … … 496 497 $localestrings['411'] = "%u member"; 497 498 $localestrings['412'] = "%u members"; 499 $localestrings['413'] = "Undelete this user"; 498 500 $localestrings['415'] = "Edit this user's profile"; 499 501 $localestrings['416'] = "Activate this account"; … … 2531 2533 $localestrings['426'] = "Account Suspended"; 2532 2534 $localestrings['427'] = "Official translator for the languages"; 2535 $localestrings['428'] = "Account Deleted"; 2533 2536 $localestrings['440'] = "Edit Profile"; 2534 2537 $localestrings['441'] = "Profile successfully updated"; -
trunk/administration/user_groups.php
r1137 r1159 115 115 116 116 $group_id = $_POST['group_id']; 117 $result = dbquery("SELECT user_id,user_name,user_groups FROM ".$db_prefix."users ");117 $result = dbquery("SELECT user_id,user_name,user_groups FROM ".$db_prefix."users WHERE user_status = '0'"); 118 118 while ($data = dbarray($result)) { 119 119 if (!preg_match("(^\.{$group_id}|\.{$group_id}\.|\.{$group_id}$)", $data['user_groups'])) { … … 267 267 $variables['group1_users'] = array(); 268 268 $variables['group2_users'] = array(); 269 $result = dbquery("SELECT user_id,user_name,user_groups FROM ".$db_prefix."users ORDER BY LOWER(user_name)");269 $result = dbquery("SELECT user_id,user_name,user_groups FROM ".$db_prefix."users WHERE user_status = '0' ORDER BY LOWER(user_name)"); 270 270 while ($data = dbarray($result)) { 271 271 if (!preg_match("(^\.{$group_id}$|\.{$group_id}\.|\.{$group_id}$)", $data['user_groups'])) { -
trunk/forum/viewthread.php
r1081 r1159 210 210 if ($rows != 0) { 211 211 $result = dbquery( 212 "SELECT p.*, u.*, u2.user_name AS edit_name FROM ".$db_prefix."posts p212 "SELECT p.*, u.*, u2.user_name AS edit_name, u2.user_status AS edit_status FROM ".$db_prefix."posts p 213 213 LEFT JOIN ".$db_prefix."users u ON p.post_author = u.user_id 214 214 LEFT JOIN ".$db_prefix."users u2 ON p.post_edituser = u2.user_id AND post_edituser > '0' … … 227 227 $data['user_location'] = "-"; 228 228 $data['user_sig'] = ""; 229 $data['user_status'] = "0"; 229 230 } 230 231 -
trunk/includes/core_functions.php
r1155 r1159 194 194 } else { 195 195 // force webmasters to the upgrade module 196 redirect(ADMIN.'upgrade.php'.$aidlink);196 // redirect(ADMIN.'upgrade.php'.$aidlink); 197 197 } 198 198 } … … 824 824 return $data['user_status']; 825 825 } else { 826 return 3; // user_status == 3: not_found826 return -1; // user_status == -1: not_found 827 827 } 828 828 } -
trunk/includes/templates/admin.downloads.tpl
r1150 r1159 15 15 {* *} 16 16 {***************************************************************************} 17 {include file="_opentable.tpl" name=$_name title=$_title state=$_state style=$_style} 17 {if $step == "add"} 18 {include file="_opentable.tpl" name=$_name title=$_title state=$_state style=$_style} 19 <form name='inputform' method='post' action='{$formaction}'> 20 <table align='center' cellpadding='0' cellspacing='0' width='460'> 21 <tr> 22 <td width='80' class='tbl'> 23 {$locale.480} 24 </td> 25 <td class='tbl'> 26 <input type='text' name='download_title' value='{$download_title}' class='textbox' style='width:400px;' /> 27 </td> 28 </tr> 29 <tr> 30 <td valign='top' width='80' class='tbl'> 31 {$locale.481} 32 </td> 33 <td class='tbl'> 34 <textarea name='download_description' rows='5' cols='80' class='textbox' style='width:400px;'>{$download_description}</textarea> 35 </td> 36 </tr> 37 <tr> 38 <td class='tbl'></td><td class='tbl'> 39 <input type='button' value='b' class='button' style='font-weight:bold;width:25px;' onclick="addText('download_description', '<b>', '</b>');" /> 40 <input type='button' value='i' class='button' style='font-style:italic;width:25px;' onclick="addText('download_description', '<i>', '</i>');" /> 41 <input type='button' value='u' class='button' style='text-decoration:underline;width:25px;' onclick="addText('download_description', '<u>', '</u>');" /> 42 <input type='button' value='ul' class='button' style='width:25px;' onclick="addText('download_description', '<ul>', '</ul>');" /> 43 <input type='button' value='li' class='button' style='width:25px;' onclick="addText('download_description', '<li>', '</li>');" /> 44 <input type='button' value='link' class='button' style='width:35px' onclick="addText('download_description', '<a href=\'', '\' target=\'_blank\'>Link</a>');" /> 45 <input type='button' value='img' class='button' style='width:35px' onclick="addText('download_description', '<img src=\'', '\' style=\'margin:5px\' align=\'left\'>');" /> 46 <input type='button' value='center' class='button' style='width:45px' onclick="addText('download_description', '<center>', '</center>');" /> 47 <input type='button' value='small' class='button' style='width:40px' onclick="addText('download_description', '<span class=\'small\'>', '</span>');" /> 48 <input type='button' value='small2' class='button' style='width:45px' onclick="addText('download_description', '<span class=\'small2\'>', '</span>');" /> 49 <input type='button' value='alt' class='button' style='width:25px' onclick="addText('download_description', '<span class=\'alt\'>', '</span>');" /> 50 <br /> 51 </td> 52 </tr> 53 <tr> 54 <td width='80' class='tbl'> 55 {$locale.482} 56 </td> 57 <td class='tbl'> 58 <input type='text' name='download_url' value='{$download_url}' class='textbox' style='width:400px;' /> 59 </td> 60 </tr> 61 <tr> 62 <td width='80' class='tbl'> 63 {$locale.483} 64 </td> 65 <td class='tbl'> 66 <select name='download_cat' class='textbox'> 67 <option value='0'{if $cats[id].selected} selected="selected"{/if}>{$locale.455}</option> 68 {section name=id loop=$cats} 69 <option value='{$cats[id].download_cat_id}'{if $cats[id].selected} selected="selected"{/if}>{$cats[id].download_cat_name}</option> 70 {/section} 71 </select> 72 <br /> 73 <span class='small2'>{$locale.455|string_format:$locale.490}</span> 74 </td> 75 </tr> 76 <tr> 77 <td width='80' class='tbl'> 78 {$locale.484} 79 </td> 80 <td class='tbl'> 81 <input type='text' name='download_license' value='{$download_license}' class='textbox' style='width:150px;' /> 82 </td> 83 </tr> 84 <tr> 85 <td width='80' class='tbl'> 86 {$locale.485} 87 </td> 88 <td class='tbl'> 89 <input type='text' name='download_os' value='{$download_os}' class='textbox' style='width:150px;' /> 90 </td> 91 </tr> 92 <tr> 93 <td width='80' class='tbl'> 94 {$locale.486} 95 </td> 96 <td class='tbl'> 97 <input type='text' name='download_version' value='{$download_version}' class='textbox' style='width:150px;' /> 98 </td> 99 </tr> 100 <tr> 101 <td width='80' class='tbl'> 102 {$locale.487} 103 </td> 104 <td class='tbl'> 105 <input type='text' name='download_filesize' value='{$download_filesize}' class='textbox' style='width:150px;' /> 106 </td> 107 </tr> 108 <tr> 109 <td align='center' colspan='2' class='tbl'> 110 {if $step == "edit"} 111 <input type='checkbox' name='update_datestamp' value='1' /> {$locale.489} 112 <br /><br /> 113 {/if} 114 <input type='submit' name='save_download' value='{$locale.488}' class='button' /> 115 </td> 116 </tr> 117 </table> 118 </form> 119 {include file="_closetable.tpl"} 120 {/if} 121 {if $settings.download_localisation == "multiple"} 122 {assign var="tabletitle" value=$locale.500|cat:" "|cat:$locale.513|cat:" '<b>"|cat:$cat_locale|cat:"</b>'"} 123 {else} 124 {assign var="tabletitle" value=$locale.500} 125 {/if} 126 {include file="_opentable.tpl" name=$_name title=$tabletitle state=$_state style=$_style} 127 {if $settings.download_localisation == "multiple"} 128 {assign var="url_locale" value="&cat_locale="|cat:$cat_locale} 129 <br /> 130 <div style='text-align:center;'> 131 {$locale.515} {html_options name=cat_locale options=$locales selected=$cat_locale class="textbox" onchange="location = '"|cat:$smarty.const.FUSION_SELF|cat:$aidlink|cat:"&cat_locale=' + this.options[this.selectedIndex].value;"} 132 </div> 133 {else} 134 {assign var="cat_locale" value=""} 135 {/if} 136 <br /> 137 <table align='center' cellpadding='0' cellspacing='0' width='400'> 138 {section name=id loop=$tree} 139 {if $smarty.section.id.first} 140 <tr> 141 <td class='tbl2'> 142 {$locale.501} 143 </td> 144 <td align='right' class='tbl2'> 145 {$locale.502} 146 </td> 147 </tr> 148 <tr> 149 <td colspan='2' height='1'> 150 </td> 151 </tr> 152 {/if} 153 {if $tree[id].node == "P"} 154 {if $tree[id].id == $download_cat_id} 155 {assign var='open' value=true} 156 {else} 157 {assign var='open' value=false} 158 {/if} 159 <tr> 160 <td class='tbl2'> 161 {section name=nl loop=`$tree[id].nestlevel+1`} 162 <img src='{$smarty.const.THEME}images/bullet.gif' alt='' /> 163 {/section} 164 {$tree[id].name} 165 </td> 166 <td class='tbl2' align='right'> 167 <img onclick="javascript:flipBox('{$tree[id].id}')" src='{$smarty.const.THEME}images/panel_{if $open}off{else}on{/if}.gif' name='b_{$tree[id].id}' alt='' /> 168 </td> 169 </tr> 170 {assign var='in_box' value=false} 171 {elseif $tree[id].node == "D"} 172 {if $tree[id].first} 173 <tr> 174 <td colspan='2'> 175 <div id='box_{$tree[id].cat_id}'{if !$open} style='display:none'{/if}> 176 <table cellpadding='0' cellspacing='0' width='100%'> 177 {/if} 178 <tr> 179 <td class='tbl'> 180 <a href='{$tree[id].url}' target='_blank'>{$tree[id].name}</a> 181 </td> 182 <td align='right' width='100' class='tbl'> 183 <a href='{$smarty.const.FUSION_SELF}{$aidlink}&step=edit&download_cat_id={$tree[id].cat_id}&download_id={$tree[id].id}{$url_locale}'><img src='{$smarty.const.THEME}/images/page_edit.gif' alt='{$locale.503}' title='{$locale.503}' /></a> 184 <a href='{$smarty.const.FUSION_SELF}{$aidlink}&step=delete&download_cat_id={$tree[id].cat_id}&download_id={$tree[id].id}{$url_locale}' onclick='return DeleteItem()'><img src='{$smarty.const.THEME}/images/page_delete.gif' alt='{$locale.504}' title='{$locale.504}' /></a> 185 </td> 186 </tr> 187 {if $tree[id].last} 188 </table> 189 </div> 190 </td> 191 </tr> 192 {/if} 193 {elseif $tree[id].node == "E"} 194 <tr> 195 <td colspan='2'> 196 <div id='box_{$tree[id].id}' style='display:none'> 197 <table cellpadding='0' cellspacing='0' width='100%'> 198 <tr> 199 <td class='tbl'> 200 {$locale.505} 201 </td> 202 </tr> 203 </table> 204 </div> 205 </td> 206 </tr> 207 {/if} 208 {if $smarty.section.id.last} 209 {/if} 210 {sectionelse} 211 <tr> 212 <td align='center'> 213 <br /> 214 {$locale.506} 215 <br /><br /> 216 <a href='download_cats.php{$aidlink}'>{$locale.507} 217 <br /><br /> 218 </td> 219 </tr> 220 {/section} 221 </table> 222 <div style='text-align:center;'> 223 <br /> 224 {buttonlink name=$locale.516 link=$smarty.const.FUSION_SELF|cat:$aidlink|cat:"&step=add"|cat:$url_locale} 225 </div> 226 {include file="_closetable.tpl"} 227 <script type='text/javascript'> 228 function DeleteItem() 229 {ldelim} 230 return confirm('{$locale.460}'); 231 {rdelim} 232 </script> 233 {***************************************************************************} 234 {* End of template *} 235 {***************************************************************************} 18 236 {if !$cats_found} 19 237 <center> … … 25 243 </center> 26 244 {else} 27 <form name='inputform' method='post' action='{$formaction}'> 28 <table align='center' cellpadding='0' cellspacing='0' width='460'> 29 <tr> 30 <td width='80' class='tbl'> 31 {$locale.480} 32 </td> 33 <td class='tbl'> 34 <input type='text' name='download_title' value='{$download_title}' class='textbox' style='width:400px;' /> 35 </td> 36 </tr> 37 <tr> 38 <td valign='top' width='80' class='tbl'> 39 {$locale.481} 40 </td> 41 <td class='tbl'> 42 <textarea name='download_description' rows='5' cols='80' class='textbox' style='width:400px;'>{$download_description}</textarea> 43 </td> 44 </tr> 45 <tr> 46 <td class='tbl'></td><td class='tbl'> 47 <input type='button' value='b' class='button' style='font-weight:bold;width:25px;' onclick="addText('download_description', '<b>', '</b>');" /> 48 <input type='button' value='i' class='button' style='font-style:italic;width:25px;' onclick="addText('download_description', '<i>', '</i>');" /> 49 <input type='button' value='u' class='button' style='text-decoration:underline;width:25px;' onclick="addText('download_description', '<u>', '</u>');" /> 50 <input type='button' value='ul' class='button' style='width:25px;' onclick="addText('download_description', '<ul>', '</ul>');" /> 51 <input type='button' value='li' class='button' style='width:25px;' onclick="addText('download_description', '<li>', '</li>');" /> 52 <input type='button' value='link' class='button' style='width:35px' onclick="addText('download_description', '<a href=\'', '\' target=\'_blank\'>Link</a>');" /> 53 <input type='button' value='img' class='button' style='width:35px' onclick="addText('download_description', '<img src=\'', '\' style=\'margin:5px\' align=\'left\'>');" /> 54 <input type='button' value='center' class='button' style='width:45px' onclick="addText('download_description', '<center>', '</center>');" /> 55 <input type='button' value='small' class='button' style='width:40px' onclick="addText('download_description', '<span class=\'small\'>', '</span>');" /> 56 <input type='button' value='small2' class='button' style='width:45px' onclick="addText('download_description', '<span class=\'small2\'>', '</span>');" /> 57 <input type='button' value='alt' class='button' style='width:25px' onclick="addText('download_description', '<span class=\'alt\'>', '</span>');" /> 58 <br /> 59 </td> 60 </tr> 61 <tr> 62 <td width='80' class='tbl'> 63 {$locale.482} 64 </td> 65 <td class='tbl'> 66 <input type='text' name='download_url' value='{$download_url}' class='textbox' style='width:400px;' /> 67 </td> 68 </tr> 69 <tr> 70 <td width='80' class='tbl'> 71 {$locale.483} 72 </td> 73 <td class='tbl'> 74 <select name='download_cat' class='textbox'> 75 <option value='0'{if $cats[id].selected} selected="selected"{/if}>{$locale.455}</option> 76 {section name=id loop=$cats} 77 <option value='{$cats[id].download_cat_id}'{if $cats[id].selected} selected="selected"{/if}>{$cats[id].download_cat_name}</option> 78 {/section} 79 </select> 80 <br /> 81 <span class='small2'>{$locale.455|string_format:$locale.490}</span> 82 </td> 83 </tr> 84 <tr> 85 <td width='80' class='tbl'> 86 {$locale.484} 87 </td> 88 <td class='tbl'> 89 <input type='text' name='download_license' value='{$download_license}' class='textbox' style='width:150px;' /> 90 </td> 91 </tr> 92 <tr> 93 <td width='80' class='tbl'> 94 {$locale.485} 95 </td> 96 <td class='tbl'> 97 <input type='text' name='download_os' value='{$download_os}' class='textbox' style='width:150px;' /> 98 </td> 99 </tr> 100 <tr> 101 <td width='80' class='tbl'> 102 {$locale.486} 103 </td> 104 <td class='tbl'> 105 <input type='text' name='download_version' value='{$download_version}' class='textbox' style='width:150px;' /> 106 </td> 107 </tr> 108 <tr> 109 <td width='80' class='tbl'> 110 {$locale.487} 111 </td> 112 <td class='tbl'> 113 <input type='text' name='download_filesize' value='{$download_filesize}' class='textbox' style='width:150px;' /> 114 </td> 115 </tr> 116 <tr> 117 <td align='center' colspan='2' class='tbl'> 118 {if $step == "edit"} 119 <input type='checkbox' name='update_datestamp' value='1' /> {$locale.489} 120 <br /><br /> 121 {/if} 122 <input type='submit' name='save_download' value='{$locale.488}' class='button' /> 123 </td> 124 </tr> 125 </table> 126 </form> 127 {include file="_closetable.tpl"} 128 {include file="_opentable.tpl" name=$_name title=$locale.500 state=$_state style=$_style} 129 <table align='center' cellpadding='0' cellspacing='0' width='400'> 130 {section name=id loop=$tree} 131 {if $smarty.section.id.first} 132 <tr> 133 <td class='tbl2'> 134 {$locale.501} 135 </td> 136 <td align='right' class='tbl2'> 137 {$locale.502} 138 </td> 139 </tr> 140 <tr> 141 <td colspan='2' height='1'> 142 </td> 143 </tr> 144 {/if} 145 {if $tree[id].node == "P"} 146 {if $tree[id].id == $download_cat_id} 147 {assign var='open' value=true} 148 {else} 149 {assign var='open' value=false} 150 {/if} 151 <tr> 152 <td class='tbl2'> 153 {section name=nl loop=`$tree[id].nestlevel+1`} 154 <img src='{$smarty.const.THEME}images/bullet.gif' alt='' /> 155 {/section} 156 {$tree[id].name} 157 </td> 158 <td class='tbl2' align='right'> 159 <img onclick="javascript:flipBox('{$tree[id].id}')" src='{$smarty.const.THEME}images/panel_{if $open}off{else}on{/if}.gif' name='b_{$tree[id].id}' alt='' /> 160 </td> 161 </tr> 162 {assign var='in_box' value=false} 163 {elseif $tree[id].node == "D"} 164 {if $tree[id].first} 165 <tr> 166 <td colspan='2'> 167 <div id='box_{$tree[id].cat_id}'{if !$open} style='display:none'{/if}> 168 <table cellpadding='0' cellspacing='0' width='100%'> 169 {/if} 170 <tr> 171 <td class='tbl'> 172 <a href='{$tree[id].url}' target='_blank'>{$tree[id].name}</a> 173 </td> 174 <td align='right' width='100' class='tbl'> 175 <a href='{$smarty.const.FUSION_SELF}{$aidlink}&step=edit&download_cat_id={$tree[id].cat_id}&download_id={$tree[id].id}'><img src='{$smarty.const.THEME}/images/page_edit.gif' alt='{$locale.503}' title='{$locale.503}' /></a> 176 <a href='{$smarty.const.FUSION_SELF}{$aidlink}&step=delete&download_cat_id={$tree[id].cat_id}&download_id={$tree[id].id}' onclick='return DeleteItem()'><img src='{$smarty.const.THEME}/images/page_delete.gif' alt='{$locale.504}' title='{$locale.504}' /></a> 177 </td> 178 </tr> 179 {if $tree[id].last} 180 </table> 181 </div> 182 </td> 183 </tr> 184 {/if} 185 {elseif $tree[id].node == "E"} 186 <tr> 187 <td colspan='2'> 188 <div id='box_{$tree[id].id}' style='display:none'> 189 <table cellpadding='0' cellspacing='0' width='100%'> 190 <tr> 191 <td class='tbl'> 192 {$locale.505} 193 </td> 194 </tr> 195 </table> 196 </div> 197 </td> 198 </tr> 199 {/if} 200 {if $smarty.section.id.last} 201 {/if} 202 {sectionelse} 203 <tr> 204 <td align='center'> 205 <br /> 206 {$locale.506} 207 <br /><br /> 208 <a href='download_cats.php{$aidlink}'>{$locale.507} 209 <br /><br /> 210 </td> 211 </tr> 212 {/section} 213 </table> 214 <script type='text/javascript'> 215 function DeleteItem() 216 {ldelim} 217 return confirm('{$locale.460}'); 218 {rdelim} 219 </script> 220 {/if} 221 {include file="_closetable.tpl"} 222 {***************************************************************************} 223 {* End of template *} 224 {***************************************************************************} 245 {/if} -
trunk/includes/templates/admin.index.tpl
r1120 r1159 91 91 {$locale.252} {$statistics.members_unactive}<br /> 92 92 {$locale.253} {$statistics.members_suspended}<br /> 93 {$locale.255} {$statistics.members_deleted}<br /> 93 94 </td> 94 95 <td valign='top' width='33%' class='small'> -
trunk/includes/templates/admin.members.tpl
r1060 r1159 182 182 <tr> 183 183 <td class='tbl2'> 184 <div style='float:right;'><a href='{$smarty.const.FUSION_SELF}{$aidlink}&step=add'><img src='{$smarty.const.THEME}images/ page_add.gif' alt='{$locale.403}' title='{$locale.403}' /></a></div>184 <div style='float:right;'><a href='{$smarty.const.FUSION_SELF}{$aidlink}&step=add'><img src='{$smarty.const.THEME}images/user_add.gif' alt='{$locale.403}' title='{$locale.403}' /></a></div> 185 185 <b>{$locale.401}</b> 186 186 </td> … … 225 225 {/if} 226 226 {if $members[id].can_delete} 227 <a href='{$smarty.const.FUSION_SELF}{$aidlink}&step=delete&sortby={$sortby}&rowstart={$rowstart}&user_id={$members[id].user_id}' onclick='return DeleteMember();'><img src='{$smarty.const.THEME}images/page_delete.gif' alt='{$locale.418}' title='{$locale.418}' /></a> 227 {if $members[id].user_status == '3'} 228 <a href='{$smarty.const.FUSION_SELF}{$aidlink}&step=undelete&sortby={$sortby}&rowstart={$rowstart}&user_id={$members[id].user_id}'><img src='{$smarty.const.THEME}images/page_add.gif' alt='{$locale.413}' title='{$locale.413}' /></a> 229 {else} 230 <a href='{$smarty.const.FUSION_SELF}{$aidlink}&step=delete&sortby={$sortby}&rowstart={$rowstart}&user_id={$members[id].user_id}' onclick='return DeleteMember();'><img src='{$smarty.const.THEME}images/page_delete.gif' alt='{$locale.418}' title='{$locale.418}' /></a> 231 {/if} 228 232 {/if} 229 233 {if $members[id].can_ban} -
trunk/includes/templates/forum.renderpost.tpl
r1140 r1159 73 73 <td valign='top' width='140' class='tbl_left'> 74 74 {$posts[pid].cc_flag} 75 {if $smarty.const.iMEMBER && $posts[pid]. post_author > 0}75 {if $smarty.const.iMEMBER && $posts[pid].user_status == 0 && $posts[pid].post_author > 0} 76 76 <a href='{$smarty.const.BASEDIR}profile.php?lookup={$posts[pid].user_id}'>{$posts[pid].user_name}</a> 77 77 {else} … … 206 206 <span style='color:#666666;'> 207 207 {$locale.508} 208 {if $smarty.const.iMEMBER }208 {if $smarty.const.iMEMBER && $posts[pid].edit_status == 0} 209 209 <a href='{$smarty.const.BASEDIR}profile.php?lookup={$posts[pid].post_edituser}'>{$posts[pid].edit_name}</a> 210 210 {else} 211 {$posts[pid]. user_name}211 {$posts[pid].edit_name} 212 212 {/if} 213 213 {$locale.509}{$posts[pid].post_edittime|date_format:"forumdate"} -
trunk/includes/templates/main.profile.members.tpl
r1121 r1159 23 23 <td class='tbl2'> 24 24 <b>{$data.user_name}</b> 25 {if $data.user_status == 1} <span class='small'>({$locale.425})</span>{/if} 26 {if $data.user_status == 2} <span class='small'>({$locale.426})</span>{/if} 25 {if $data.user_status != 0} 26 · 27 <div class='small' style='display:inline;color:red;font-weight:bold;'> 28 {if $data.user_status == 1}{$locale.425}{/if} 29 {if $data.user_status == 2}{$locale.426}{/if} 30 {if $data.user_status == 3}{$locale.428}{/if} 31 </div> 32 {/if} 27 33 </td> 28 34 <td align='right' class='tbl2'>{$data.user_level}</td>
Note: See TracChangeset
for help on using the changeset viewer.
