[ Index ] |
|
Code source de Phorum 5.1.25 |
1 <?php 2 3 //////////////////////////////////////////////////////////////////////////////// 4 // // 5 // Copyright (C) 2006 Phorum Development Team // 6 // http://www.phorum.org // 7 // // 8 // This program is free software. You can redistribute it and/or modify // 9 // it under the terms of either the current Phorum License (viewable at // 10 // phorum.org) or the Phorum License that was distributed with this file // 11 // // 12 // This program is distributed in the hope that it will be useful, // 13 // but WITHOUT ANY WARRANTY, without even the implied warranty of // 14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // 15 // // 16 // You should have received a copy of the Phorum License // 17 // along with this program. // 18 //////////////////////////////////////////////////////////////////////////////// 19 20 if(!defined("PHORUM_ADMIN")) return; 21 22 // load the default Phorum language 23 if(isset($PHORUM["default_language"])){ 24 include_once( "./include/lang/$PHORUM[default_language].php" ); 25 } 26 27 // HTTP Content-Type header with the charset from the default language 28 if (isset($PHORUM["DATA"]['CHARSET'])) { 29 header("Content-Type: text/html; " . 30 "charset=".htmlspecialchars($PHORUM["DATA"]['CHARSET'])); 31 } 32 ?> 33 <html> 34 <head> 35 <title>Phorum Admin</title> 36 <?php 37 38 // meta data with the charset from the default language 39 if (isset($PHORUM["DATA"]['CHARSET'])) { 40 echo "<meta content=\"text/html; charset=".$PHORUM["DATA"]["CHARSET"]."\" http-equiv=\"Content-Type\">\n"; 41 } 42 43 ?> 44 <style type="text/css"> 45 46 body 47 { 48 font-family: Lucida Sans Unicode, Lucida Grand, Verdana, Arial, Helvetica; 49 font-size: 13px; 50 } 51 52 input, textarea, select, td 53 { 54 font-family: Lucida Sans Unicode, Lucida Grand, Verdana, Arial, Helvetica; 55 font-size: 13px; 56 border-color: #EEEEEE; 57 } 58 59 .input-form-th 60 { 61 font-family: Lucida Sans Unicode, Lucida Grand, Verdana, Arial, Helvetica; 62 font-size: 13px; 63 padding: 3px; 64 background-color: #DDDDEA; 65 } 66 67 .input-form-td 68 { 69 font-family: Lucida Sans Unicode, Lucida Grand, Verdana, Arial, Helvetica; 70 font-size: 13px; 71 padding: 3px; 72 background-color: #EEEEFA; 73 } 74 75 .input-form-td-break, .PhorumAdminTitle 76 { 77 font-family: "Trebuchet MS",Verdana, Arial, Helvetica, sans-serif; 78 font-size: 16px; 79 font-weight: bold; 80 padding: 3px; 81 background-color: Navy; 82 color: White; 83 } 84 85 .input-form-td-subbreak 86 { 87 background-color: #CCCCDA; 88 color: black; 89 } 90 91 .input-form-td-message 92 { 93 font-family: "Trebuchet MS",Verdana, Arial, Helvetica, sans-serif; 94 font-size: 13px; 95 padding: 10px; 96 background-color: White; 97 color: Black; 98 } 99 100 .PhorumAdminMenu 101 { 102 width: 150px; 103 border: 1px solid Navy; 104 font-size: 13px; 105 margin-bottom: 3px; 106 line-height: 18px; 107 padding: 3px; 108 } 109 110 .PhorumAdminMenuTitle 111 { 112 width: 150px; 113 border: 1px solid Navy; 114 background-color: Navy; 115 color: white; 116 font-size: 14px; 117 font-weight: bold; 118 padding: 3px; 119 } 120 121 .PhorumAdminTableRow 122 { 123 background-color: #EEEEFA; 124 color: Navy; 125 padding: 3px; 126 font-size: 13px; 127 } 128 129 .PhorumAdminTableRowAlt 130 { 131 background-color: #d6d6e0; 132 color: Navy; 133 padding: 3px; 134 font-size: 13px; 135 } 136 137 .PhorumAdminTableHead 138 { 139 background-color: Navy; 140 color: White; 141 padding: 3px; 142 font-weight: bold; 143 font-size: 13px; 144 } 145 146 .PhorumInfoMessage 147 { 148 font-family: Lucida Sans Unicode, Lucida Grand, Verdana, Arial, Helvetica; 149 font-size: 13px; 150 padding: 3px; 151 background-color: #EEEEFA; 152 width: 300px; 153 text-align: left; 154 } 155 156 .PhorumAdminError 157 { 158 background-image: url("./images/alert.gif"); 159 background-position: 5px 5px; 160 background-repeat: no-repeat; 161 font-family: Lucida Sans Unicode, Lucida Grand, Verdana, Arial, Helvetica; 162 font-size: 15px; 163 padding: 12px 12px 12px 50px; 164 color: #000000; 165 border: 2px solid red; 166 margin-bottom: 3px; 167 } 168 169 .PhorumAdminOkMsg 170 { 171 font-family: Lucida Sans Unicode, Lucida Grand, Verdana, Arial, Helvetica; 172 font-size: 15px; 173 padding: 12px; 174 color: #000000; 175 border: 2px solid darkgreen; 176 margin-bottom: 3px; 177 } 178 179 .small 180 { 181 font-size: 10px; 182 } 183 184 .help-td, .help-td a 185 { 186 color: White; 187 padding-bottom: 2px; 188 text-decoration: none; 189 } 190 191 #phorum-status 192 { 193 vertical-align: middle; 194 } 195 196 #status-form 197 { 198 display: inline; 199 } 200 201 img.question 202 { 203 padding: 0 5px 1px 5px; 204 vertical-align: middle; 205 } 206 207 #helpdiv 208 { 209 position: absolute; 210 display: none; 211 width: 400px; 212 border: 2px solid Navy; 213 } 214 215 #helpdiv-hide 216 { 217 float: right; 218 } 219 220 #helpdiv-title 221 { 222 color: White; 223 background-color: Navy; 224 padding: 1px 1px 3px 1px; 225 } 226 227 #helpdiv-content 228 { 229 background-color: White; 230 height: 200px; 231 padding: 8px; 232 font-family: Lucida Sans Unicode, Lucida Grand, Verdana, Arial, Helvetica; 233 font-size: 13px; 234 overflow: scroll; 235 } 236 237 #help-title 238 { 239 font-weight: bold; 240 margin-bottom: 3px; 241 } 242 243 .message_prune_filtertable { 244 width: 96%; 245 margin-bottom: 5px; 246 border-collapse: collapse; 247 background-color: #f0f0f0; 248 border: 1px solid #ccc; 249 } 250 251 .message_prune_msginfo { 252 margin: 0px 0px 10px 20px; 253 padding: 5px; 254 border: 1px solid #ccc; 255 background-color: #f0f0f0; 256 font-size: 11px; 257 display: none; 258 } 259 260 .message_prune_msginfo_body { 261 max-height: 100px; 262 padding: 5px; 263 overflow: auto; 264 background-color: white; 265 border: 1px inset #ccc; 266 } 267 268 </style> 269 <script> 270 271 function show_help(key) 272 { 273 if (document.all) { 274 topoffset=document.body.scrollTop; 275 leftoffset=document.body.scrollLeft; 276 WIDTH=document.body.clientWidth; 277 HEIGHT=document.body.clientHeight; 278 } else { 279 topoffset=pageYOffset; 280 leftoffset=pageXOffset; 281 WIDTH=window.innerWidth; 282 HEIGHT=window.innerHeight; 283 } 284 285 if(WIDTH%2!=0) WIDTH--; 286 if(HEIGHT%2!=0) HEIGHT--; 287 288 newtop=((HEIGHT-200)/2)+topoffset; 289 290 // IE still puts selects on top of stuff so it has to be fixed to the left some 291 if (document.all) { 292 newleft=150; 293 } else { 294 newleft=((WIDTH-400)/2)+leftoffset; 295 } 296 297 document.getElementById('helpdiv').style.left=newleft; 298 document.getElementById('helpdiv').style.top=newtop; 299 300 document.getElementById('help-title').innerHTML = help[key][0]; 301 document.getElementById('help-text').innerHTML = help[key][1]; 302 303 document.getElementById('helpdiv').style.display = 'block'; 304 305 } 306 307 function hide_help() 308 { 309 document.getElementById('helpdiv').style.display = 'none'; 310 document.getElementById('help-title').innerHTML = ""; 311 document.getElementById('help-text').innerHTML = ""; 312 } 313 314 </script> 315 </head> 316 <body> 317 <div id="helpdiv"> 318 <div id="helpdiv-hide"><a href="javascript:hide_help();"><img border="0" src="images/close.gif" height="16" width="16" /></a></div> 319 <div id="helpdiv-title"> Phorum Admin Help</div> 320 <div id="helpdiv-content"> 321 <div id="help-title"></div> 322 <div id="help-text"></div> 323 </div> 324 </div> 325 326 <table border="0" cellspacing="0" cellpadding="0" width="100%"> 327 <tr> 328 <td style="border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: Navy;">Phorum Admin<small><br />version <?php echo PHORUM; ?></small></td> 329 <?php if(empty($module)){ // only show the versioncheck if you are on the front page of the admin ?> 330 <td style="border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: Navy;" align="center" valign="middle"> 331 <iframe scrolling="no" frameborder="0" align="top" width="400" height="35" src="versioncheck.php"></iframe> 332 </td> 333 <?php } else { 334 // Reset the cookie that is used for the version check. 335 setcookie("phorum_upgrade_available", '', time()-86400, 336 $PHORUM["session_path"], $PHORUM["session_domain"]); 337 } ?> 338 <td style="border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: Navy;" align="right"> 339 340 <div id="phorum-status"> 341 <?php if($module!="login" && $module!="install" && $module!="upgrade"){ ?> 342 <form id="status-form" action="<?php echo $PHORUM["admin_http_path"] ?>" method="post"> 343 <input type="hidden" name="module" value="status" /> 344 Phorum Status: 345 <select name="status" onChange="this.form.submit();"> 346 <option value="normal" <?php if($PHORUM["status"]=="normal") echo "selected"; ?>>Normal</option> 347 <option value="read-only"<?php if($PHORUM["status"]=="read-only") echo "selected"; ?>>Read Only</option> 348 <option value="admin-only"<?php if($PHORUM["status"]=="admin-only") echo "selected"; ?>>Admin Only</option> 349 <option value="disabled"<?php if($PHORUM["status"]=="disabled" || !phorum_db_check_connection()) echo "selected"; ?>>Disabled</option> 350 </select> 351 </form> 352 <?php } ?> 353 </div> 354 <?php if(isset($PHORUM['user'])) { ?> 355 <small>Logged In As <?php echo $PHORUM["user"]["username"]; ?></small> 356 <?php } ?> 357 </td> 358 </tr> 359 </table><br /> 360 <table border="0" cellspacing="0" cellpadding="0" width="100%"> 361 <?php 362 363 if($module!="login" && $module!="install" && $module!="upgrade"){ 364 ?> 365 <tr> 366 <td valign="top"> 367 <?php 368 include_once "./include/admin/PhorumAdminMenu.php"; 369 370 $menu = new PhorumAdminMenu("Main Menu"); 371 372 $menu->add("Admin Home", "", "Takes you to the default Admin page."); 373 $menu->add("Phorum Index", "index", "Takes you to the front page of the Phorum."); 374 $menu->add("Log Out", "logout", "Logs you out of the admin."); 375 376 $menu->show(); 377 378 $menu = new PhorumAdminMenu("Global Settings"); 379 380 $menu->add("General Settings", "settings", "Edit the global settings which affect the enter installation."); 381 $menu->add("Ban Lists", "banlist", "Edits the list of banned names, email addresses and IP addresses."); 382 $menu->add("Censor List", "badwords", "Edit the list of words that are censored in posts."); 383 $menu->add("Modules", "mods", "Administer the Phorum Modules that are installed."); 384 385 $menu->show(); 386 387 $menu = new PhorumAdminMenu("Forums"); 388 389 $menu->add("Manage Forums", "", "Takes you to the default Admin page."); 390 $menu->add("Default Settings", "forum_defaults", "Allows you to set defaults settings that can be inherited by forums."); 391 $menu->add("Create Forum", "newforum", "Creates a new area for your users to post messages."); 392 $menu->add("Create Folder", "newfolder", "Creates a folder which can contain other folders of forums."); 393 394 $menu->show(); 395 396 $menu = new PhorumAdminMenu("Users/Groups"); 397 398 $menu->add("Edit Users", "users", "Allows administrator to edit users including deactivating them."); 399 $menu->add("Edit Groups", "groups", "Allows administrator to edit groups and their forum permissions."); 400 $menu->add("Custom Profiles", "customprofile", "Allows administrator to add fields to Phorum profile."); 401 402 $menu->show(); 403 $menu = new PhorumAdminMenu("Maintenance"); 404 405 $menu->add("Check For New Version", "version", "Check for new releases."); 406 $menu->add("Prune Messages", "message_prune", "Pruning old messages."); 407 $menu->add("Purge Stale Files", "file_purge", "Purging stale files from the database."); 408 $menu->add("System Sanity Checks", "sanity_checks", "Perform a number of sanity checks on the system to identify possible problems."); 409 $menu->add("Manage Language Files", "manage_languages", "Allows administrator to create new or updated versions of language files."); 410 411 $menu->show(); 412 413 ?> 414 <img src="<?php echo "$PHORUM[http_path]/images/trans.gif"; ?>" alt="" border="0" width="150" height="1" /> 415 </td> 416 <td valign="top"><img src="<?php echo "$PHORUM[http_path]/images/trans.gif"; ?>" alt="" border="0" width="15" height="15" /></td> 417 <?php 418 } 419 ?> 420 <td valign="top" width="100%">
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Thu Nov 29 12:22:27 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |