| 831 | 
           florian | 
           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 | 
               if(empty($PHORUM["http_path"])){
  | 
        
        
            | 
            | 
           23 | 
                   $PHORUM["http_path"]=dirname($_SERVER["PHP_SELF"]);
  | 
        
        
            | 
            | 
           24 | 
               }
  | 
        
        
            | 
            | 
           25 | 
              | 
        
        
            | 
            | 
           26 | 
              | 
        
        
            | 
            | 
           27 | 
               // load the default Phorum language
  | 
        
        
            | 
            | 
           28 | 
               if(isset($PHORUM["default_language"])){
  | 
        
        
            | 
            | 
           29 | 
                   include_once( "./include/lang/$PHORUM[default_language].php" );
  | 
        
        
            | 
            | 
           30 | 
               }
  | 
        
        
            | 
            | 
           31 | 
           ?>
  | 
        
        
            | 
            | 
           32 | 
           <!--  //    // HTTP Content-Type header with the charset from the default language
  | 
        
        
            | 
            | 
           33 | 
           //    if (isset($PHORUM["DATA"]['CHARSET'])) {
  | 
        
        
            | 
            | 
           34 | 
           //        header("Content-Type: text/html; " .
  | 
        
        
            | 
            | 
           35 | 
           //               "charset=".htmlspecialchars($PHORUM["DATA"]['CHARSET']));
  | 
        
        
            | 
            | 
           36 | 
           //    }
  | 
        
        
            | 
            | 
           37 | 
           //?>
  | 
        
        
            | 
            | 
           38 | 
           //<html>
  | 
        
        
            | 
            | 
           39 | 
           //<head>
  | 
        
        
            | 
            | 
           40 | 
           //<title>Phorum Admin</title>
  | 
        
        
            | 
            | 
           41 | 
           //<?php
  | 
        
        
            | 
            | 
           42 | 
           //
  | 
        
        
            | 
            | 
           43 | 
           //// meta data with the charset from the default language
  | 
        
        
            | 
            | 
           44 | 
           //if (isset($PHORUM["DATA"]['CHARSET'])) {
  | 
        
        
            | 
            | 
           45 | 
           //    echo "<meta content=\"text/html; charset=".$PHORUM["DATA"]["CHARSET"]."\" http-equiv=\"Content-Type\">\n";
  | 
        
        
            | 
            | 
           46 | 
           //}
  | 
        
        
            | 
            | 
           47 | 
           //
  | 
        
        
            | 
            | 
           48 | 
           //?>
  | 
        
        
            | 
            | 
           49 | 
           //<style type="text/css">
  | 
        
        
            | 
            | 
           50 | 
           //
  | 
        
        
            | 
            | 
           51 | 
           //body
  | 
        
        
            | 
            | 
           52 | 
           //{
  | 
        
        
            | 
            | 
           53 | 
           //    font-family: Lucida Sans Unicode, Lucida Grand, Verdana, Arial, Helvetica;
  | 
        
        
            | 
            | 
           54 | 
           //    font-size: 13px;
  | 
        
        
            | 
            | 
           55 | 
           //}
  | 
        
        
            | 
            | 
           56 | 
           //
  | 
        
        
            | 
            | 
           57 | 
           //input, textarea, select, td
  | 
        
        
            | 
            | 
           58 | 
           //{
  | 
        
        
            | 
            | 
           59 | 
           //    font-family: Lucida Sans Unicode, Lucida Grand, Verdana, Arial, Helvetica;
  | 
        
        
            | 
            | 
           60 | 
           //    font-size: 13px;
  | 
        
        
            | 
            | 
           61 | 
           //    border-color: #EEEEEE;
  | 
        
        
            | 
            | 
           62 | 
           //}
  | 
        
        
            | 
            | 
           63 | 
           //
  | 
        
        
            | 
            | 
           64 | 
           //.input-form-th
  | 
        
        
            | 
            | 
           65 | 
           //{
  | 
        
        
            | 
            | 
           66 | 
           //    font-family: Lucida Sans Unicode, Lucida Grand, Verdana, Arial, Helvetica;
  | 
        
        
            | 
            | 
           67 | 
           //    font-size: 13px;
  | 
        
        
            | 
            | 
           68 | 
           //    padding: 3px;
  | 
        
        
            | 
            | 
           69 | 
           //    background-color: #DDDDEA;
  | 
        
        
            | 
            | 
           70 | 
           //}
  | 
        
        
            | 
            | 
           71 | 
           //
  | 
        
        
            | 
            | 
           72 | 
           //.input-form-td
  | 
        
        
            | 
            | 
           73 | 
           //{
  | 
        
        
            | 
            | 
           74 | 
           //    font-family: Lucida Sans Unicode, Lucida Grand, Verdana, Arial, Helvetica;
  | 
        
        
            | 
            | 
           75 | 
           //    font-size: 13px;
  | 
        
        
            | 
            | 
           76 | 
           //    padding: 3px;
  | 
        
        
            | 
            | 
           77 | 
           //    background-color: #EEEEFA;
  | 
        
        
            | 
            | 
           78 | 
           //}
  | 
        
        
            | 
            | 
           79 | 
           //
  | 
        
        
            | 
            | 
           80 | 
           //.input-form-td-break, .PhorumAdminTitle
  | 
        
        
            | 
            | 
           81 | 
           //{
  | 
        
        
            | 
            | 
           82 | 
           //    font-family: "Trebuchet MS",Verdana, Arial, Helvetica, sans-serif;
  | 
        
        
            | 
            | 
           83 | 
           //    font-size: 16px;
  | 
        
        
            | 
            | 
           84 | 
           //    font-weight: bold;
  | 
        
        
            | 
            | 
           85 | 
           //    padding: 3px;
  | 
        
        
            | 
            | 
           86 | 
           //    background-color: Navy;
  | 
        
        
            | 
            | 
           87 | 
           //    color: White;
  | 
        
        
            | 
            | 
           88 | 
           //}
  | 
        
        
            | 
            | 
           89 | 
           //
  | 
        
        
            | 
            | 
           90 | 
           //.input-form-td-message
  | 
        
        
            | 
            | 
           91 | 
           //{
  | 
        
        
            | 
            | 
           92 | 
           //    font-family: "Trebuchet MS",Verdana, Arial, Helvetica, sans-serif;
  | 
        
        
            | 
            | 
           93 | 
           //    font-size: 13px;
  | 
        
        
            | 
            | 
           94 | 
           //    padding: 10px;
  | 
        
        
            | 
            | 
           95 | 
           //    background-color: White;
  | 
        
        
            | 
            | 
           96 | 
           //    color: Black;
  | 
        
        
            | 
            | 
           97 | 
           //}
  | 
        
        
            | 
            | 
           98 | 
           //
  | 
        
        
            | 
            | 
           99 | 
           //.PhorumAdminMenu
  | 
        
        
            | 
            | 
           100 | 
           //{
  | 
        
        
            | 
            | 
           101 | 
           //    width: 150px;
  | 
        
        
            | 
            | 
           102 | 
           //    border: 1px solid Navy;
  | 
        
        
            | 
            | 
           103 | 
           //    font-size: 13px;
  | 
        
        
            | 
            | 
           104 | 
           //    margin-bottom: 3px;
  | 
        
        
            | 
            | 
           105 | 
           //    line-height: 18px;
  | 
        
        
            | 
            | 
           106 | 
           //    padding: 3px;
  | 
        
        
            | 
            | 
           107 | 
           //}
  | 
        
        
            | 
            | 
           108 | 
           //
  | 
        
        
            | 
            | 
           109 | 
           //.PhorumAdminMenuTitle
  | 
        
        
            | 
            | 
           110 | 
           //{
  | 
        
        
            | 
            | 
           111 | 
           //    width: 150px;
  | 
        
        
            | 
            | 
           112 | 
           //    border: 1px solid Navy;
  | 
        
        
            | 
            | 
           113 | 
           //    background-color: Navy;
  | 
        
        
            | 
            | 
           114 | 
           //    color:  white;
  | 
        
        
            | 
            | 
           115 | 
           //    font-size: 14px;
  | 
        
        
            | 
            | 
           116 | 
           //    font-weight: bold;
  | 
        
        
            | 
            | 
           117 | 
           //    padding: 3px;
  | 
        
        
            | 
            | 
           118 | 
           //}
  | 
        
        
            | 
            | 
           119 | 
           //
  | 
        
        
            | 
            | 
           120 | 
           //.PhorumAdminTableRow
  | 
        
        
            | 
            | 
           121 | 
           //{
  | 
        
        
            | 
            | 
           122 | 
           //    background-color: #EEEEFA;
  | 
        
        
            | 
            | 
           123 | 
           //    color: Navy;
  | 
        
        
            | 
            | 
           124 | 
           //    padding: 3px;
  | 
        
        
            | 
            | 
           125 | 
           //    font-size: 13px;
  | 
        
        
            | 
            | 
           126 | 
           //}
  | 
        
        
            | 
            | 
           127 | 
           //
  | 
        
        
            | 
            | 
           128 | 
           //.PhorumAdminTableRowAlt
  | 
        
        
            | 
            | 
           129 | 
           //{
  | 
        
        
            | 
            | 
           130 | 
           //    background-color: #d6d6e0;
  | 
        
        
            | 
            | 
           131 | 
           //    color: Navy;
  | 
        
        
            | 
            | 
           132 | 
           //    padding: 3px;
  | 
        
        
            | 
            | 
           133 | 
           //    font-size: 13px;
  | 
        
        
            | 
            | 
           134 | 
           //}
  | 
        
        
            | 
            | 
           135 | 
           //
  | 
        
        
            | 
            | 
           136 | 
           //.PhorumAdminTableHead
  | 
        
        
            | 
            | 
           137 | 
           //{
  | 
        
        
            | 
            | 
           138 | 
           //    background-color: Navy;
  | 
        
        
            | 
            | 
           139 | 
           //    color: White;
  | 
        
        
            | 
            | 
           140 | 
           //    padding: 3px;
  | 
        
        
            | 
            | 
           141 | 
           //    font-weight: bold;
  | 
        
        
            | 
            | 
           142 | 
           //    font-size: 13px;
  | 
        
        
            | 
            | 
           143 | 
           //}
  | 
        
        
            | 
            | 
           144 | 
           //
  | 
        
        
            | 
            | 
           145 | 
           //.PhorumInfoMessage
  | 
        
        
            | 
            | 
           146 | 
           //{
  | 
        
        
            | 
            | 
           147 | 
           //    font-family: Lucida Sans Unicode, Lucida Grand, Verdana, Arial, Helvetica;
  | 
        
        
            | 
            | 
           148 | 
           //    font-size: 13px;
  | 
        
        
            | 
            | 
           149 | 
           //    padding: 3px;
  | 
        
        
            | 
            | 
           150 | 
           //    background-color: #EEEEFA;
  | 
        
        
            | 
            | 
           151 | 
           //    width: 300px;
  | 
        
        
            | 
            | 
           152 | 
           //    align: center;
  | 
        
        
            | 
            | 
           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 | 
           //</style>
  | 
        
        
            | 
            | 
           244 | 
           //<script>
  | 
        
        
            | 
            | 
           245 | 
           //
  | 
        
        
            | 
            | 
           246 | 
           //function show_help(key)
  | 
        
        
            | 
            | 
           247 | 
           //{
  | 
        
        
            | 
            | 
           248 | 
           //    if (document.all) {
  | 
        
        
            | 
            | 
           249 | 
           //        topoffset=document.body.scrollTop;
  | 
        
        
            | 
            | 
           250 | 
           //        leftoffset=document.body.scrollLeft;
  | 
        
        
            | 
            | 
           251 | 
           //        WIDTH=document.body.clientWidth;
  | 
        
        
            | 
            | 
           252 | 
           //        HEIGHT=document.body.clientHeight;
  | 
        
        
            | 
            | 
           253 | 
           //    } else {
  | 
        
        
            | 
            | 
           254 | 
           //        topoffset=pageYOffset;
  | 
        
        
            | 
            | 
           255 | 
           //        leftoffset=pageXOffset;
  | 
        
        
            | 
            | 
           256 | 
           //        WIDTH=window.innerWidth;
  | 
        
        
            | 
            | 
           257 | 
           //        HEIGHT=window.innerHeight;
  | 
        
        
            | 
            | 
           258 | 
           //    }
  | 
        
        
            | 
            | 
           259 | 
           //
  | 
        
        
            | 
            | 
           260 | 
           //    if(WIDTH%2!=0) WIDTH--;
  | 
        
        
            | 
            | 
           261 | 
           //    if(HEIGHT%2!=0) HEIGHT--;
  | 
        
        
            | 
            | 
           262 | 
           //
  | 
        
        
            | 
            | 
           263 | 
           //    newtop=((HEIGHT-200)/2)+topoffset;
  | 
        
        
            | 
            | 
           264 | 
           //
  | 
        
        
            | 
            | 
           265 | 
           //    // IE still puts selects on top of stuff so it has to be fixed to the left some
  | 
        
        
            | 
            | 
           266 | 
           //    if (document.all) {
  | 
        
        
            | 
            | 
           267 | 
           //        newleft=150;
  | 
        
        
            | 
            | 
           268 | 
           //    } else {
  | 
        
        
            | 
            | 
           269 | 
           //        newleft=((WIDTH-400)/2)+leftoffset;
  | 
        
        
            | 
            | 
           270 | 
           //    }
  | 
        
        
            | 
            | 
           271 | 
           //
  | 
        
        
            | 
            | 
           272 | 
           //    document.getElementById('helpdiv').style.left=newleft;
  | 
        
        
            | 
            | 
           273 | 
           //    document.getElementById('helpdiv').style.top=newtop;
  | 
        
        
            | 
            | 
           274 | 
           //
  | 
        
        
            | 
            | 
           275 | 
           //    document.getElementById('help-title').innerHTML = help[key][0];
  | 
        
        
            | 
            | 
           276 | 
           //    document.getElementById('help-text').innerHTML = help[key][1];
  | 
        
        
            | 
            | 
           277 | 
           //
  | 
        
        
            | 
            | 
           278 | 
           //    document.getElementById('helpdiv').style.display = 'block';
  | 
        
        
            | 
            | 
           279 | 
           //
  | 
        
        
            | 
            | 
           280 | 
           //}
  | 
        
        
            | 
            | 
           281 | 
           //
  | 
        
        
            | 
            | 
           282 | 
           //function hide_help()
  | 
        
        
            | 
            | 
           283 | 
           //{
  | 
        
        
            | 
            | 
           284 | 
           //    document.getElementById('helpdiv').style.display = 'none';
  | 
        
        
            | 
            | 
           285 | 
           //    document.getElementById('help-title').innerHTML = "";
  | 
        
        
            | 
            | 
           286 | 
           //    document.getElementById('help-text').innerHTML = "";
  | 
        
        
            | 
            | 
           287 | 
           //}
  | 
        
        
            | 
            | 
           288 | 
           //
  | 
        
        
            | 
            | 
           289 | 
           //</script>
  | 
        
        
            | 
            | 
           290 | 
           //</head>
  | 
        
        
            | 
            | 
           291 | 
           //<body>
  | 
        
        
            | 
            | 
           292 | 
           //<div id="helpdiv">
  | 
        
        
            | 
            | 
           293 | 
           //<div id="helpdiv-hide"><a href="javascript:hide_help();"><img border="0" src="images/close.gif" height="16" width="16" /></a></div>
  | 
        
        
            | 
            | 
           294 | 
           //<div id="helpdiv-title"> Phorum Admin Help</div>
  | 
        
        
            | 
            | 
           295 | 
           //<div id="helpdiv-content">
  | 
        
        
            | 
            | 
           296 | 
           //<div id="help-title"></div>
  | 
        
        
            | 
            | 
           297 | 
           //<div id="help-text"></div>
  | 
        
        
            | 
            | 
           298 | 
           //</div>
  | 
        
        
            | 
            | 
           299 | 
           //</div>
  | 
        
        
            | 
            | 
           300 | 
           -->
  | 
        
        
            | 
            | 
           301 | 
           <table border="0" cellspacing="0" cellpadding="0" width="100%">
  | 
        
        
            | 
            | 
           302 | 
           <tr>
  | 
        
        
            | 
            | 
           303 | 
               <td style="border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: Navy;">Phorum Admin<small><br />version <?php echo PHORUM; ?></small></td>
  | 
        
        
            | 
            | 
           304 | 
           <?php if(empty($module)){ // only show the versioncheck if you are on the front page of the admin ?>
  | 
        
        
            | 
            | 
           305 | 
               <td style="border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: Navy;" align="center" valign="middle">
  | 
        
        
            | 
            | 
           306 | 
                 <iframe scrolling="no" frameborder="0" align="top" width="400" height="35" src="versioncheck.php"></iframe>
  | 
        
        
            | 
            | 
           307 | 
               </td>
  | 
        
        
            | 
            | 
           308 | 
           <?php } else {
  | 
        
        
            | 
            | 
           309 | 
               // Reset the cookie that is used for the version check.
  | 
        
        
            | 
            | 
           310 | 
               setcookie("phorum_upgrade_available", '', time()-86400,
  | 
        
        
            | 
            | 
           311 | 
                         $PHORUM["session_path"], $PHORUM["session_domain"]);
  | 
        
        
            | 
            | 
           312 | 
           } ?>
  | 
        
        
            | 
            | 
           313 | 
               <td style="border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: Navy;" align="right">
  | 
        
        
            | 
            | 
           314 | 
              | 
        
        
            | 
            | 
           315 | 
               <div id="phorum-status">
  | 
        
        
            | 
            | 
           316 | 
           <?php if($module!="login" && $module!="install" && $module!="upgrade"){ ?>
  | 
        
        
            | 
            | 
           317 | 
           <form id="status-form" action="<?php echo $_SERVER["PHP_SELF"];?>" method="post">
  | 
        
        
            | 
            | 
           318 | 
           <input type="hidden" name="module" value="status" />
  | 
        
        
            | 
            | 
           319 | 
           Phorum Status:
  | 
        
        
            | 
            | 
           320 | 
           <select name="status" onChange="this.form.submit();">
  | 
        
        
            | 
            | 
           321 | 
           <option value="normal" <?php if($PHORUM["status"]=="normal") echo "selected"; ?>>Normal</option>
  | 
        
        
            | 
            | 
           322 | 
           <option value="read-only"<?php if($PHORUM["status"]=="read-only") echo "selected"; ?>>Read Only</option>
  | 
        
        
            | 
            | 
           323 | 
           <option value="admin-only"<?php if($PHORUM["status"]=="admin-only") echo "selected"; ?>>Admin Only</option>
  | 
        
        
            | 
            | 
           324 | 
           <option value="disabled"<?php if($PHORUM["status"]=="disabled" || !phorum_db_check_connection()) echo "selected"; ?>>Disabled</option>
  | 
        
        
            | 
            | 
           325 | 
           </select>
  | 
        
        
            | 
            | 
           326 | 
           </form>
  | 
        
        
            | 
            | 
           327 | 
           <?php } ?>
  | 
        
        
            | 
            | 
           328 | 
           </div>
  | 
        
        
            | 
            | 
           329 | 
           <?php if(isset($PHORUM['user'])) { ?>
  | 
        
        
            | 
            | 
           330 | 
           <small>Logged In As <?php echo $PHORUM["user"]["username"]; ?></small>
  | 
        
        
            | 
            | 
           331 | 
           <?php } ?>
  | 
        
        
            | 
            | 
           332 | 
           </td>
  | 
        
        
            | 
            | 
           333 | 
           </tr>
  | 
        
        
            | 
            | 
           334 | 
           </table><br />
  | 
        
        
            | 
            | 
           335 | 
           <table border="0" cellspacing="0" cellpadding="0" width="100%">
  | 
        
        
            | 
            | 
           336 | 
           <?php
  | 
        
        
            | 
            | 
           337 | 
              | 
        
        
            | 
            | 
           338 | 
               if($module!="login" && $module!="install" && $module!="upgrade"){
  | 
        
        
            | 
            | 
           339 | 
           ?>
  | 
        
        
            | 
            | 
           340 | 
           <tr>
  | 
        
        
            | 
            | 
           341 | 
               <td valign="top">
  | 
        
        
            | 
            | 
           342 | 
           <?php
  | 
        
        
            | 
            | 
           343 | 
                   include_once "./include/admin/PhorumAdminMenu.php";
  | 
        
        
            | 
            | 
           344 | 
              | 
        
        
            | 
            | 
           345 | 
                   $menu = new PhorumAdminMenu("Main Menu");
  | 
        
        
            | 
            | 
           346 | 
              | 
        
        
            | 
            | 
           347 | 
                   $menu->add("Admin Home", "", "Takes you to the default Admin page.");
  | 
        
        
            | 
            | 
           348 | 
                   $menu->add("Phorum Index", "index", "Takes you to the front page of the Phorum.");
  | 
        
        
            | 
            | 
           349 | 
                   $menu->add("Log Out", "logout", "Logs you out of the admin.");
  | 
        
        
            | 
            | 
           350 | 
              | 
        
        
            | 
            | 
           351 | 
                   $menu->show();
  | 
        
        
            | 
            | 
           352 | 
              | 
        
        
            | 
            | 
           353 | 
                   $menu = new PhorumAdminMenu("Global Settings");
  | 
        
        
            | 
            | 
           354 | 
              | 
        
        
            | 
            | 
           355 | 
                   $menu->add("General Settings", "settings", "Edit the global settings which affect the enter installation.");
  | 
        
        
            | 
            | 
           356 | 
                   $menu->add("Ban Lists", "banlist", "Edits the list of banned names, email addresses and IP addresses.");
  | 
        
        
            | 
            | 
           357 | 
                   $menu->add("Censor List", "badwords", "Edit the list of words that are censored in posts.");
  | 
        
        
            | 
            | 
           358 | 
                   $menu->add("Modules", "mods", "Administer the Phorum Modules that are installed.");
  | 
        
        
            | 
            | 
           359 | 
              | 
        
        
            | 
            | 
           360 | 
                   $menu->show();
  | 
        
        
            | 
            | 
           361 | 
              | 
        
        
            | 
            | 
           362 | 
                   $menu = new PhorumAdminMenu("Forums");
  | 
        
        
            | 
            | 
           363 | 
              | 
        
        
            | 
            | 
           364 | 
                   $menu->add("Manage Forums", "", "Takes you to the default Admin page.");
  | 
        
        
            | 
            | 
           365 | 
                   $menu->add("Default Settings", "forum_defaults", "Allows you to set defaults settings that can be inherited by forums.");
  | 
        
        
            | 
            | 
           366 | 
                   $menu->add("Create Forum", "newforum", "Creates a new area for your users to post messages.");
  | 
        
        
            | 
            | 
           367 | 
                   $menu->add("Create Folder", "newfolder", "Creates a folder which can contain other folders of forums.");
  | 
        
        
            | 
            | 
           368 | 
              | 
        
        
            | 
            | 
           369 | 
                   $menu->show();
  | 
        
        
            | 
            | 
           370 | 
              | 
        
        
            | 
            | 
           371 | 
                   $menu = new PhorumAdminMenu("Users/Groups");
  | 
        
        
            | 
            | 
           372 | 
              | 
        
        
            | 
            | 
           373 | 
                   $menu->add("Edit Users", "users", "Allows administrator to edit users including deactivating them.");
  | 
        
        
            | 
            | 
           374 | 
                   $menu->add("Edit Groups", "groups", "Allows administrator to edit groups and their forum permissions.");
  | 
        
        
            | 
            | 
           375 | 
                   $menu->add("Custom Profiles", "customprofile", "Allows administrator to add fields to Phorum profile.");
  | 
        
        
            | 
            | 
           376 | 
              | 
        
        
            | 
            | 
           377 | 
                   $menu->show();
  | 
        
        
            | 
            | 
           378 | 
                   $menu = new PhorumAdminMenu("Maintenance");
  | 
        
        
            | 
            | 
           379 | 
              | 
        
        
            | 
            | 
           380 | 
                   $menu->add("Check For New Version", "version", "Check for new releases.");
  | 
        
        
            | 
            | 
           381 | 
                   $menu->add("Prune Messages", "message_prune", "Pruning old messages.");
  | 
        
        
            | 
            | 
           382 | 
                   $menu->add("Purge Stale Files", "file_purge", "Purging stale files from the database.");
  | 
        
        
            | 
            | 
           383 | 
                   $menu->add("System Sanity Checks", "sanity_checks", "Perform a number of sanity checks on the system to identify possible problems.");
  | 
        
        
            | 
            | 
           384 | 
                   $menu->add("Manage Language Files", "manage_languages", "Allows administrator to create new or updated versions of language files.");
  | 
        
        
            | 
            | 
           385 | 
              | 
        
        
            | 
            | 
           386 | 
                   $menu->show();
  | 
        
        
            | 
            | 
           387 | 
              | 
        
        
            | 
            | 
           388 | 
           ?>
  | 
        
        
            | 
            | 
           389 | 
           <img src="<?php echo "$PHORUM[http_path]/images/trans.gif"; ?>" alt="" border="0" width="150" height="1" />
  | 
        
        
            | 
            | 
           390 | 
               </td>
  | 
        
        
            | 
            | 
           391 | 
               <td valign="top"><img src="<?php echo "$PHORUM[http_path]/images/trans.gif"; ?>" alt="" border="0" width="15" height="15" /></td>
  | 
        
        
            | 
            | 
           392 | 
           <?php
  | 
        
        
            | 
            | 
           393 | 
               }
  | 
        
        
            | 
            | 
           394 | 
           ?>
  | 
        
        
            | 
            | 
           395 | 
               <td valign="top" width="100%">
  |