Пример #1
0
 * User: Family
 * Date: 29.06.2015
 * Time: 13:50
 */
require_once 'config/database.php';
require_once 'models/Connector.php';
require_once 'models/Tables.php';
require_once 'models/Create_DB.php';
$dbCreate = new Create_DB();
$dblink = $dbCreate->dbConnect();
if (isset($_POST['create_db'])) {
    $dbCreate->dbCreate($dblink);
}
$dbConnect = new Connector();
$dbTables = new Tables();
$link = $dbConnect->Connect();
if (isset($_POST['tab_ul'])) {
    $dbTables->table_userList($link);
}
if (isset($_POST['tab_t_sprav'])) {
    $dbTables->table_t_sprav($link);
}
if (isset($_POST['tab_reg_l'])) {
    $dbTables->table_region_list($link);
}
if (isset($_POST['tab_goods'])) {
    $dbTables->table_goods($link);
}
//$dbConnect->Disconnect($link);
?>
<link rel="stylesheet" type="text/css" href="styless.css">
Пример #2
0
<?php

$datos = array("username" => "*****@*****.**", "password" => "password", "platform" => "xbox360", "hash" => "md5hash");
$connector = new Connector($datos);
$con = $connector->Connect();
echo "NUCLEUS ID: " . $con["nucleusId"];
echo "<br><br>";
echo "SID: " . $con["sessionId"];
echo "<br><br>";
echo "TOKEN: " . $con["phishingToken"];