Пример #1
0
	
	$user=new usersMenus();
	if($user->AsPostfixAdministrator==false){
		$tpl=new templates();
		echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
		die();exit();
	}
	
	if(isset($_GET["tabs"])){tabs();exit;}
	if(isset($_GET["status"])){status();exit;}
	if(isset($_GET["members"])){members();exit;}
	if(isset($_GET["members-add-popup"])){members_add_popup();exit;}
	if(isset($_POST["members-save"])){members_add_save();exit;}
	if(isset($_GET["members-list"])){members_list();exit;}
	if(isset($_GET["members-delete"])){members_delete();exit;}
	if(isset($_GET["members-enable"])){members_enable();exit;}
	
	
	if(isset($_GET["EnableVIPTrack"])){EnableVIPTrackSave();exit;}	
	if(isset($_GET["VIPTrackLastHour"])){ScheduleVIPTrackSave();exit;}
	
	if(isset($_GET["GenerateReportsNow"])){GenerateReportsNow();exit;}
	
	if(isset($_GET["db-status"])){dbstatus();exit;}
	
	
	
js();


function GenerateReportsNow(){
Пример #2
0
include_once 'ressources/class.artica.graphs.inc';
include_once 'ressources/class.computers.inc';
$users = new usersMenus();
if (!$users->AsWebStatisticsAdministrator) {
    die;
}
if (isset($_GET["members-search"])) {
    members_search();
    exit;
}
if (isset($_POST["kill-userid"])) {
    members_delete();
    exit;
}
if (isset($_POST["enable-userid"])) {
    members_enable();
    exit;
}
page();
function page()
{
    $page = CurrentPageName();
    $tpl = new templates();
    $t = time();
    $publicip = $tpl->_ENGINE_parse_body("{public_ip}");
    $email = $tpl->_ENGINE_parse_body("{email}");
    $enabled = $tpl->_ENGINE_parse_body("{enabled}");
    $delete_this_member_ask = $tpl->javascript_parse_text("{delete_this_member_ask}");
    //$q=new mysql_squid_builder();
    //$q->QUERY_SQL("ALTER TABLE `usersisp` ADD UNIQUE (`email`)");
    $html = "\n{$explain}\n<table class='flexRT{$t}' style='display: none' id='flexRT{$t}' style='width:100%'></table>\n\n\t\n<script>\nMEM_ISP_MD='';\n\$(document).ready(function(){\n\$('#flexRT{$t}').flexigrid({\n\turl: '{$page}?members-search=yes&t={$t}',\n\tdataType: 'json',\n\tcolModel : [\n\t\t{display: 'ID', name : 'userid', width : 31, sortable : false, align: 'center'},\t\n\t\t{display: '{$publicip}', name : 'publicip', width :100, sortable : true, align: 'left'},\n\t\t{display: '{$email}', name : 'email', width :496, sortable : true, align: 'left'},\n\t\t{display: '{$enabled}', name : 'enabled', width : 31, sortable : true, align: 'center'},\n\t\t{display: '&nbsp;', name : 'delete', width : 31, sortable : false, align: 'center'},\n\t\t],\n\t{$buttons}\n\tsearchitems : [\n\t\t{display: '{$publicip}', name : 'publicip'},\n\t\t{display: '{$email}', name : 'email'}\n\t\t],\n\tsortname: 'userid',\n\tsortorder: 'desc',\n\tusepager: true,\n\ttitle: '',\n\tuseRp: true,\n\trp: 50,\n\tshowTableToggleBtn: false,\n\twidth: 765,\n\theight: 350,\n\tsingleSelect: true,\n\trpOptions: [10, 20, 30, 50,100,200]\n\t\n\t});   \n});\n\n    \n\tvar X_DeleteISPMEmber=function(obj){\n\t\tvar results=obj.responseText;\n\t\tif(results.length>3){alert(results);return;}\n\t\tif(MEM_ISP_MD.length>0){ \$('#row'+MEM_ISP_MD).remove();}\n\n\t\t\n    }  \n\n\tfunction DeleteISPMEmber(userid,md,email){\n\t\tMEM_ISP_MD=md;\n\t\tif(confirm('{$delete_this_member_ask}:'+email)){\n\t\t\tvar XHR = new XHRConnection();\n\t    \tXHR.appendData('kill-userid',userid);\n\t\t\tXHR.sendAndLoad('{$page}', 'POST',X_DeleteISPMEmber);    \t\t\n\t\t\n\t\t}\n\t}\n\t\n\tfunction ISPMemberEnable(userid,md){\n\t\t\tMEM_ISP_MD='';\n\t\t\tvar XHR = new XHRConnection();\n\t    \tXHR.appendData('enable-userid',userid);\n\t    \tif(!document.getElementById(md)){alert('Fatal:Error\\n'+md);return;}\n\t\t\tif(document.getElementById(md).checked){XHR.appendData('value',1);}else{XHR.appendData('value',0);}\n\t\t\tXHR.sendAndLoad('{$page}', 'POST',X_DeleteISPMEmber); \n\t\t}\n\n\n</script>\n\n";
Пример #3
0
include_once(dirname(__FILE__)."/ressources/class.user.inc");


$users=new usersMenus();
if(!$users->AsHotSpotManager){die();}


if(isset($_GET["content"])){content();exit;}
if(isset($_GET["tabs"])){tabs();exit;}
if(isset($_GET["sessions"])){sessions();exit;}
if(isset($_GET["sessions-items"])){sessions_items();exit;}
if(isset($_POST["delete-session"])){sessions_remove();exit;}

if(isset($_GET["members"])){members();exit;}
if(isset($_GET["members-items"])){members_items();exit;}
if(isset($_POST["EnableMember"])){members_enable();exit;}
if(isset($_POST["DeleteMember"])){members_delete();exit;}
if(isset($_GET["uid"])){member_popup();exit;}
if(isset($_POST["uid"])){members_save();exit;}
if(isset($_GET["ttl"])){members_ttl();exit;}
if(isset($_POST["uid-ttl"])){members_ttl_save();exit;}
if(isset($_GET["mysql-settings"])){mysql_settings();exit;}
if(isset($_GET["ttl-js"])){ttl_js();exit;}

if(isset($_GET["delete-session-js"])){delete_session_js();exit;}
if(isset($_POST["HotSpotAutoRegisterWebMail"])){mysql_settings_save();exit;}


main_page();

function main_page(){