head 1.7; access; symbols Initial:1.1.1.1 bule:1.1.1; locks; strict; comment @# @; 1.7 date 2003.10.20.00.21.45; author bule; state Exp; branches; next 1.6; 1.6 date 2003.10.18.00.33.41; author bule; state Exp; branches; next 1.5; 1.5 date 2003.10.06.00.39.26; author bule; state Exp; branches; next 1.4; 1.4 date 2003.10.01.06.51.28; author bule; state Exp; branches; next 1.3; 1.3 date 2003.09.11.05.28.22; author bule; state Exp; branches; next 1.2; 1.2 date 2003.08.19.06.42.07; author bule; state Exp; branches; next 1.1; 1.1 date 2003.08.12.19.18.23; author bule; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2003.08.12.19.18.23; author bule; state Exp; branches; next ; desc @@ 1.7 log @*** empty log message *** @ text @redirect("login.php"); exit; } $indonesia = new Indonesia(); $status = $indonesia->get_dictionary_status(); if ($status["status"] == 1 || $status["status"] == 2) { $web->redirect("admin.php"); exit; } if ($_SESSION['NODUP_ADMINS']) { unset($_SESSION['NODUPS_ADMINS']); $web->redirect("admin.php"); exit; } ?> Bahasa Indonesia Dictionary: Administrators show_logo("Administrators"); ?> Administration delete_administrator( $_POST['delete_name'], $_POST['name'], $_POST['password']); if ($errstr != "") { print "
${errstr}
\n"; } else { print "

\n" . "Successfully deleted administrator!" . "

\n"; $_SESSION['NODUP_ADMINS'] = 1; } } else if ( (isset($_POST['name'])) && (isset($_POST['password'])) && (isset($_POST['insert_name'])) && (isset($_POST['insert_password']))) { $errstr = $indonesia->insert_administrator( $_POST['insert_name'], $_POST['insert_password'], $_POST['name'], $_POST['password']); if ($errstr != "") { print "

${errstr}

\n"; } else { print "

\n" . "Successfully added new administrator!" . "

\n"; $_SESSION['NODUP_ADMINS'] = 1; } } else if ( (isset($_POST['name'])) && (isset($_POST['password'])) && (isset($_POST['insert_administrator']))) { $errstr = $indonesia->login_db_user($_POST['name'], $_POST['password']); if ($errstr != "") { print "
${errstr}
\n"; } else { show_insert_administrator_form(); } } else if ( (isset($_POST['name'])) && (isset($_POST['password'])) && (isset($_POST['delete_administrator']))) { $errstr = $indonesia->login_db_user($_POST['name'], $_POST['password']); if ($errstr != "") { print "
${errstr}
\n"; } else { show_delete_administrator_form(); } } else { show_admin_options_form($web, $indonesia); } ?> get_administrators($administrators); if ($errstr != "") { print "

${errstr}

\n"; return; } $delete_administrator_html = ""; if (count($administrators) > -1) { $delete_administrator_html .= "\n" . "\n" . "\n" . "\n"; } print << $delete_administrator_html
Name:      Password:  
EOFSAOF; return; } ////////////////////////////////////////////////////////////////////////////// function show_delete_administrator_form() { print <<
Enter Administrator's Name:
Name:
Password:
EOFDAF; return; } ////////////////////////////////////////////////////////////////////////////// function show_insert_administrator_form() { print <<
New Administrator's Name (5-50 characters):
New Administrator's Password (5-50 characters):
Name:
Password:
EOFIAF; return; } ////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////// ?> @ 1.6 log @*** empty log message *** @ text @d12 1 a12 1 // Modified: October 17, 2003 d69 2 @ 1.5 log @*** empty log message *** @ text @d12 1 a12 1 // Modified: October 05, 2003 d68 3 a70 3 Bahasa Indonesia Dictionary: Administrators d73 1 a73 25 ////////////////////////////////////////////////////////////////////////////// function is_white_space(stoken) { if (stoken == null) return(true); if (stoken == '') return(true); if (stoken == "") return(true); return(false); } ////////////////////////////////////////////////////////////////////////////// function trim(stoken) { if (is_white_space(stoken)) { return(stoken); } stoken = stoken.replace(/^\s*/, ""); stoken = stoken.replace(/\s*&/, ""); return(stoken); } d230 1 a230 1 ////////////////////////////////////////////////////////////////////////////// @ 1.4 log @*** empty log message *** @ text @d12 1 a12 1 // Modified: September 30, 2003 d259 3 a261 1

Bahasa Indonesia Dictionary: Administrators

@ 1.3 log @*** empty log message *** @ text @d12 1 a12 1 // Modified: September 05, 2003 d39 1 a39 1 if (!session_is_registered("ADMIN")) { d57 1 a57 1 if (session_is_registered("NODUP_ADMINS")) { d59 1 a59 1 session_unregister("NODUP_ADMINS"); d284 1 a284 3 $NODUP_ADMINS = 1; session_register("NODUP_ADMINS"); d309 1 a309 3 $NODUP_ADMINS = 1; session_register("NODUP_ADMINS"); @ 1.2 log @*** empty log message *** @ text @d12 1 a12 1 // Modified: August 18, 2003 d275 1 a275 1 print "

${errstr}

\n"; d326 1 a326 1 print "

${errstr}

\n"; d343 1 a343 1 print "

${errstr}

\n"; d386 1 a386 1 d390 1 a390 1 d393 1 a393 1 a400 2 @ 1.1 log @Initial revision @ text @d5 32 a36 1 a478 1 @ 1.1.1.1 log @Bahasa Indonesia Dictionary @ text @@