Location: PHPKode > projects > phpMyPrepaid > phpmyprepaid/www/body.php
<div id="left">
	<hr style="width: 180px; margin-left: 0px; margin-right: auto;">
	<?php include('leftdiv.php'); ?>
	<p><a href=""></a></p>
	<p><a href=""></a></p>
	<p><a href=""></a></p>

</div>
<div id="rightwrapper">
	<div class="right" style="min-height: 13em">
<?php
if ($debug) echo "SESSION ID : ".session_id();
if ($debug) echo "<br> USER STATUS : ".$oreon->user->get_status();
if ($debug) echo "<br> LOCATION : ".$_SESSION['locID'];
if ($debug) echo "<br> LOCATION NAME : ".$_SESSION['LocName'];
unset($_SERVER['HTTP_REFERER']);

if (isset($_SESSION['error'])) 
{
	$error=$_SESSION['error'];
	print "<p class=\"error\">".$error."</p>"; 
	unset($_SESSION['error']);
	print "<hr>";
	return;
}

if((!isset($button)) && isset($_SESSION['button'])){
	$buttonID = $_SESSION['button'];
}
if(isset($_POST['buttonID'])){
	$buttonID = $_POST['buttonID'];
}

if ($debug and isset($buttonID)) echo "<br> BUTTON : ".$buttonID."<br>";

if (isset($_GET['site']) and $_GET['site'] == "main") {
	$buttonID="main";
	unset($site);
}
print '<br>';
print '<br>';
if (!isset($buttonID))	
	include('main.php');

if($buttonID == "logout"){
	$match=1;
	Session::stop();
	Session::destroy();
	unset($_SESSION["oreon"]);
	
}

if($buttonID == "badconfigmysql"){
	$match=1;
	include('include/configuration/BadMysqlConfiguration.php');
}
if($buttonID == "sms_paiement"){
	$match=1;
	include('include/configuration/BadMysqlConfiguration.php');
}

if($buttonID == "db_mgt"){
	$match=1;
	include('include/divers/DbMgt.php');
}

if($buttonID == "addLoc"){
	$match=1;
	include('include/location/add_location.php');
}

if($buttonID == "add_loc_process"){
	$match=1;
	include('include/location/add_location_process.php');
}


if($buttonID == "change_location"){
	$match=1;
	unset($_POST['LocationChange']);
	include('main.php');
}

if($buttonID == "mod_loc"){
	$match=1;
	include('include/location/modify_location.php');
}

if($buttonID == "adduser"){
	$match=1;
	include('add_user.php');
}

if($buttonID == "showLoc"){
	$match=1;
	include('include/location/ShowLoc.php');
}

if($buttonID == "configuration"){
	$match=1;
	include('include/configuration/Configuration.php');
}	

if($buttonID == "portal_configuration"){
	$match=1;
	include('include/configuration/PortalConfiguration.php');
}
if($buttonID == "paypal"){
	$match=1;
	include('include/divers/insertPaymentTab.php');
}	
if($buttonID == "fck_editor" or $buttonID=='save_template_fck'or $buttonID=='edit_tpl_card' or $buttonID=='new_tpl_card'){
	$match=1;
	include('include/configuration/editor.php');
}

if($buttonID == "general_config" or $buttonID == "saveconfigg"){
	$match=1;
	include('include/configuration/GeneralConfiguration.php');
}
if($buttonID == "radius_config" or $buttonID == "saveconfigr"){
	$match=1;
	include('include/configuration/RadiusConfiguration.php');
}
if($buttonID == "wlogin_config" or $buttonID == "saveconfigw" or $buttonID == "savewloginconfigfile"){
	$match=1;
	include('include/configuration/Wlogin.php');
}
if($buttonID == "images_config"){
	$match=1;
	echo "<script type='text/javascript'>

openwindow=window.open('include/fckeditor/editor/filemanager/browser/default/browser.html?ServerPath=".$images_path."&&Type=Image&Connector=connectors/php/connector.php', 'cards printing', 'width=800,height=600,status=yes,resizable=yes,menubar=yes,scrollbars=yes');
</script>";
}
if($buttonID == "pdf_config" or $buttonID == "saveconfigpdf"){
	$match=1;
	include('include/configuration/Pdf.php');
}
if($buttonID == "ssh_config" or $buttonID=="saveconfigs"){
	$match=1;
	include('include/configuration/SshConfiguration.php');
}
if($buttonID == "mysql_config" or $buttonID == "saveconfigm"){
	$match=1;
	include('include/configuration/MysqlConfiguration.php');
}
if($buttonID == "ap_config" or $buttonID == "saveconfigap"){
	$match=1;
	include('include/configuration/ApConfiguration.php');
}
if($buttonID == "apache_config" or $buttonID == "firewall_config" or  $buttonID == "bind_config"){
	$match=1;
	include('include/configuration/FileConfiguration.php');
	}
if($buttonID == "chilli_config" or $buttonID == "savechilliconfig" or $buttonID == "readchilliconfig"){
		$match=1;
		include('include/configuration/Chillispot.php');
}
if($buttonID == "disconnectuser"){
	$match=1;
	include('include/divers/disconnect_user.php');
}

if ($buttonID == "del_loc")
{
	del_loc($_POST['location_name']);
	unset($_SESSION['locID']);
}

if($buttonID == "location_selected"){
	$match=1;
	include('include/location/location_selected.php');
}
if($buttonID == "cr_accounts"){
	$match=1;
	include('include/account/cr_accounts.php');
}

if($buttonID == "vw_accounts"){
		$match=1;
		include('include/account/vw_accounts.php');
}

//RADIUS PROFILE
if($buttonID == "sql_counter" or $buttonID == "cr_sql_counter" or $buttonID == "mod_sql_counterf"   or $buttonID == "mod_sql_counter" or $buttonID == "save_sql_counterf" ){
		$match=1;
		include('include/radius/SqlCounter.php');
}

if($buttonID == "radius_type" or $buttonID == "save_radius_type"){
		$match=1;
		include('include/radius/RadiusType.php');
}

if($buttonID == "radius_attribute" or $buttonID == "save_radius_attribute"){
		$match=1;
		include('include/radius/RadiusAttribute.php');
}

if($buttonID == "cr_radiusprofile" or $buttonID == "radiusprofile_save"){
		$match=1;
		include('include/radiusprofile/CreateRadiusProfile.php');
}

if($buttonID == "user_radiusprofile" or $buttonID == "user_radiusprofile_save"){
		$match=1;
		include('include/radiusprofile/UserRadiusProfile.php');
}
if($buttonID == "vw_radiusprofile"){
	$match=1;
	if (isset($_GET['rp_id']))
	{
		del_radiusprofile($_GET['rp_id'],$_SESSION['locID']);
		echo "<p class=\"information\">Successfully deleted radius profile </p>";
	}
	include('include/radiusprofile/ShowRadiusProfile.php');

}


if($buttonID == "radiusprofile_selected"  or $buttonID == "radiusprofile_mod"){
	$match=1;
	include('include/radiusprofile/RadiusProfileSelected.php');
}

if($buttonID == "radiusprofile_del"){
	$match=1;
		if (isset($_POST['rp_id']))
		{
		del_radiusprofile($_POST['rp_id'],$_SESSION['locID']);
		echo "<p class=\"information\">Successfully deleted group </p>";
		}
}

//GROUP

if($buttonID == "cr_group" or $buttonID == "group_save"){
		$match=1;
		include('include/group/CreateGroup.php');
}
if($buttonID == "choose_user_group"){
		$match=1;
		include('include/group/UserGroupChoose.php');
}
if($buttonID == "group_del"){
		$match=1;
		if (isset($_POST['gp_id']))
		{
		del_group($_POST['gp_id'],$_SESSION['locID']);
		echo "<p class=\"information\">Successfully deleted group </p>";
		}
}

if($buttonID == "user_group" or $buttonID == "user_group_save"){
		$match=1;
		include('include/group/UserGroup.php');
}

if($buttonID == "vw_group"){
	$match=1;
	if (isset($_GET['gp_id']))
	{
		del_group($_GET['gp_id'],$_SESSION['locID']);
		echo "<p class=\"information\">Successfully deleted group </p>";
	}
	include('include/group/ShowGroup.php');
}


if($buttonID == "group_selected"  or $buttonID == "group_mod"){
	$match=1;
	include('include/group/GroupSelected.php');
}



if($buttonID == "stat"){
	$match=1;
	include('include/statistiques/Statistiques.php');
}

if($buttonID == "accounting"){
	$match=1;
	include('include/statistiques/Accounting.php');
}

if($buttonID == "bp_stat"){
	$match=1;
	include('include/statistiques/BillingPlan.php');
}

if($buttonID == "type_stat"){
	$match=1;
	include('include/statistiques/Type.php');
}

if($buttonID == "stat_button"){
	$match=1;
	include('include/statistiques/Statistiques.php');
}
if($buttonID == "user_stat"){
	$match=1;
	include('include/statistiques/UserStats.php');
}
if($buttonID == "access_stat"){
	$match=1;
	include('include/statistiques/AccessStats.php');
}
if($buttonID == "general_stat"){
	$match=1;
	include('include/statistiques/GeneralStatistiques.php');

}
if($buttonID == "useful_reports"){
	$match=1;
	include('include/reports/UsefulReports.php');
}
if($buttonID == "timed"){
	$match=1;
	include('include/account/prePaidBatch.php');
}
if($buttonID == "octets"){
	$match=1;
	include('include/account/prePaidBatch.php');
}
if($buttonID == "expiration"){
	$match=1;
	include('include/account/prePaidBatch.php');
}

if($buttonID == "DL_BillingPlan"){
	$match=1;
	include('include/billingplan/DeleteBillingPlan.php');
}
if($buttonID == "CR_Timed"){
	$match=1;
	include('include/account/genPrePaidMulti.php');
}
if($buttonID == "CR_Quick"){
	$match=1;
	include('include/account/genPrePaidMulti.php');
}
if($buttonID == "CR_Octets"){
	$match=1;
	include('include/account/genPrePaidMulti.php');
}
if($buttonID == "CR_Expiration"){
	$match=1;
	include('include/account/genPrePaidMulti.php');
}
	

if($buttonID == "CR_subscription_octets" or $buttonID == "CR_subscription_time" or $buttonID == "CR_subscription_expiration" or $buttonID == "CR_subscription_divers" or $buttonID == "CR_subscription_mac"){
	$match=1;
	include('include/account/genPrePaidMulti.php');
}

if($buttonID == "subscription_time"){
	$match=1;
	include('include/account/prePaidBatch.php');
}

if($buttonID == "subscription_octets"){
	$match=1;
	include('include/account/prePaidBatch.php');
}
if($buttonID == "subscription_expiration"){
	$match=1;
	include('include/account/prePaidBatch.php');
}
if($buttonID == "subscription_mac"){
	$match=1;
	include('include/account/prePaidBatch.php');
}
if($buttonID == "subscription_divers"){
	$match=1;
	include('include/account/prePaidBatch.php');
}
//////////////////////////////////////////
//USER MANAGEMENT
//////////////////////////////////////////
//////////////////////////////////////////
if($buttonID == "usermanagement" or $buttonID == "AddUser"  or $buttonID == "ChangeUsers" or $buttonID == "delUser"){
	$match=1;
	include('include/users/usermanagement.php');
}
if($buttonID == "add_user" ){
	$match=1;
	include('include/users/adduser.php');
}
if($buttonID == "mod_user" or $buttonID=="mod_user_form"){
	$match=1;
	include('include/users/modifyuser.php');
}
if($buttonID == "del_user"){
	$match=1;
	include('include/users/deleteuser.php');
}
if($buttonID == "mod_user_loc" or $buttonID == "mod_user_loc_form"  or $buttonID == "add_user_loc" or $buttonID == "del_user_loc" ){
	$match=1;
	include('include/users/managelocation.php');
}

//////////////////////////////////////////
//////////////////////////////////////////
//	BILLING PLAN   //
//////////////////////////////////////////
if($buttonID == "billingplan"){
	$match=1;
	include('include/billingplan/BillingPlan.php');
}
if($buttonID == "add_tp" or $buttonID == "saveaddbp"){
	$match=1;
	
	include('include/billingplan/CreateBillingPlan.php');
}
if($buttonID == "mod_tp"){
	$match=1;
	include('include/billingplan/ModifyBillingPlan.php');
}
if($buttonID == "del_tp"){
				$match=1;
				include('include/billingplan/DeleteBillingPlan.php');
}
if($buttonID == "modbp" or $buttonID == "savemodbp"){
		$match=1;
		include('include/billingplan/BpRadiusProfile.php');
}
if($buttonID == "find_account"){
	$match=1;
	include('include/display/AllCards.php');
}

if($buttonID == "timed_accounts"){
	$match=1;
	include('include/display/AllCards.php');
}
if($buttonID == "octets_accounts"){
	$match=1;
	include('include/display/AllCards.php');
}
if($buttonID == "subscription_time_accounts"){
	$match=1;
	include('include/display/AllCards.php');
}
if($buttonID == "expiration_accounts"){
	$match=1;
	include('include/display/AllCards.php');
}
if($buttonID == "subscription_octets_accounts"){
	$match=1;
	include('include/display/AllCards.php');
}
if($buttonID == "subscription_expiration_accounts"){
	$match=1;
	include('include/display/AllCards.php');
}
if($buttonID == "subscription_mac_accounts"){
	$match=1;
	include('include/display/AllCards.php');
}
if($buttonID == "subscription_divers_accounts"){
	$match=1;
	include('include/display/AllCards.php');
}
if($buttonID == "divers_accounts"){
	$match=1;
	include('include/display/AllCards.php');
}
if($buttonID == "partialy_account"){
	$match=1;
	include('include/display/OtherAccounts.php');
}
if($buttonID == "used_account"){
	$match=1;
	include('include/display/OtherAccounts.php');
}
if($buttonID == "unused_account"){
	$match=1;
	include('include/display/OtherAccounts.php');
}
if($buttonID == "delete_expired_accounts"){
	$match=1;
	include('include/divers/DeleteExpiredAccount.php');
}
if($buttonID == "con_users"){
	$match=1;
	include('include/display/connect.php');
}
if($buttonID == "failedlogins"){
	$match=1;
	include('include/display/FailedLogins.php');
}
if($buttonID == "badusers"){
	$match=1;
	include('include/display/Badusers.php');
}
if($buttonID == "today_users"){
	$match=1;
	include('include/display/OtherAccounts.php');
}
if($buttonID == "week_users"){
	$match=1;
	include('include/display/OtherAccounts.php');
    
}
if($buttonID == "month_users"){
	$match=1;
	include('include/display/OtherAccounts.php');
}
if($buttonID == "addAP"){
	$match=1;
	include('include/ap/addAP.php');
}
if($buttonID == "mod_ap"){
	$match=1;
	include('include/ap/modify_ap.php');
}
if($buttonID == "main"){
	$match=1;
	include('main.php');
}
if ($buttonID=="del_ap") {
	$match=1;
	if (isset($_POST['APID']))
	{
		del_ap($_POST['APID']);
		echo "<p class=\"information\">Successfully deleted nas </p>";
	}
}

if($buttonID == 'AP_selected' or $buttonID == 'show_snmp_ap' or $buttonID == 'show_users_ap'){
	$match=1;
	include('include/ap/AP_selected.php');
}

if($buttonID == 'open_addAP'){
	$match=1;
	include('include/ap/addAP.php');
}

//echo("ADMIN :".$_SESSION['usernamel']); //debug	
if (isset($msg)) {
	echo '<p class="error">'.$msg.'</p>';
	unset($msg);
}
unset($buttonID); // prevents confusion
//////////////////////////////////////////////////////////
//	DEBUG 3/08/05					//
//////////////////////////////////////////////////////////


if(isset($match) and $match !=1) { // if none of the above conditions are met
	include('main.php');
}




?>
	<hr><p></p>

	</div>
</div>
Return current item: phpMyPrepaid