Jelajahi Sumber

Structure Changes

own3mall 9 tahun lalu
induk
melakukan
9a08ec923b

+ 2 - 2
modules/simple-billing/add_to_cart.php

@@ -102,7 +102,7 @@ function exec_ogp_module()
 									   "tax_amount" => $tax_amount,
 									   "currency" => $currency,
 									   "paid" => 0);
-		echo '<meta http-equiv="refresh" content="0;url=?m=billing&amp;p=cart">';
+		echo '<meta http-equiv="refresh" content="0;url=?m=simple-billing&amp;p=cart">';
 	}
 }
-?>
+?>

+ 3 - 3
modules/simple-billing/bill.php

@@ -127,11 +127,11 @@ function exec_ogp_module()
 			  </tr>
 			</table>
 			<br><br>
-			<form method='post' action='?m=billing&p=bill&type=cleared' >
+			<form method='post' action='?m=simple-billing&p=bill&type=cleared' >
 			<input type="hidden" name="cart_id" value="<?php echo $_POST['cart_id'];?>">
 			<input type="submit" value="<?php print_lang('print_invoice') ?>" />
 			</form>
-			<form method='post' action='?m=billing&p=<?php 
+			<form method='post' action='?m=simple-billing&p=<?php 
 			$isAdmin = $db->isAdmin($_SESSION['user_id']);
 			if ($isAdmin)
 			{
@@ -148,4 +148,4 @@ function exec_ogp_module()
 			<br><br><?php
 	}
 }	
-?>
+?>

+ 13 - 13
modules/simple-billing/cart.php

@@ -66,19 +66,19 @@ function exec_ogp_module()
 		
 		if ( !empty( $cart_id ) and isset( $_POST["pay_paypal"] ) and $settings['paypal'] == "1" )
 		{
-			echo '<meta http-equiv="refresh" content="0;url=home.php?m=billing&p=paypal&cart_id='.$cart_id.'" >';
+			echo '<meta http-equiv="refresh" content="0;url=home.php?m=simple-billing&p=paypal&cart_id='.$cart_id.'" >';
 		}
 		elseif ( !empty( $cart_id ) and isset( $_POST["pay_paygol"] ) and $settings['paygol'] == "1" )
 		{
-			echo '<meta http-equiv="refresh" content="0;url=home.php?m=billing&p=paygol&cart_id='.$cart_id.'" >';
+			echo '<meta http-equiv="refresh" content="0;url=home.php?m=simple-billing&p=paygol&cart_id='.$cart_id.'" >';
 		}
 		elseif ( !empty( $cart_id ) and isset( $_POST["pay_skrill"] ) and $settings['skrill'] == "1" )
 		{
-			echo '<meta http-equiv="refresh" content="0;url=home.php?m=billing&p=skrill&cart_id='.$cart_id.'" >';
+			echo '<meta http-equiv="refresh" content="0;url=home.php?m=simple-billing&p=skrill&cart_id='.$cart_id.'" >';
 		}
 		elseif ( !empty( $cart_id ) and isset( $_POST["pay_robokassa"] ) and $settings['robokassa'] == "1" )
 		{
-			echo '<meta http-equiv="refresh" content="0;url=home.php?m=billing&p=robokassa&cart_id='.$cart_id.'" >';
+			echo '<meta http-equiv="refresh" content="0;url=home.php?m=simple-billing&p=robokassa&cart_id='.$cart_id.'" >';
 		}
 	}
 	
@@ -127,19 +127,19 @@ function exec_ogp_module()
 		
 		if ( !empty( $cart_id ) and isset( $_POST["extend_and_pay_paypal"] ) and $settings['paypal'] == "1" )
 		{
-			echo '<meta http-equiv="refresh" content="0;url=home.php?m=billing&p=paypal&cart_id='.$cart_id.'" >';
+			echo '<meta http-equiv="refresh" content="0;url=home.php?m=simple-billing&p=paypal&cart_id='.$cart_id.'" >';
 		}
 		elseif ( !empty( $cart_id ) and isset( $_POST["extend_and_pay_paygol"] ) and $settings['paygol'] == "1" )
 		{
-			echo '<meta http-equiv="refresh" content="0;url=home.php?m=billing&p=paygol&cart_id='.$cart_id.'" >';
+			echo '<meta http-equiv="refresh" content="0;url=home.php?m=simple-billing&p=paygol&cart_id='.$cart_id.'" >';
 		}
 		elseif ( !empty( $cart_id ) and isset( $_POST["extend_and_pay_skrill"] ) and $settings['skrill'] == "1" )
 		{
-			echo '<meta http-equiv="refresh" content="0;url=home.php?m=billing&p=skrill&cart_id='.$cart_id.'" >';
+			echo '<meta http-equiv="refresh" content="0;url=home.php?m=simple-billing&p=skrill&cart_id='.$cart_id.'" >';
 		}
 		elseif ( !empty( $cart_id ) and isset( $_POST["extend_and_pay_robokassa"] ) and $settings['robokassa'] == "1" )
 		{
-			echo '<meta http-equiv="refresh" content="0;url=home.php?m=billing&p=robokassa&cart_id='.$cart_id.'" >';
+			echo '<meta http-equiv="refresh" content="0;url=home.php?m=simple-billing&p=robokassa&cart_id='.$cart_id.'" >';
 		}
 	}
 	
@@ -202,7 +202,7 @@ function exec_ogp_module()
 	{
 		print_failure( get_lang('there_are_no_orders_in_cart') );
 		?>		
-		<a href="?m=billing&p=shop"><?php print_lang('back'); ?></a>
+		<a href="?m=simple-billing&p=shop"><?php print_lang('back'); ?></a>
 		<?php
 		return;
 	}
@@ -367,7 +367,7 @@ function exec_ogp_module()
 			  if($order['paid'] == 1)
 			  {
 			  ?>
-			 <form method="post" action="home.php?m=billing&p=create_servers">
+			 <form method="post" action="home.php?m=simple-billing&p=create_servers">
 			  <input type="hidden" name="cart_id" value="<?php echo $order['cart_id'];?>">
 			  <?php
 			 if($order['extended'] == "1")
@@ -393,7 +393,7 @@ function exec_ogp_module()
 			  elseif($order['paid'] == 3)
 			  {
 			  ?>
-			 <form method="post" action="?m=billing&p=bill">
+			 <form method="post" action="?m=simple-billing&p=bill">
 			  <input type="hidden" name="cart_id" value="<?php echo $order['cart_id'];?>">
 			  <input name="paid" type="submit" value="<?php print_lang("see_invoice");?>">
 			 </form>
@@ -428,7 +428,7 @@ function exec_ogp_module()
 		}
 	}
 	?>		
-	<a href="?m=billing&p=shop"><?php print_lang('back'); ?></a>
+	<a href="?m=simple-billing&p=shop"><?php print_lang('back'); ?></a>
 	<?php
 }
-?>
+?>

+ 2 - 2
modules/simple-billing/create_servers.php

@@ -75,7 +75,7 @@ function exec_ogp_module()
 				
 				//Add Game home to database
 				$rserver = $db->getRemoteServer($remote_server_id);
-				$game_path = "/home/".$rserver['ogp_user']."/OGP_User_Files/billing/";
+				$game_path = "/home/".$rserver['ogp_user']."/OGP_User_Files/simple-billing/";
 				$home_id = $db->addGameHome( $remote_server_id, $user_id, $home_cfg_id, $game_path, $home_name, $remote_control_password, $ftp_password);
 				
 				//Add IP:Port Pair to the Game Home
@@ -266,4 +266,4 @@ function exec_ogp_module()
 		$view->refresh("home.php?m=gamemanager&p=game_monitor");
 	}
 }
-?>
+?>

+ 3 - 3
modules/simple-billing/orders.php

@@ -115,7 +115,7 @@ function exec_ogp_module()
 				elseif($status == "paid")
 				{
 					?>
-					 <form method="post" action="home.php?m=billing&p=create_servers">
+					 <form method="post" action="home.php?m=simple-billing&p=create_servers">
 					  <input type="hidden" name="cart_id" value="<?php echo $order['cart_id'];?>">
 					<?php
 					if($order['extended'] == "1")
@@ -146,7 +146,7 @@ function exec_ogp_module()
 				elseif($status == "paid_and_installed")
 				{
 					?>
-					 <form method="post" action="?m=billing&p=bill">
+					 <form method="post" action="?m=simple-billing&p=bill">
 					  <input type="hidden" name="cart_id" value="<?php echo $order['cart_id'];?>">
 					  <input name="paid" type="submit" value="<?php print_lang("see_invoice");?>">
 					 </form>
@@ -187,4 +187,4 @@ function exec_ogp_module()
 		}
 	}
 }
-?>
+?>

+ 3 - 3
modules/simple-billing/paid-ipn.php

@@ -61,7 +61,7 @@ $to = $ipn['receiver_email'] . ', ' . $ipn['payer_email'];
 
 $body = "<b>PayPal Payment For <a href='".
 		$current_folder_url.
-		"../../index.php?m=billing&p=shop_guest' >".
+		"../../index.php?m=simple-billing&p=shop_guest' >".
 		$panel_name."</a></b><br><br>".
 		"<h2>Order</h2>".
 		"- Item: ".$ipn['item_name']."<br>".
@@ -139,7 +139,7 @@ if ($verified AND isset( $ipn['payment_status'] ) )
 			$subject = "Error: Incorrect payment amount";
 			$body = "<b>PayPal Payment For <a href='".
 					$current_folder_url.
-					"../../index.php?m=billing&p=shop_guest' >".
+					"../../index.php?m=simple-billing&p=shop_guest' >".
 					$panel_name."</a></b><br><br>".
 					"<h2>Order</h2>".
 					"- Item: ".$ipn['item_name']."<br>".
@@ -305,4 +305,4 @@ if ($verified AND isset( $ipn['payment_status'] ) )
 	mymail($to, $subject, $body, $panel_settings);
 }
 
-?>
+?>

+ 1 - 1
modules/simple-billing/paid.php

@@ -13,6 +13,6 @@ function exec_ogp_module()
 	{
 		echo "<html><head><title>Reversed OR Refunded</title></head><body><h4>Reversed OR Refunded</h4>";
 	}
-	echo "<meta HTTP-EQUIV='REFRESH' content='2; url=?m=billing&p=cart'>";
+	echo "<meta HTTP-EQUIV='REFRESH' content='2; url=?m=simple-billing&p=cart'>";
 }
 ?>

+ 5 - 5
modules/simple-billing/paygol.php

@@ -37,7 +37,7 @@ function exec_ogp_module()
 				$db->query("UPDATE " . $table_prefix . "billing_carts
 												SET paid=1
 												WHERE cart_id=".$cart_id);
-				$view->refresh("home.php?m=billing&p=cart",0);
+				$view->refresh("home.php?m=simple-billing&p=cart",0);
 			}
 			else
 			{
@@ -53,9 +53,9 @@ function exec_ogp_module()
 					 ' <input type="hidden" name="pg_name" value=\''.$cart['name'].'\'>'."\n".
 					 ' <input type="hidden" name="pg_custom" value="'.$cart_id.'">'."\n".
 					 ' <input type="hidden" name="pg_price" value="'.number_format( $total , 2 ).'">'."\n".
-					 ' <input type="hidden" name="pg_return_url" value="'.urlencode($this_script.'?m=billing&p=cart').'">'."\n".
-					 ' <input type="hidden" name="pg_cancel_url" value="'.$this_script.'?m=billing&p=cart">'."\n".
-					 ' <input type="hidden" name="pg_notify_url" value="'.$current_folder_url.'modules/billing/paygol-ipn.php">'."\n".
+					 ' <input type="hidden" name="pg_return_url" value="'.urlencode($this_script.'?m=simple-billing&p=cart').'">'."\n".
+					 ' <input type="hidden" name="pg_cancel_url" value="'.$this_script.'?m=simple-billing&p=cart">'."\n".
+					 ' <input type="hidden" name="pg_notify_url" value="'.$current_folder_url.'modules/simple-billing/paygol-ipn.php">'."\n".
 					 ' <input type="image" name="pg_button" class="paygol" src="http://www.paygol.com/micropayment/img/buttons/150/black_en_pbm.png"'.
 					 ' border="0" onClick="pg_reDirect(this.form)">'."\n".
 					 '</form>';
@@ -63,4 +63,4 @@ function exec_ogp_module()
 		}
 	}
 }
-?>
+?>

+ 5 - 5
modules/simple-billing/paypal.php

@@ -32,7 +32,7 @@ function exec_ogp_module()
 				$db->query("UPDATE " . $table_prefix . "billing_carts
 												SET paid=1
 												WHERE cart_id=".$cart_id);
-				$view->refresh("home.php?m=billing&p=cart",0);
+				$view->refresh("home.php?m=simple-billing&p=cart",0);
 			}
 			else
 			{
@@ -59,9 +59,9 @@ function exec_ogp_module()
 				
 				$p->add_field('business', $receiver_email);
 				$p->add_field('currency_code', $settings['currency']);
-				$p->add_field('return', $this_script.'?m=billing&p=paid');
-				$p->add_field('cancel_return', $this_script.'?m=billing&p=cart');
-				$p->add_field('notify_url', $current_folder_url.'modules/billing/paid-ipn.php');
+				$p->add_field('return', $this_script.'?m=simple-billing&p=paid');
+				$p->add_field('cancel_return', $this_script.'?m=simple-billing&p=cart');
+				$p->add_field('notify_url', $current_folder_url.'modules/simple-billing/paid-ipn.php');
 				$p->add_field('item_name', $cart['name']);
 				$p->add_field('item_number', $cart_id);
 				$p->add_field('amount', number_format( $total , 2 ));
@@ -73,4 +73,4 @@ function exec_ogp_module()
 		}
 	}
 }
-?>
+?>

+ 2 - 2
modules/simple-billing/robokassa.php

@@ -35,7 +35,7 @@ function exec_ogp_module()
 				$db->query("UPDATE " . $table_prefix . "billing_carts
 												SET paid=1
 												WHERE cart_id=".$cart_id);
-				$view->refresh("home.php?m=billing&p=cart",0);
+				$view->refresh("home.php?m=simple-billing&p=cart",0);
 			}
 			else
 			{
@@ -61,4 +61,4 @@ function exec_ogp_module()
 		}
 	}
 }
-?>
+?>

+ 3 - 3
modules/simple-billing/settings.php

@@ -253,7 +253,7 @@ function exec_ogp_module()
 		}
         $db->setSettings($settings);
         print_success(get_lang('settings_updated'));
-        $view->refresh("?m=billing&p=shop_settings");
+        $view->refresh("?m=simple-billing&p=shop_settings");
         return;
     }
 	
@@ -261,7 +261,7 @@ function exec_ogp_module()
 	$p = isset($_SERVER['SERVER_PORT']) & $_SERVER['SERVER_PORT'] != "80" ? ":".$_SERVER['SERVER_PORT'] : NULL ;
 	$this_script = 'http'.$s.'://'.$_SERVER['SERVER_NAME'].$p.$_SERVER['SCRIPT_NAME'];
 	$current_folder_url = str_replace( curPageName(), "", $this_script);
-	$robokassa_Result_URL = $current_folder_url.'modules/billing/robokassa-ipn.php';
+	$robokassa_Result_URL = $current_folder_url.'modules/simple-billing/robokassa-ipn.php';
 	
     echo "<style>
 		  h4{
@@ -283,7 +283,7 @@ function exec_ogp_module()
     echo "<h2>".get_lang('shop_settings')."</h2>";
 	print_failure($_SESSION['err_str']);
     $ft = new FormTable();
-    $ft->start_form("?m=billing&p=shop_settings");
+    $ft->start_form("?m=simple-billing&p=shop_settings");
     $ft->start_table();
 	echo "<tr><td colspan='2' ><h4>".get_lang('payment_gateway')."</h4></td></tr>";
 	$ft->add_custom_field('paypal','<input type="checkbox" name="paypal" value="1" '.checked('paypal').'/>');

+ 4 - 4
modules/simple-billing/shop.php

@@ -41,7 +41,7 @@ function exec_ogp_module()
 	<table class="center">
 	<tr>
 	<td>
-	<a href="?m=billing&p=cart"><img SRC="images/cart.png" BORDER="0" WIDTH=22 HEIGHT=20/><?php print_lang('your_cart');?></a>
+	<a href="?m=simple-billing&p=cart"><img SRC="images/cart.png" BORDER="0" WIDTH=22 HEIGHT=20/><?php print_lang('your_cart');?></a>
 	</td>
 	</tr>
 	<tr>
@@ -149,7 +149,7 @@ function exec_ogp_module()
 			?>
 			</div>
 			<table style="width:420px;float:left;">
-			<form method="post" action="?m=billing&p=add_to_cart<?php if(isset($_POST['service_id'])) echo "&service_id=".$_POST['service_id'];?>">
+			<form method="post" action="?m=simple-billing&p=add_to_cart<?php if(isset($_POST['service_id'])) echo "&service_id=".$_POST['service_id'];?>">
 			<tr>
 			<td align="right"><?php print_lang('service_name');?> ::</td>
 			<td align="left">
@@ -235,7 +235,7 @@ function exec_ogp_module()
 			</tr>
 			<tr>
 			<td align="left" colspan="2">
-			<form action ="?m=billing&p=shop" method="POST">
+			<form action ="?m=simple-billing&p=shop" method="POST">
 			  <button><< <?php print_lang('back_to_list');?></button>
 			</form>
 			</td>
@@ -248,4 +248,4 @@ function exec_ogp_module()
 	</div>
 	<?php  
 }
-?>
+?>

+ 4 - 4
modules/simple-billing/skrill.php

@@ -35,7 +35,7 @@ function exec_ogp_module()
 				$db->query("UPDATE " . $table_prefix . "billing_carts
 												SET paid=1
 												WHERE cart_id=".$cart_id);
-				$view->refresh("home.php?m=billing&p=cart",0);
+				$view->refresh("home.php?m=simple-billing&p=cart",0);
 			}
 			else
 			{
@@ -61,8 +61,8 @@ function exec_ogp_module()
 				}
 								
 				$url = "https://www.moneybookers.com/app/payment.pl";
-				$ipn_url = $current_folder_url.'modules/billing/skrill-ipn.php';
-				$return_url = $current_folder_url.'home.php?m=billing&p=cart';
+				$ipn_url = $current_folder_url.'modules/simple-billing/skrill-ipn.php';
+				$return_url = $current_folder_url.'home.php?m=simple-billing&p=cart';
 				$amount = number_format( $total , 2 );
 				
 				$fields = array(
@@ -103,4 +103,4 @@ function exec_ogp_module()
 		}
 	}
 }
-?>
+?>