| [ PHPXref.com ] | [ Generated: Sun Jul 20 19:05:01 2008 ] | [ OneOrZero 1.6.3 ] |
| [ Index ] [ Variables ] [ Functions ] [ Classes ] [ Constants ] [ Statistics ] | ||
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * file: control.php 5 * 6 * This is the control panel. All settings to the helpdesk software are done through here. 7 * This file takes care of updating the setting table and the interface to do so. 8 * 9 /*************************************************************************** 10 * This program is free software; you can redistribute it and/or 11 * modify it under the terms of the GNU General Public 12 * License as published by the Free Software Foundation; either 13 * version 2.1 of the License, or (at your option) any later version. 14 * 15 * This program is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 18 * General Public License for more details. 19 * 20 * You should have received a copy of the GNU General Public 21 * License along with This program; if not, write to: 22 * Free Software Foundation, Inc. 23 * 59 Temple Place 24 * Suite 330 25 * Boston, MA 02111-1307 USA 26 * 27 * Copyright 2005 One or Zero 28 * info@oneorzero.com 29 * http://www.oneorzero.com 30 * Developers: OneOrZero Team / Contributors: OneOrZero Community 31 ****************************************************************************/ 32 33 require_once "../common/common.php"; 34 require_once "../common/init_server_settings.php"; 35 require_once "../common/$database.class.php"; 36 require_once "../common/init_ooz.php"; 37 38 // since this isn't called from the index.php file, we have to make sure that the user is logged in. 39 if ($_SERVER[SERVER_PORT] == 80 && (!isset($_SESSION[user]) || $_SESSION[user] == '') && $enable_ssl == 'On') { 40 $site = eregi_replace("http", "https", $admin_site_url) . "/control.php"; 41 header("Location: $site"); 42 } 43 require_once "../lang/$default_language.lang.php"; 44 require "../common/login.php"; 45 46 $language = getLanguage($_SESSION[user]); 47 if ($language == '') 48 require_once "../lang/$default_language.lang.php"; 49 else 50 require_once "../lang/$language.lang.php"; 51 52 $time_offset = getTimeOffset($_SESSION[user]); 53 54 if (isset($_SESSION[user])) { 55 // update the lastactive time in the database. 56 $sql = "UPDATE $users_table set lastactive='" . time() . "' where user_name='" . $_SESSION[user] . "'"; 57 $db->query($sql); 58 } 59 60 $last_active = getLastActiveTime($_SESSION[user]); 61 62 //debug line below 63 //require_once "../lang/English.lang.php"; 64 if (isset($_GET[change_settings]) && $_GET[t] == 'settings') { 65 // if ($_GET[ticket_interval] == '' || !isset($_GET[ticket_interval])) { 66 // $_GET[ticket_interval] = $rating_interval; 67 // } 68 // $sql = "update $settings_table set admin_email='$_GET[email]', name='$_GET[helpdesk]', 69 // users_per='$_GET[users_per]', announcements_per='$_GET[announcements_per]', ratings='$_GET[ratings]', stats='$_GET[stats]', 70 // ticket_interval='$_GET[interval]', socket='$_GET[socket]', forum='$_GET[forum]', 71 // forum_site='$_GET[forum_site]', smtp='$_GET[smtp]', sendmail_path='$_GET[mail_path]', on_off='$_GET[on_off]', reason='$_GET[reason]', 72 // whosonline='$_GET[whosonline]', default_theme='$_GET[theme_default]', time_tracking='$_GET[time_tracking]', kbase='$_GET[kbase]', 73 // pubpriv='$_GET[public]', default_language='$_GET[langfile]', tattachments='$_GET[tattachments]', kattachments='$_GET[kattachments]', 74 // kpurge='$_GET[kpurge_level]', uattachments='$_GET[uattachments]', ulist='$_GET[ulist]', loggeddateoverride='$_GET[loggeddateoverride]'"; 75 // 76 // $db->query($sql); 77 $settings_header = "These are the One Or Zero Website Settings\n" . 78 "The Website Settings area in the One Or Zero Control Panel updates this\n" . 79 "file. Please do not change these values."; 80 //Remove $_GET[change_settings] and GET[t] as we don't want them in the settings file 81 unset($_GET[change_settings]); 82 unset($_GET[t]); 83 //Write the config file and remove the customAddSlashes we ran earlier (not required for file) 84 $settings_array = convertQuotes(stripMagicQuotes($_GET)); 85 $settings_array[reason] = str_replace("\r\n", "<br>", $settings_array[reason]); 86 writeConfigFile($website_settings_path, $website_settings_header, $settings_array); 87 88 //set the flag for the success message and head off to the success message 89 $settings_success = 1; 90 // $location = $admin_site_url . "/control.php"; 91 // header("Location: $location"); 92 93 } 94 95 if (isset($_POST[change_settings]) && $_GET[t] = 'kbase') { 96 // this is where changes to the knowledge base go. 97 } 98 99 require_once "../common/style.php"; //required way down here so headers don't get sent yet. 100 101 102 ?> 103 104 <BODY class=body> 105 <TABLE class=border cellSpacing=0 cellPadding=0 width="<?php echo $theme['width']; 106 107 ?>" align=center 108 border=0> 109 <TBODY> 110 <TR> 111 <TD> 112 <TABLE cellSpacing=1 cellPadding=5 width="100%" border=0> 113 <TBODY> 114 <TR> 115 <TD colspan=1 class=hf align=left> 116 <?php 117 118 echo ' 119 <div align="right"> 120 <A class=hf href="'.$supporter_site_url.'/index.php">'.$lang_home.'</A> | 121 <A class=hf href="http://www.oneorzero.com/wiki/index.php?title=OneOrZero_Task_Management_System_V1.6.X_Guide" target="_blank">'.$lang_manual.'</A> | '; 122 123 124 125 if(isAdministrator($_SESSION[user])){ 126 echo '<A class=hf href="'.$admin_site_url.'/control.php">'.$lang_cp.'</a> | '; 127 } 128 if($enable_forum == 'On'){ 129 echo '<A class=hf href="'.$forum_site_url.'" target=_blank>'.$lang_forum.'</A> | '; 130 } 131 echo $lang_loggedinas." <b>".$_SESSION[user]."</b> ( <a class=hf href=\"../common/logout.php\"> ".$lang_logout."</a> )"; 132 echo '</div>'; 133 ?> 134 </TD> 135 <tr><td colspan=1 class=cat align=center> 136 <a href="control.php?t=topts"><?php echo $lang_ticketoptions; 137 138 ?></a> - 139 <a href="control.php?t=users"><?php echo $lang_useroptions; 140 141 ?></a> - 142 <a href="control.php?t=theme"><?php echo $lang_themes; 143 144 ?><a/> - 145 <?php 146 if ($enable_kbase == 'On') 147 echo '<a href="control.php?t=kbase">' . $lang_kbase . '</a> - '; 148 if ($enable_tattachments == 'On' || $enable_kattachments == 'On') 149 echo '<a href="control.php?t=attachments">' . $lang_attachments . '</a> -'; 150 //</a><a href="control.php?t=upgrade"><?php echo $lang_upgrade; 151 ?></a> 152 <a href="control.php?t=templates"><?php echo $lang_templates; 153 ?><br></a> 154 <a href="control.php?t=check"><?php echo $lang_check_consistency; 155 ?></a> - 156 <a href="control.php?t=settings"><?php echo $lang_oneorzero.' '.$lang_settings; 157 ?></a> 158 </td></tr> 159 </TR> 160 <TR> 161 <TD class=back> 162 <TABLE width="100%"> 163 <TBODY> 164 <TR> 165 <TD class=back vAlign=top align=right></TD> 166 </TR> 167 168 </TBODY> 169 </TABLE> 170 <BR> 171 <TABLE width="100%" cellspacing=2 cellpadding=6 align=center border=0> 172 173 <?php 174 if ($settings_success == 1){ 175 printSuccess($lang_action_completed, 80, 'control.php?t=settings'); 176 $message = 1; 177 } 178 179 // this is where all of the code for the options goes. 180 if ($_GET[t] == 'settings' && $message !=1) { 181 echo "<form action=control.php method=get>"; 182 startTable("$ooz_oneorzero $lang_settings", "center", "100%", 2); 183 //General Settings 184 echo "<tr><td colspan= 2 class=back2 align=center><strong>$lang_general_settings</strong></td></tr>"; 185 186 // helpdesk name 187 echo "<tr>"; 188 echo "<td width=60% class=back2>$lang_hdname: </td>"; 189 //echo "<td class=back2> <textarea name=helpdesk rows=1 cols=40>$helpdesk_name</textarea> 190 // </td>"; 191 echo "<td class=back2> <input type=text size=40 name=helpdesk_name value=\"".$helpdesk_name."\"></td>"; 192 echo "</tr>"; 193 // administrator email 194 echo "<tr>"; 195 echo "<td width=60% class=back2>$lang_adminemail: </td>"; 196 echo "<td class=back2> <input type=text name=admin_email value='$admin_email'></td>"; 197 echo "</tr>"; 198 // helpdesk public/private 199 echo "<tr>"; 200 echo "<td width=60% class=back2>$lang_pubpriv: </td>"; 201 echo "<td class=back2> <select name=pubpriv> 202 <option value='Public' "; 203 if ($pubpriv == 'Public') echo "selected"; 204 echo ">$lang_public</option> 205 <option value='Private' "; 206 if ($pubpriv == 'Private') echo "selected"; 207 echo ">$lang_private</option> 208 </select></td>"; 209 echo "</tr>"; 210 // helpdesk on/off 211 echo "<tr>"; 212 echo "<td width=60% class=back2>$lang_hdonoff: </td>"; 213 echo "<td class=back2> <select name=on_off> 214 <option value='On' "; 215 if ($enable_helpdesk == "$lang_on") echo "selected"; 216 echo ">$lang_on</option> 217 <option value='Off' "; 218 if ($enable_helpdesk == "$lang_off") echo "selected"; 219 echo ">$lang_off</option> 220 </select></td>"; 221 echo "</tr>"; 222 // helpdesk on/off reason 223 echo "<tr>"; 224 echo "<td width=60% class=back2>$lang_offreason: </td>"; 225 echo "<td class=back2> <textarea name=reason rows=5 cols=50>".str_replace("<br>", "\r\n", $on_off_reason)."</textarea> 226 </td>"; 227 echo "</tr>"; 228 // default theme selection 229 echo "<tr>"; 230 echo "<td width=60% class=back2>$lang_defaulttheme: </td>"; 231 echo "<td class=back2> <select name=default_theme>"; 232 createThemeMenu(1); 233 echo "</select></td>"; 234 echo "</tr>"; 235 // default language selection 236 echo "<tr>"; 237 echo "<td width=60% class=back2>$lang_defaultlanguage: </td>"; 238 echo "<td class=back2>"; 239 createLanguageMenu(2); 240 echo "</td>"; 241 echo "</tr>"; 242 // forum on/off 243 echo "<tr>"; 244 echo "<td width=60% class=back2>$lang_Forum: </td>"; 245 echo "<td class=back2> <select name=forum> 246 <option value='On' "; 247 if ($enable_forum == 'On') echo "selected"; 248 echo ">$lang_on</option> 249 <option value='Off' "; 250 if ($enable_forum == 'Off') echo "selected"; 251 echo ">$lang_off</option> 252 </select></td>"; 253 echo "</tr>"; 254 // forum site url 255 if ($forum_site_url == '') { 256 $forum_site_url = "http://"; 257 } 258 echo "<tr>"; 259 echo "<td width=60% class=back2>$lang_forumurl: </td>"; 260 echo "<td class=back2> 261 <input type=text size=40 name=forum_site value=" . $forum_site_url . "> 262 </select></td>"; 263 echo "</tr>"; 264 // list limit 265 echo "<tr>"; 266 echo "<td width=60% class=back2>$lang_usersperpage: </td>"; 267 echo "<td class=back2> <input size=3 type=text name=users_per "; 268 if ($users_limit == '') 269 echo "value=5></td>"; 270 else 271 echo "value='$users_limit'></td>"; 272 echo "</tr>"; 273 // announcement limit 274 echo "<tr>"; 275 echo "<td width=60% class=back2>$lang_numannouncements: </td>"; 276 echo "<td class=back2> <input size=3 type=text name=announcements_per "; 277 if ($announcements_limit == '') 278 echo "value=5></td>"; 279 else 280 echo "value='$announcements_limit'></td>"; 281 // last update on/off 282 echo "<tr>"; 283 echo "<td width=60% class=back2>$lang_last_update_enable: </td>"; 284 echo "<td class=back2> <select name=last_update_enable> 285 <option value='On' "; 286 if ($last_update_enable == 'On') echo "selected"; 287 echo ">$lang_on</option> 288 <option value='Off' "; 289 if ($last_update_enable == 'Off') echo "selected"; 290 echo ">$lang_off</option> 291 </select></td>"; 292 echo "</tr>"; 293 // last update character limit 294 echo "<tr>"; 295 echo "<td width=60% class=back2>$lang_last_update_limit: </td>"; 296 echo "<td class=back2> <input size=5 type=text name=last_update_limit "; 297 if ($last_update_limit == '') 298 echo "value=1000></td>"; 299 else 300 echo "value='$last_update_limit'></td>"; 301 echo "</tr>"; 302 // show all log information to client 303 echo "<tr>"; 304 echo "<td width=60% class=back2>$lang_show_all_log_client: </td>"; 305 echo "<td class=back2> <select name=show_all_log_to_client> 306 <option value='On' "; 307 if ($show_all_log_to_client == 'On') echo "selected"; 308 echo ">$lang_on</option> 309 <option value='Off' "; 310 if ($show_all_log_to_client == 'Off') echo "selected"; 311 echo ">$lang_off</option> 312 </select></td>"; 313 echo "</tr>"; 314 //allow ticket ratings? 315 echo "<tr>"; 316 echo "<td width=60% class=back2>$lang_ticketratings: </td>"; 317 echo "<td class=back2> <select name=ratings> 318 <option value='$lang_on' "; if($enable_ratings == "$lang_on") echo "selected"; echo ">$lang_on</option> 319 <option value='$lang_off' "; if($enable_ratings == "$lang_off") echo "selected"; echo ">$lang_off</option> 320 </select></td>"; 321 echo "</tr>"; 322 // time_tracking status 323 echo "<tr>"; 324 echo "<td width=60% class=back2>$lang_servicetracking $lang_status: </td>"; 325 echo "<td class=back2> <select name=time_tracking> 326 <option value='On' "; 327 if ($enable_time_tracking == "On") echo "selected"; 328 echo ">$lang_on</option> 329 <option value='Off' "; 330 if ($enable_time_tracking == "Off") echo "selected"; 331 echo ">$lang_off</option> 332 </select></td>"; 333 echo "</tr>"; 334 // stats status 335 echo "<tr>"; 336 echo "<td width=60% class=back2>$lang_stats $lang_status: </td>"; 337 echo "<td class=back2> <select name=stats> 338 <option value='On' "; 339 if ($enable_stats == "On") echo "selected"; 340 echo ">$lang_on</option> 341 <option value='Off' "; 342 if ($enable_stats == "Off") echo "selected"; 343 echo ">$lang_off</option> 344 </select></td>"; 345 echo "</tr>"; 346 // ssl on/off 347 echo "<tr>"; 348 echo "<td width=60% class=back2>$lang_ssl $lang_status: </td>"; 349 echo "<td class=back2> <select name=socket> 350 <option value='On' "; 351 if ($enable_ssl == "On") echo "selected"; 352 echo ">$lang_on</option> 353 <option value='Off' "; 354 if ($enable_ssl == "Off") echo "selected"; 355 echo ">$lang_off</option> 356 </select></td>"; 357 echo "</tr>"; 358 359 // knowledge base on/off 360 echo "<tr>"; 361 echo "<td width=60% class=back2>$lang_kbase $lang_status: </td>"; 362 echo "<td class=back2> <select name=kbase> 363 <option value='On' "; 364 if ($enable_kbase == "On") echo "selected"; 365 echo ">$lang_on</option> 366 <option value='Off' "; 367 if ($enable_kbase == "Off") echo "selected"; 368 echo ">$lang_off</option> 369 </select></td>"; 370 echo "</tr>"; 371 // ticket attachments on/off 372 echo "<tr>"; 373 echo "<td width=60% class=back2>$lang_Ticket $lang_attachments: </td>"; 374 echo "<td class=back2> <select name=tattachments> 375 <option value='On' "; 376 if ($enable_tattachments == "On") echo "selected"; 377 echo ">$lang_on</option> 378 <option value='Off' "; 379 if ($enable_tattachments == "Off") echo "selected"; 380 echo ">$lang_off</option> 381 </select></td>"; 382 echo "</tr>"; 383 // user ticket attachments on/off 384 echo "<tr>"; 385 echo "<td width=60% class=back2>$lang_User $lang_attachments: </td>"; 386 echo "<td class=back2> <select name=uattachments> 387 <option value='On' "; 388 if ($enable_uattachments == "On") echo "selected"; 389 echo ">$lang_on</option> 390 <option value='Off' "; 391 if ($enable_uattachments == "Off") echo "selected"; 392 echo ">$lang_off</option> 393 </select></td>"; 394 echo "</tr>"; 395 396 // kbase attacments on/off 397 echo "<tr>"; 398 echo "<td width=60% class=back2>$lang_kbase $lang_attachments: </td>"; 399 echo "<td class=back2> <select name=kattachments> 400 <option value='On' "; 401 if ($enable_kattachments == "On") echo "selected"; 402 echo ">$lang_on</option> 403 <option value='Off' "; 404 if ($enable_kattachments == "Off") echo "selected"; 405 echo ">$lang_off</option> 406 </select></td>"; 407 echo "</tr>"; 408 // Kbase Purge Level 409 echo "<tr>"; 410 echo "<td width=60% class=back2>$lang_kbasepurgelevel: </td>\n"; 411 echo "<td class=back2> <select name=kpurge_level>\n"; 412 listPurgeLevels($kpurge); 413 echo "</select></td>\n"; 414 echo "</tr>"; 415 // whos online on/off 416 echo "<tr>"; 417 echo "<td width=60% class=back2>$lang_whosonline $lang_status: </td>"; 418 echo "<td class=back2> <select name=whosonline> 419 <option value='On' "; 420 if ($enable_whosonline == "On") echo "selected"; 421 echo ">$lang_on</option> 422 <option value='Off' "; 423 if ($enable_whosonline == "Off") echo "selected"; 424 echo ">$lang_off</option> 425 </select></td>"; 426 echo "</tr>"; 427 // User List off/users only/all 428 echo "<tr>"; 429 echo "<td width=60% class=back2>$lang_ulist_desc: </td>"; 430 echo "<td class=back2> <select name=ulist> 431 <option value='Off' "; 432 if ($enable_ulist == "Off") echo "selected"; 433 echo ">$lang_off</option> 434 <option value='Users' "; 435 if ($enable_ulist == "Users") echo "selected"; 436 echo ">$lang_ulist_users</option> 437 <option value='All' "; 438 if ($enable_ulist == "All") echo "selected"; 439 echo ">$lang_ulist_all</option> 440 </select></td>"; 441 echo "</tr>"; 442 // User List displays username or full name 443 echo "<tr>"; 444 echo "<td width=60% class=back2>$lang_user_list_display: </td>"; 445 echo "<td class=back2> <select name=username_fullname> 446 <option value='Username' "; 447 if ($username_fullname == "Username") echo "selected"; 448 echo ">$lang_username</option> 449 <option value='FullName' "; 450 if ($username_fullname == "FullName") echo "selected"; 451 echo ">$lang_fullname</option>"; 452 echo "</select></td>"; 453 echo "</tr>"; 454 455 // allow logged date override on/off 456 echo "<tr>"; 457 echo "<td width=60% class=back2>$lang_override_logged_date: </td>"; 458 echo "<td class=back2> <select name=loggeddateoverride> 459 <option value='On' "; 460 if ($enable_loggeddateoverride == "On") echo "selected"; 461 echo ">$lang_on</option> 462 <option value='Off' "; 463 if ($enable_loggeddateoverride == "Off") echo "selected"; 464 echo ">$lang_off</option> 465 </select></td>"; 466 echo "</tr>"; 467 // Pager Gateway on/off 468 echo "<tr>"; 469 echo "<td width=60% class=back2>$lang_pagergateway: </td>"; 470 echo "<td class=back2> <select name=pager> 471 <option value='On' "; 472 if ($enable_pager == 'On') echo "selected"; 473 echo ">$lang_on</option> 474 <option value='Off' "; 475 if ($enable_pager == 'Off') echo "selected"; 476 echo ">$lang_off</option> 477 </select></td>"; 478 echo "</tr>"; 479 // Default Ticket Priority 480 echo "<tr>"; 481 echo "<td width=60% class=back2>$lang_lowestpri: </td>\n"; 482 echo "<td class=back2> <select name=pager_rank_low>\n"; 483 listPriorities(); 484 echo "</select></td>\n"; 485 echo "</tr>"; 486 // User Feedback On/Off 487 echo "<tr>"; 488 echo "<td width=60% class=back2>$lang_ticket $lang_feedback: </td>"; 489 echo "<td class=back2> <select name=enable_task_feedback> 490 <option value='On' "; 491 if ($enable_task_feedback == 'On') echo "selected"; 492 echo ">$lang_on</option> 493 <option value='Off' "; 494 if ($enable_task_feedback == 'Off') echo "selected"; 495 echo ">$lang_off</option> 496 </select></td>"; 497 echo "</tr>"; 498 // User Password Retrieval On/Off 499 echo "<tr>"; 500 echo "<td width=60% class=back2>$lang_password_retrieval: </td>"; 501 echo "<td class=back2> <select name=password_retrieval> 502 <option value='On' "; 503 if ($password_retrieval == 'On') echo "selected"; 504 echo ">$lang_on</option> 505 <option value='Off' "; 506 if ($password_retrieval == 'Off') echo "selected"; 507 echo ">$lang_off</option> 508 </select></td>"; 509 echo "</tr>"; 510 // Register for an account On/off with option to auto activate 511 echo "<tr>"; 512 echo "<td width=60% class=back2>$lang_user_account_registration</td>"; 513 echo "<td class=back2> <select name=user_account_registration> 514 <option value='Off' "; 515 if ($user_account_registration == 'Off') echo "selected"; 516 echo ">$lang_off</option> 517 <option value='Approval' "; 518 if ($user_account_registration == 'Approval') echo "selected"; 519 echo ">$lang_register - $lang_requires_approval</option> 520 <option value='Activated' "; 521 if ($user_account_registration == 'Activated') echo "selected"; 522 echo ">$lang_register - $lang_immediate_activation</option> 523 </select></td>"; 524 echo "</tr>"; 525 // Immediate account activation access rights 526 echo "<tr>"; 527 echo "<td width=60% class=back2>$lang_immediate_activation $lang_access_rights: </td>"; 528 echo "<td class=back2> <select name=immediate_activation_access> 529 <option value='Viewer' "; 530 if ($immediate_activation_access == 'Viewer') echo "selected"; 531 echo ">$lang_viewer</option> 532 <option value='User' "; 533 if ($immediate_activation_access == 'User') echo "selected"; 534 echo ">$lang_user</option> 535 </select></td>"; 536 echo "</tr>"; 537 // Enable or disable User and Viewer profile editing 538 echo "<tr>"; 539 echo "<td width=60% class=back2>$lang_profile_editing: </td>"; 540 echo "<td class=back2> <select name=profile_editing> 541 <option value='On' "; 542 if ($profile_editing == 'On') echo "selected"; 543 echo ">$lang_on</option> 544 <option value='Off' "; 545 if ($profile_editing == 'Off') echo "selected"; 546 echo ">$lang_off</option> 547 </select></td>"; 548 echo "</tr>"; 549 // Enable or disable intask log for supporter view 550 echo "<tr>"; 551 echo "<td width=60% class=back2>$lang_show_update_log_in_task: </td>"; 552 echo "<td class=back2> <select name=show_update_log_in_task><option value='Off' "; 553 if ($show_update_log_in_task == 'Off') 554 echo "selected"; 555 echo ">$lang_off</option> 556 <option value='On' "; 557 if ($show_update_log_in_task == 'On') 558 echo "selected"; 559 echo ">$lang_on</option> 560 </select></td>"; 561 echo "</tr>"; 562 //allow supporter to edit annoucements 563 echo "<tr>"; 564 echo "<td width=60% class=back2>$lang_allow_supporterannouncementedit: </td>"; 565 echo "<td class=back2> <select name=allow_supporterannouncementedit> 566 <option value='Off' "; 567 if ($allow_supporterannouncementedit == 'Off') echo "selected"; 568 echo ">$lang_off</option> 569 <option value='On' "; 570 if ($allow_supporterannouncementedit == 'On') echo "selected"; 571 echo ">$lang_on</option>"; 572 echo "</tr>"; 573 //Outbound Email Settings 574 echo "<tr><td colspan= 2 class=back2 align=center><strong>$lang_email_settings</strong></td></tr>"; 575 // smtp on/off 576 echo "<tr>"; 577 echo "<td width=60% class=back2>$lang_smtp $lang_status: </td>"; 578 echo "<td class=back2> <select name=smtp> 579 <option value='win' "; 580 if ($enable_smtp == "win") echo "selected"; 581 echo ">PHP Config</option> 582 <option value='lin' "; 583 if ($enable_smtp == "lin") echo "selected"; 584 echo ">Sendmail</option> 585 <option value='Off' "; 586 if ($enable_smtp == "Off") echo "selected"; 587 echo ">$lang_off</option> 588 </select></td>"; 589 echo "</tr>"; 590 // sendmail path 591 echo "<tr>"; 592 echo "<td width=60% class=back2>$lang_sendmailpath: <font size=1>$lang_sendmailex</font></td>"; 593 echo "<td class=back2> 594 <input type=text size=40 name=sendmail_path value=" . $sendmail_path . "> 595 </select></td>"; 596 echo "</tr>"; 597 //Inbound Email Settings - MailGate 598 echo "<tr><td colspan= 2 class=back2 align=center><strong>$lang_email_inbound_settings</strong></td></tr>"; 599 echo "<tr>"; 600 echo "<td class=back2>$lang_MG_MDpath: <font size=1>$lang_MG_MDpath_ex</font></td>"; 601 echo "<td class=back2> <input type=text size=40 name=MDpath value=$ooz_website_settings[MDpath]></td>"; 602 echo "</tr>"; 603 echo "<tr>"; 604 echo "<td class=back2>$lang_MG_Pearpath: <font size=1>$lang_MG_Pearpath_ex</font></td>"; 605 echo "<td class=back2> <input type=text size=40 name=Pearpath value=$ooz_website_settings[Pearpath]></td>"; 606 echo "</tr>"; 607 608 echo "<tr>"; 609 echo "<td class=back2>$lang_MG_path: <font size=1>$lang_MG_path_ex</font></td>"; 610 echo "<td class=back2> <input type=text size=40 name=path value=$ooz_website_settings[path]></td>"; 611 echo "</tr>"; 612 echo "<tr>"; 613 echo "<td class=back2>$lang_MG_hdMail: <font size=1>$lang_MG_hdMail_ex</font></td>"; 614 echo "<td class=back2> <input type=text size=40 name=hdMail value=$ooz_website_settings[hdMail]></td>"; 615 echo "</tr>"; 616 echo "<tr>"; 617 echo "<td class=back2>$lang_MG_pageMe: </td>"; 618 echo "<td class=back2> <select name=pageMe> 619 <option value='On' "; 620 if ($ooz_website_settings[pageMe] == 'On') echo "selected"; 621 echo ">$lang_on</option> 622 <option value='Off' "; 623 if ($ooz_website_settings[pageMe] == 'Off') echo "selected"; 624 echo ">$lang_off</option> 625 </select></td>"; 626 echo "</tr>"; 627 echo "<tr>"; 628 echo "<td class=back2>$lang_MG_pageAll: </td>"; 629 echo "<td class=back2> <select name=pageAll> 630 <option value='On' "; 631 if ($ooz_website_settings[pageAll] == 'On') echo "selected"; 632 echo ">$lang_on</option> 633 <option value='Off' "; 634 if ($ooz_website_settings[pageAll] == 'Off') echo "selected"; 635 echo ">$lang_off</option> 636 </select></td>"; 637 echo "</tr>"; 638 echo "<tr>"; 639 echo "<td class=back2>$lang_MG_pageAdmin: </td>"; 640 echo "<td class=back2> <select name=pageAdmin> 641 <option value='On' "; 642 if ($ooz_website_settings[pageAdmin] == 'On') echo "selected"; 643 echo ">$lang_on</option> 644 <option value='Off' "; 645 if ($ooz_website_settings[pageAdmin] == 'Off') echo "selected"; 646 echo ">$lang_off</option> 647 </select></td>"; 648 echo "</tr>"; 649 echo "<tr>"; 650 echo "<td class=back2>$lang_MG_sendReceipt: </td>"; 651 echo "<td class=back2> <select name=sendReceipt> 652 <option value='On' "; 653 if ($ooz_website_settings[sendReceipt] == 'On') echo "selected"; 654 echo ">$lang_on</option> 655 <option value='Off' "; 656 if ($ooz_website_settings[sendReceipt] == 'Off') echo "selected"; 657 echo ">$lang_off</option> 658 </select></td>"; 659 echo "</tr>"; 660 echo "<tr>"; 661 echo "<td class=back2>$lang_MG_input: </td>"; 662 echo "<td class=back2> <select name=input> 663 <option value='stream' "; 664 if ($ooz_website_settings[input] == 'stream') echo "selected"; 665 echo ">$lang_MG_stream</option> 666 <option value='pop3' "; 667 if ($ooz_website_settings[input] == 'pop3') echo "selected"; 668 echo ">$lang_MG_pop3</option> 669 </select></td>"; 670 echo "</tr>"; 671 echo "<tr>"; 672 echo "<td class=back2>$lang_MG_autoFill: </td>"; 673 echo "<td class=back2> <select name=autoFill> 674 <option value='On' "; 675 if ($ooz_website_settings[autoFill] == 'On') echo "selected"; 676 echo ">$lang_on</option> 677 <option value='Off' "; 678 if ($ooz_website_settings[autoFill] == 'Off') echo "selected"; 679 echo ">$lang_off</option> 680 </select></td>"; 681 echo "</tr>"; 682 echo "<tr>"; 683 echo "<td class=back2>$lang_MG_noThreads: </td>"; 684 echo "<td class=back2> <select name=noThreads> 685 <option value='On' ";