Просмотр файла admin/ad_menu.php

Размер файла: 2.76Kb
<?php

/*********************************************************************
 *
 * WapSite powered by CsC Portal. WapSite[tm] is module of CsC Portal.
 *
 * (C) 2004. CsC Portal. All rights reserved.
 *
 * http://cscp.cs-centar.net | http://www.cs-centar.net
 *
 ********************************************************************/

// File: admin/ad_menu.php
// Desc: Use to select requested page [ Works only via Web Browser ]
// Written on: 22.04.2004

include("../wap_db.php");
include("ad_functions.php");

if ($act_index == "idx") {

include("ad_header.php");

echo $lang_display[admin_welcome];

include("ad_footer.php");

}

if ($_GET['act'] == "idx") {

include("ad_header.php");

echo $lang_display[admin_welcome];

include("ad_footer.php");

}

if ($_GET['act'] == "edit_delete") {

include("ad_header.php");

echo $lang_display[admin_page_edit];

echo "<br><br><br><br>";

display_table_edit();

echo "<br><br><br>";

display_table_edit_add();

include("ad_footer.php");

}

if ($_GET['act'] == "news") {

include("ad_header.php");

echo $lang_display[admin_news];

echo "<br><br><br><br>";

display_table_news();

echo "<br><br><br>";

display_table_news_add();

include("ad_footer.php");

}

if ($_GET['act'] == "files") {

include("ad_header.php");

echo $lang_display[admin_files];

echo "<br><br><br><br>";

display_table_files();

echo "<br><br><br>";

display_table_files_upload();

include("ad_footer.php");

}

if ($_GET['act'] == "options" && $_GET['substr'] == "save") {

include("ad_header.php");

include("../db_connect.php");

$field_str_p .= " language = '$lang_set', ";
$field_str_p .= " file_upload_dir = '$file_upload_dir' ";

$panel_upd = mysql_query("UPDATE cscp_wap_options SET $field_str_p WHERE id = 'panel'", $db);

$field_str_pg .= " m_add = '$m_add_p', ";
$field_str_pg .= " m_edit = '$m_edit_p', ";
$field_str_pg .= " m_delete = '$m_delete_p' ";

$page_ud = mysql_query("UPDATE cscp_wap_options SET $field_str_pg WHERE id = 'page'", $db);

$field_str_n .= " m_add = '$m_add_n', ";
$field_str_n .= " m_edit = '$m_edit_n', ";
$field_str_n .= " m_delete = '$m_delete_n' ";

$news_ud = mysql_query("UPDATE cscp_wap_options SET $field_str_n WHERE id = 'news'", $db);

$field_str_u .= " m_delete = '$m_delete_f', ";
$field_str_u .= " m_upload = '$m_upload' ";

$upload_ud = mysql_query("UPDATE cscp_wap_options SET $field_str_u WHERE id = 'file'", $db);

echo "<br><br>";

echo $lang_display[admin_options_save];

include("ad_footer.php");

exit;

}

if ($_GET['act'] == "options") {

include("ad_header.php");

echo $lang_display[admin_options];

echo "<br><br><br><br>";

display_table_options();

include("ad_footer.php");

}


?>