示例#1
0
<?php

include_once '../scripts/conf.php';
include_once '../scripts/check_auth.php';
include_once '../scripts/function.inc.php';
?>

<?php 
$url = $_SERVER['PHP_SELF'];
$user = $_SESSION['login_user'];
switch ($_POST['action']) {
    case 'change':
        balance_change($connection, $user);
        break;
    case 'transfer':
        money_transfer($connection, $user);
        break;
    default:
        break;
}
?>

<html lang="en">
<head>
	<meta charset="UTF-8">
	<link rel="stylesheet" type="text/css" href="../css/style.css">
	<title>Текущий баланс</title>
	<?php 
include '../scripts/header.php';
?>
</head>
示例#2
0
<?php

include_once '../scripts/conf.php';
include_once '../scripts/check_auth.php';
include_once '../scripts/function.inc.php';
?>

<?php 
$url = $_SERVER['PHP_SELF'];
switch ($_POST['action']) {
    case 'change':
        balance_change($connection);
        break;
    case 'transfer':
        money_transfer($connection);
        break;
    default:
        break;
}
?>

<html lang="en">
<head>
	<meta charset="UTF-8">
	<link rel="stylesheet" type="text/css" href="../css/style.css">
	<title>Текущий баланс</title>
	<?php 
include '../scripts/header.php';
?>
</head>
<body>