本文整理汇总了PHP中PageTop函数的典型用法代码示例。如果您正苦于以下问题:PHP PageTop函数的具体用法?PHP PageTop怎么用?PHP PageTop使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了PageTop函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: SaveRedirList
function SaveRedirList()
{
global $SAMSConf;
global $USERConf;
$DB = new SAMSDB();
$lang = "./lang/lang.{$SAMSConf->LANG}";
require $lang;
if ($USERConf->ToWebInterfaceAccess("LC") != 1) {
exit;
}
if (isset($_GET["id"])) {
$id = $_GET["id"];
}
$num_rows = $DB->samsdb_query_value("SELECT * FROM redirect WHERE s_redirect_id='{$id}' ");
$row = $DB->samsdb_fetch_array();
PageTop("export_48.jpg", "{$redir_exporturllist1} <FONT COLOR=\"BLUE\">{$row['s_name']}</FONT>");
$DB->free_samsdb_query();
$filename = strftime("urllist-%d%b%Y-%H-%M-%S.txt");
$fout = fopen("data/{$filename}", "w");
if ($fout == FALSE) {
echo "can't open sams config file data/{$filename}<BR>";
exit(0);
}
$num_rows = $DB->samsdb_query_value("SELECT * FROM url WHERE s_redirect_id='{$id}' ");
while ($row = $DB->samsdb_fetch_array()) {
fwrite($fout, "{$row['s_url']}\n");
}
fclose($fout);
print "<A HREF=\"data/{$filename}\">\n";
print "<BR>{$redir_exporturllist2} \n";
print "</A>\n";
}
示例2: ClearUserTrafficCounterForm
function ClearUserTrafficCounterForm()
{
global $SAMSConf;
global $USERConf;
global $SquidUSERConf;
$DB = new SAMSDB();
$lang = "./lang/lang.{$SAMSConf->LANG}";
require $lang;
if ($USERConf->ToWebInterfaceAccess("UC") != 1) {
exit(0);
}
if (isset($_GET["id"])) {
$id = $_GET["id"];
}
$SquidUSERConf = new SAMSUSER();
$SquidUSERConf->sams_user($id);
PageTop("usertraffic_48.jpg", "{$usertray_UserTray_1} <FONT COLOR=\"BLUE\">{$SquidUSERConf->s_nick}</FONT> <BR>{$userbuttom_5_clear_userbuttom_5_clear_1}");
print "<FORM NAME=\"UserIDForm\" ACTION=\"main.php\">\n";
print "<INPUT TYPE=\"HIDDEN\" NAME=\"id\" id=UserName value=\"{$SquidUSERConf->s_user_id}\">\n";
print "<INPUT TYPE=\"HIDDEN\" NAME=\"show\" id=Show value=\"exe\">\n";
print "<INPUT TYPE=\"HIDDEN\" NAME=\"function\" id=function value=\"clearusertrafficcounter\">\n";
print "<INPUT TYPE=\"HIDDEN\" NAME=\"filename\" id=filename value=\"userbuttom_5_clear.php\">\n";
print "<BR><INPUT TYPE=\"CHECKBOX\" NAME=\"enabled\" CHECKED> {$activate_user}\n";
print "<BR><INPUT TYPE=\"SUBMIT\" value=\"{$userbuttom_5_clear_userbuttom_5_clear_1}\">\n";
print "</FORM>\n";
}
示例3: UpdateGroupForm
function UpdateGroupForm()
{
global $SAMSConf;
global $USERConf;
$DB = new SAMSDB();
$lang = "./lang/lang.{$SAMSConf->LANG}";
require $lang;
if (isset($_GET["id"])) {
$id = $_GET["id"];
}
if ($USERConf->ToWebInterfaceAccess("C") != 1) {
exit;
}
$num_rows = $DB->samsdb_query_value("SELECT * FROM sgroup WHERE s_group_id='{$id}' ");
$row = $DB->samsdb_fetch_array();
PageTop("shablon.jpg", "{$groupbuttom_0_prop_UpdateGroupForm_1} <FONT COLOR=\"BLUE\">{$row['s_name']}</FONT>");
print "<FORM NAME=\"UPDATEGROUP\" ACTION=\"main.php\">\n";
print "<INPUT TYPE=\"HIDDEN\" NAME=\"show\" value=\"exe\">\n";
print "<INPUT TYPE=\"HIDDEN\" NAME=\"function\" value=\"updategroup\">\n";
print "<INPUT TYPE=\"HIDDEN\" NAME=\"filename\" value=\"groupbuttom_0_prop.php\">\n";
print "<INPUT TYPE=\"HIDDEN\" NAME=\"id\" value=\"{$id}\">\n";
print "<TABLE BORDER=0>\n";
print "<TR>\n";
print "<TD><B>{$groupbuttom_0_prop_UpdateGroupForm_2}: </B>\n";
print "<TD><INPUT TYPE=\"TEXT\" NAME=\"nick\" SIZE=30 VALUE=\"{$row['s_name']}\"> \n";
print "</TABLE>\n";
/* calendar */
print "<BR><INPUT TYPE=\"SUBMIT\" value=\"{$shablonbuttom_1_prop_UpdateShablonForm_7}\">\n";
print "</FORM>\n";
}
示例4: AuthEnabledForm
function AuthEnabledForm()
{
global $SAMSConf;
global $USERConf;
$lang = "./lang/lang.{$SAMSConf->LANG}";
require $lang;
if ($USERConf->ToWebInterfaceAccess("C") != 1) {
exit(0);
}
$ADLDCHECKED = "";
$NTLMCHECKED = "";
$LDAPCHECKED = "";
$NCSACHECKED = "";
PageTop("config_48.jpg", "{$authtray_AuthEnabledForm_1}");
print "<P>\n";
print "<FORM NAME=\"authenabledform\" ACTION=\"main.php\">\n";
print "<INPUT TYPE=\"HIDDEN\" NAME=\"show\" value=\"exe\">\n";
print "<INPUT TYPE=\"HIDDEN\" NAME=\"function\" value=\"authenabled\">\n";
print "<INPUT TYPE=\"HIDDEN\" NAME=\"filename\" value=\"authtray.php\">\n";
print "<TABLE CLASS=samstable WIDTH=\"90%\" BORDER=0>\n";
print "<TR bgcolor=blanchedalmond>\n";
print "<TH bgcolor=blanchedalmond>{$authtray_AuthEnabledForm_2}\n";
print "<TH bgcolor=blanchedalmond>{$authtray_AuthEnabledForm_3}\n";
print "<TR bgcolor=blanchedalmond>\n";
print "<TD><B>IP </B>\n";
if (GetAuthParameter("ip", "enabled") > 0) {
$IPCHECKED = "CHECKED";
}
print "<TD><INPUT TYPE=\"CHECKBOX\" NAME=\"ip\" {$IPCHECKED}> \n";
print "<TR bgcolor=blanchedalmond>\n";
print "<TD><B>Active Directory </B>\n";
if (GetAuthParameter("adld", "enabled") > 0) {
$ADLDCHECKED = "CHECKED";
}
print "<TD><INPUT TYPE=\"CHECKBOX\" NAME=\"adld\" {$ADLDCHECKED}> \n";
print "<TR bgcolor=blanchedalmond>\n";
print "<TD><B>NTLM</B>\n";
if (GetAuthParameter("ntlm", "enabled") > 0) {
$NTLMCHECKED = "CHECKED";
}
print "<TD><INPUT TYPE=\"CHECKBOX\" NAME=\"ntlm\" {$NTLMCHECKED}> \n";
print "<TR bgcolor=blanchedalmond>\n";
print "<TD><B>LDAP</B>\n";
if (GetAuthParameter("ldap", "enabled") > 0) {
$LDAPCHECKED = "CHECKED";
}
print "<TD><INPUT TYPE=\"CHECKBOX\" NAME=\"ldap\" {$LDAPCHECKED}> \n";
print "<TR bgcolor=blanchedalmond>\n";
print "<TD><B>NCSA</B>\n";
if (GetAuthParameter("ncsa", "enabled") > 0) {
$NCSACHECKED = "CHECKED";
}
print "<TD><INPUT TYPE=\"CHECKBOX\" NAME=\"ncsa\" {$NCSACHECKED}> \n";
print "</TABLE>\n";
print "<BR><INPUT TYPE=\"SUBMIT\" value=\"{$lframe_sams_Auth_ConfigureButton}\">\n";
print "</FORM>\n";
print "<P><IMG SRC=\"{$SAMSConf->ICONSET}/help.jpg\">";
print "<A HREF=\"http://sams.perm.ru/sams2/doc/" . $SAMSConf->LANG . "/authorization.html\">{$documentation}</A>";
}
示例5: ChUserPasswdForm
function ChUserPasswdForm()
{
global $SAMSConf;
global $USERConf;
global $SquidUSERConf;
$lang = "./lang/lang.{$SAMSConf->LANG}";
require $lang;
if (isset($_GET["id"])) {
$id = $_GET["id"];
}
$SquidUSERConf = new SAMSUSER();
$SquidUSERConf->sams_user($id);
if ($USERConf->ToWebInterfaceAccess("AUC") == 1 || $USERConf->s_user_id == $SquidUSERConf->s_user_id && $USERConf->ToWebInterfaceAccess("W") == 1) {
PageTop("userpasswd_48.jpg", "{$userbuttom_6_chpasswd_ChUserPasswdForm_1} <FONT COLOR=\"BLUE\">{$SquidUSERConf->s_nick}</FONT>");
print "<P>\n";
print "<SCRIPT language=JAVASCRIPT>\n";
print "function TestUserData(formname)\n";
print "{\n";
print " var passw1=formname.passw1.value; \n";
print " var passw2=formname.passw2.value; \n";
print " var res=0;\n";
print " if(passw1.length!=passw2.length) \n";
print " {\n";
print " window.confirm(\"{$adminbuttom_4_chpasswd_ChangeAdminPasswdForm_4}\");\n";
print " res=1;\n";
print " }\n";
print " else\n";
print " {\n";
print " for(var i=0; i < passw1.length; i +=1 ) \n";
print " {\n";
print " if(passw1.charAt(i)!=passw2.charAt(i)) \n";
print " {\n";
print " window.confirm(\"{$adminbuttom_4_chpasswd_ChangeAdminPasswdForm_5}\");\n";
print " res=1;\n";
print " break;\n";
print " }\n";
print " }\n";
print " }\n";
print " if(res==0) \n";
print " this.document.forms[\"form1\"].submit();\n";
print "}\n";
print "</SCRIPT> \n";
print "<FORM NAME=\"form1\" ACTION=\"main.php\">\n";
print "<INPUT TYPE=\"HIDDEN\" NAME=\"show\" value=\"exe\">\n";
print "<INPUT TYPE=\"HIDDEN\" NAME=\"function\" value=\"chuserpasswd\">\n";
print "<INPUT TYPE=\"HIDDEN\" NAME=\"filename\" value=\"userbuttom_6_chpasswd.php\">\n";
print "<INPUT TYPE=\"HIDDEN\" NAME=\"id\" value=\"{$SquidUSERConf->s_user_id}\">\n";
print "<TABLE WIDTH=\"90%\">";
print "<TR><TD><B>login:</B><TD>";
print "{$SquidUSERConf->s_nick}";
print "<TR><TD><B>Password:</B><TD>";
print "<BR><INPUT TYPE=\"PASSWORD\" NAME=\"passw1\" SIZE=30> \n";
print "<TR><TD><B>Retype:</B><TD>";
print "<BR><INPUT TYPE=\"PASSWORD\" NAME=\"passw2\" SIZE=30> \n";
print "<BR><INPUT TYPE=\"BUTTON\" value=\"{$adminbuttom_4_chpasswd_ChangeAdminPasswdForm_2}\" onclick=TestUserData(form1)>\n";
print "</FORM>\n";
}
}
示例6: NotEmptyGroupWarning
function NotEmptyGroupWarning($groupnick)
{
global $SAMSConf;
global $USERConf;
$lang = "./lang/lang.{$SAMSConf->LANG}";
require $lang;
if ($USERConf->ToWebInterfaceAccess("C") != 1) {
exit;
}
PageTop("warning.jpg", "{$groupbuttom_9_delete_NotEmptyGroupWarning_1}");
print "<B>{$groupbuttom_9_delete_NotEmptyGroupWarning_2}</B>";
}
示例7: shutdown_proxy
function shutdown_proxy()
{
global $SAMSConf;
global $USERConf;
$lang = "./lang/lang.{$SAMSConf->LANG}";
require $lang;
if (isset($_GET["id"])) {
$id = $_GET["id"];
}
if ($USERConf->ToWebInterfaceAccess("C") == 1) {
$DB = new SAMSDB();
PageTop("reconfig_48.jpg", "Send command '{$SAMSConf->SHUTDOWN}' to proxy server");
$QUERY = "INSERT INTO reconfig (s_proxy_id, s_service, s_action) VALUES('{$id}', 'squid', 'shutdown'); ";
$result = $DB->samsdb_query($QUERY);
}
}
示例8: AuthNTLMReConfigForm
function AuthNTLMReConfigForm()
{
global $SAMSConf;
global $PROXYConf;
global $USERConf;
$DB = new SAMSDB();
$files = array();
if (isset($_GET["id"])) {
$proxy_id = $_GET["id"];
}
$lang = "./lang/lang.{$SAMSConf->LANG}";
require $lang;
if ($USERConf->ToWebInterfaceAccess("C") != 1) {
exit;
}
PageTop("config_48.jpg", "{$authntlmbuttom_1_prop_AuthNTLMReConfigForm_1} ");
print "<P>\n";
print "<FORM NAME=\"adldreconfigform\" ACTION=\"main.php\">\n";
print "<BR><INPUT TYPE=\"SUBMIT\" value=\"{$adminbuttom_1_prop_SamsReConfigForm_12}\">\n";
print "<INPUT TYPE=\"HIDDEN\" NAME=\"show\" value=\"exe\">\n";
print "<INPUT TYPE=\"HIDDEN\" NAME=\"function\" value=\"authntlmreconfig\">\n";
print "<INPUT TYPE=\"HIDDEN\" NAME=\"filename\" value=\"authntlmbuttom_1_prop.php\">\n";
print "<TABLE CLASS=samstable WIDTH=\"90%\" BORDER=0>\n";
print "<TR bgcolor=blanchedalmond>\n";
print "<TD><B>{$ntlm_server}</B>\n";
$value = GetAuthParameter("ntlm", "ntlmserver");
print "<TD><INPUT TYPE=\"TEXT\" NAME=\"ntlmserver\" VALUE=\"{$value}\" >\n";
print "<TR bgcolor=blanchedalmond>\n";
print "<TD><B>{$ntlm_domain}</B>\n";
$value = GetAuthParameter("ntlm", "ntlmdomain");
print "<TD><INPUT TYPE=\"TEXT\" NAME=\"ntlmdomain\" VALUE=\"{$value}\">\n";
print "<TR bgcolor=blanchedalmond>\n";
print "<TD><B>{$ntlm_admin}</B>\n";
$value = GetAuthParameter("ntlm", "ntlmadmin");
print "<TD><INPUT TYPE=\"TEXT\" NAME=\"ntlmadmin\" VALUE=\"{$value}\">\n";
print "<TR bgcolor=blanchedalmond>\n";
print "<TD><B>{$ntlm_passwd}</B>\n";
$value = GetAuthParameter("ntlm", "ntlmadminpasswd");
print "<TD><INPUT TYPE=\"TEXT\" NAME=\"ntlmadminpasswd\" VALUE=\"{$value}\">\n";
print "<TR bgcolor=blanchedalmond>\n";
print "<TD><B>{$ntlm_group}</B>\n";
$value = GetAuthParameter("ntlm", "ntlmusergroup");
print "<TD><INPUT TYPE=\"TEXT\" NAME=\"ntlmusergroup\" VALUE=\"{$value}\">\n";
print "</TABLE>\n";
print "<BR><INPUT TYPE=\"SUBMIT\" value=\"{$adminbuttom_1_prop_SamsReConfigForm_12}\">\n";
print "</FORM>\n";
}
示例9: AddURLListForm
function AddURLListForm()
{
global $SAMSConf;
global $USERConf;
$lang = "./lang/lang.{$SAMSConf->LANG}";
require $lang;
print "<SCRIPT>\n";
print " parent.tray.location.href=\"tray.php\";\n";
print "</SCRIPT> \n";
if ($USERConf->ToWebInterfaceAccess("C") != 1) {
exit;
}
PageTop("redirect_48.jpg", "{$redirlisttray_AddRedirListForm_1} ");
print "<BR>\n";
print "<SCRIPT language=JAVASCRIPT>\n";
print "function TestName(formname)\n";
print "{\n";
print " var shablonname=formname.name.value; \n";
print " if(shablonname.length==0) \n";
print " {\n";
print " alert(\"{$redirlisttray_AddRedirListForm_5}\");\n";
print " return false";
print " }\n";
print " return true";
print "}\n";
print "</SCRIPT> \n";
print "<FORM NAME=\"REDIRECT\" ACTION=\"main.php\" onsubmit=\"return TestName(REDIRECT)\">\n";
print "<INPUT TYPE=\"HIDDEN\" NAME=\"show\" id=Show value=\"exe\">\n";
print "<INPUT TYPE=\"HIDDEN\" NAME=\"function\" id=function value=\"addnewlist\">\n";
print "<INPUT TYPE=\"HIDDEN\" NAME=\"execute\" id=execute value=\"redirlisttray\">\n";
print "<INPUT TYPE=\"HIDDEN\" NAME=\"filename\" id=filename value=\"urllistfunction.php\">\n";
print "<TABLE>\n";
print "<TR>\n";
print "<TD>\n";
print "<B>{$redirlisttray_AddRedirListForm_2}:\n";
print "<TD>\n";
print "<INPUT TYPE=\"HIDDEN\" NAME=\"type\" id=type value=\"redir\">\n";
print "<INPUT TYPE=\"TEXT\" NAME=\"name\" SIZE=50> \n";
print "</TABLE>\n";
print "<BR><INPUT TYPE=\"SUBMIT\" value=\"{$redirlisttray_AddRedirListForm_3}\">\n";
print "</FORM>\n";
print "<P><TABLE WIDTH=\"90%\"><TR><TD WIDTH=\"15%\"><A HREF=\"doc/{$SAMSConf->LANGCODE}/urllists.html\">";
print "<IMG SRC=\"{$SAMSConf->ICONSET}/help.jpg\" ALIGN=RIGHT>";
print "<TD>{$redirlisttray_AddRedirListForm_4}";
}
示例10: HelpSquidForm
function HelpSquidForm()
{
global $SAMSConf;
global $USERConf;
$files = array();
$lang = "./lang/lang.{$SAMSConf->LANG}";
require $lang;
PageTop("reconfig_48.jpg", "{$squidtray_HelpSquidForm_1}");
print "<P><P>\n";
print "<P><TABLE WIDTH=\"90%\"><TR><TD WIDTH=\"15%\">";
//print("<A HREF=\"doc/reconfig.html\">");
print "<IMG SRC=\"{$SAMSConf->ICONSET}/help.jpg\" ALIGN=RIGHT>";
print "<TD>{$squidtray_HelpSquidForm_2}";
print "</TABLE>";
if ($USERConf->ToWebInterfaceAccess("C") == 1) {
$squidlogfiles = 0;
$scount = 0;
if ($handle2 = opendir("./backup")) {
while (false !== ($file = readdir($handle2))) {
if ($file != "." && $file != ".." && $file != ".svn") {
if (strlen($file) > 0) {
$script[$scount] = $file;
$scount++;
}
}
}
}
if ($scount > 0) {
print "<H3>{$squidtray_HelpSquidForm_3} </H3>";
print "<P><TABLE border=0 WIDTH=\"60%\">\n";
print "<TH >N ";
print "<TH >Filename";
print "<TH >Size";
}
for ($i = 0; $i < $scount; $i++) {
$filesize = filesize("./backup/{$script[$i]}");
print "<TR>\n";
print "<TD WIDTH=\"10%\" ALIGN=\"CENTER\">{$i} ";
print "<TD WIDTH=\"70%\" ALIGN=\"LEFT\">";
print "<B><A HREF=\"backup/{$script[$i]}\">{$script[$i]}</A></B>\n";
print "<TD WIDTH=\"20%\" ALIGN=\"CENTER\"> {$filesize}";
}
}
}
示例11: ChangeUser
function ChangeUser()
{
global $SAMSConf;
$lang = "./lang/lang.{$SAMSConf->LANG}";
require $lang;
print "<SCRIPT language=JAVASCRIPT>\n";
print "function TestUserData(formname)\n";
print "{\n";
print " var username=formname.username.value; \n";
print " var res=0;\n";
print " var host=window.location.hostname;\n";
print " var path=window.location.pathname;\n";
print " var hrefstr=\"https://\"+host+path;\n";
print " if(username.length==0) \n";
print " {\n";
print " window.confirm(\"{$adminbuttom_2_chuser_ChangeUser_3}\");\n";
print " res=1;\n";
print " }\n";
print " if(res==0) \n";
print " this.document.forms[\"form1\"].submit();\n";
print "}\n";
print "</SCRIPT> \n";
print "<CENTER>\n";
print "<TABLE WIDTH=\"90%\" BORDER=0>\n";
print "<TR>\n";
print "<TD COLSPAN=2>\n";
PageTop("getpassword.jpg", "{$adminbuttom_2_chuser_ChangeUser_1} ");
print "<B>{$adminbuttom_2_chuser_ChangeUser_2}</B>";
print "<P>\n";
print "<FORM NAME=\"form1\" ACTION=\"main.php\" onsubmit=TestUserData(form1) method=\"POST\">\n";
print "<INPUT TYPE=\"HIDDEN\" NAME=\"show\" value=\"exe\">\n";
print "<INPUT TYPE=\"HIDDEN\" NAME=\"function\" value=\"setcookie\">\n";
print "<TR>\n";
print "<TD><B>login:</B>\n";
print "<TD><INPUT TYPE=\"TEXT\" NAME=\"username\" SIZE=30>\n";
print "<TR>\n";
print "<TD><B>password:</B>\n";
print "<TD><INPUT TYPE=\"PASSWORD\" NAME=\"userid\" SIZE=30 > \n";
print "<TR>\n";
print "<TD COLSPAN=2 ALIGN=CENTER>\n";
print "<BR><INPUT TYPE=\"SUBMIT\" value=\"Ok\">\n";
print "</TABLE>\n";
print "</FORM>\n";
}
示例12: SysPlugConfigForm
function SysPlugConfigForm()
{
global $SAMSConf;
$DB = new SAMSDB();
$num_rows = $DB->samsdb_query_value("SELECT * FROM sysinfo");
PageTop("sysplug_64.png", "System Plugins");
print "<FORM NAME=\"sysplugconfigform\" ACTION=\"main.php\">\n";
print "<INPUT TYPE=\"HIDDEN\" NAME=\"show\" value=\"exe\">\n";
print "<INPUT TYPE=\"HIDDEN\" NAME=\"function\" value=\"sysplugconfig\">\n";
print "<INPUT TYPE=\"HIDDEN\" NAME=\"filename\" value=\"sysplugconfigtray.php\">\n";
print "<TABLE CLASS=samstable>\n";
print "<TH>Name</TH>\n";
print "<TH>Version</TH>\n";
print "<TH>Author</TH>\n";
print "<TH>Enabled</TH>\n";
while ($row = $DB->samsdb_fetch_array()) {
/*
print("<TR>\n");
if(isset($_GET["$row[s_row_id]"])) $val=$_GET["$row[s_row_id]"];
print("<TD>s_row_id=$row[s_row_id]</TD>\n");
print("<TD>val=$val</TD>\n");
if($val=="on") $val=1; else $val=0;
print("<TD>val=$val</TD>\n");
print("<TD>s_status=$row[s_status]</TD>\n");
print("</TR>\n");
*/
print "<TR>\n";
print " <TD>{$row['s_name']}</TD>\n";
print " <TD>{$row['s_version']}</TD>\n";
print " <TD>{$row['s_author']}</TD>\n";
$CHECKED = "";
if ($row['s_status'] == 1) {
$CHECKED = "CHECKED";
}
print "<TD><INPUT TYPE=\"CHECKBOX\" NAME=\"{$row['s_row_id']}\" {$CHECKED}></TD>\n";
print "</TR>\n";
}
$DB->free_samsdb_query();
print "</TABLE>\n";
print "<BR><INPUT TYPE=\"SUBMIT\" value=\"Configure\">\n";
print "</FORM>\n";
}
示例13: LoadRedirListForm
function LoadRedirListForm()
{
global $SAMSConf;
global $USERConf;
$lang = "./lang/lang.{$SAMSConf->LANG}";
require $lang;
if (isset($_GET["id"])) {
$id = $_GET["id"];
}
if ($USERConf->ToWebInterfaceAccess("CL") != 1) {
exit;
}
PageTop("import_48.jpg", "{$redir_loadfurllist1}");
print "<FORM NAME=\"LOADBACKUP\" ENCTYPE=\"multipart/form-data\" ACTION=\"main.php?show=exe&function=loadredirlist&filename=redirbuttom_1_loadlist.php&id={$id}&type=redir&execute=redirlisttray \" METHOD=POST>\n";
print " <INPUT TYPE=\"HIDDEN\" NAME=\"MAX_FILES_SIZE\" value=\"1048576\">\n";
print "<BR><INPUT TYPE=\"FILE\" NAME=\"userfile\" value=\"{$redir_importurllistform1}\">\n";
print "<BR><INPUT TYPE=\"SUBMIT\" value=\"Load file\">\n";
print "</FORM>\n";
}
示例14: MoveUserTrafficDataForm
function MoveUserTrafficDataForm()
{
global $SAMSConf;
global $USERConf;
require "reportsclass.php";
$dateselect = new DATESELECT("", "");
$lang = "./lang/lang.{$SAMSConf->LANG}";
require $lang;
$DB = new SAMSDB();
if ($USERConf->ToWebInterfaceAccess("C") != 1) {
exit;
}
PageTop("switchuser_48.jpg", "{$MoveUserTrafficDataForm_1}");
print "<IMG SRC=\"{$SAMSConf->ICONSET}/help.jpg\">";
print "<A HREF=\"http://sams.perm.ru/sams2/doc/" . $SAMSConf->LANG . "/samsbackup.html\">{$documentation}</A>";
print "<P>\n";
print "<FORM NAME=\"BACKUP\" ACTION=\"main.php\">\n";
print "<INPUT TYPE=\"HIDDEN\" NAME=\"show\" value=\"exe\">\n";
print "<INPUT TYPE=\"HIDDEN\" NAME=\"function\" value=\"moveusertrafficdata\">\n";
print "<INPUT TYPE=\"HIDDEN\" NAME=\"filename\" value=\"configbuttom_6_moveusertrafficdata.php\">\n";
$dateselect->SetPeriod();
print "<TABLE WIDTH=70%>\n";
print "<TR><TD WIDTH=20%>{$MoveUserTrafficDataForm_2}\n";
print "<TD WIDTH=35%><SELECT NAME=\"userfrom\">\n";
$QUERY = "SELECT s_user FROM squidcache GROUP BY s_user ORDER BY s_user";
$num_rows = $DB->samsdb_query_value($QUERY);
while ($row = $DB->samsdb_fetch_array()) {
print "<OPTION VALUE=\"" . $row['s_user'] . "\"> " . $row['s_user'] . "\n";
}
print "</SELECT>\n";
print "<TD WIDTH=10%> {$MoveUserTrafficDataForm_3}\n";
print "<TD WIDTH=35%><SELECT NAME=\"userto\">\n";
$QUERY = "SELECT * FROM squiduser ORDER BY s_nick";
$num_rows = $DB->samsdb_query_value($QUERY);
while ($row = $DB->samsdb_fetch_array()) {
print "<OPTION VALUE=\"" . $row['s_nick'] . "\"> " . $row['s_nick'] . "\n";
}
print "</SELECT>\n";
print "</TABLE>\n";
print "<BR><INPUT TYPE=\"SUBMIT\" value=\"{$MoveUserTrafficDataForm_4}\">\n";
print "</FORM>\n";
}
示例15: LoadBackUpForm
function LoadBackUpForm()
{
global $SAMSConf;
global $USERConf;
$lang = "./lang/lang.{$SAMSConf->LANG}";
require $lang;
if ($USERConf->ToWebInterfaceAccess("C") != 1) {
exit;
}
PageTop("reark_48.jpg", "{$backupbuttom_2_loadbase_LoadBackUpForm_1}");
print "<IMG SRC=\"{$SAMSConf->ICONSET}/help.jpg\">";
print "<A HREF=\"http://sams.perm.ru/sams2/doc/" . $SAMSConf->LANG . "/samsbackup.html\">{$documentation}</A>";
print "<P>\n";
print "<BR>{$backupbuttom_2_loadbase_LoadBackUpForm_4}\n";
print "<FORM NAME=\"LOADBACKUP\" ENCTYPE=\"multipart/form-data\" ACTION=\"main.php?show=exe&function=loadbackup&filename=configbuttom_5_restore.php\" METHOD=POST>\n";
print "<INPUT TYPE=\"HIDDEN\" NAME=\"MAX_FILES_SIZE\" value=\"10485760\">\n";
print "<INPUT TYPE=\"FILE\" name=\"userfile\" value=\"{$backupbuttom_2_loadbase_LoadBackUpForm_2}\">\n";
print "<BR><INPUT TYPE=\"SUBMIT\" value=\"load file and restore backup\">\n";
print "</FORM>\n";
}