Example #1
0
function helpOpenShop($fid, $pid, $ot)
{
    $obj = array('uid' => $pid, 'lid' => $fid, 'frd' => $_REQUEST['frd'], 'type' => 1, 'clickTime' => 0, 'count' => 0, 'oid' => $ot, 'date' => date('Ymd'), 'rcv' => array($pid => 1));
    $tt = TT::LinkTT();
    $id = $tt->put($obj);
    //print_r($tt->getbyuidx('lid',$fid));
    changeUser($pid);
}
Example #2
0
function shareGoldCoin()
{
    $key = $_POST['fid'];
    $obj = array('id' => $key, 'type' => 1, 'clickTime' => 0, 'count' => 0, 'rcv' => array());
    $tt = TT::TTWeb();
    $tt->puto($obj);
    changeUser();
}
    echo $display;
} else {
    if (isset($_GET['newName'])) {
        $display = deleteNewUserName($_GET['newName']);
        echo $display;
    } else {
        if (isset($_GET['newDao'])) {
            $display = deleteNewDao($_GET['newDao']);
            echo $display;
        } else {
            if (isset($_GET['newHos'])) {
                $display = deleteNewHos($_GET['newHos']);
                echo $display;
            } else {
                if (isset($_GET['chgUser'])) {
                    $display = changeUser($_GET['chgUser']);
                    echo $display;
                } else {
                    if (isset($_GET['appUser'])) {
                        $display = approveUser($_GET['appUser']);
                        echo $display;
                    } else {
                        if (isset($_GET['appDao'])) {
                            $display = approveDao($_GET['appDao']);
                            echo $display;
                        } else {
                            if (isset($_GET['appHos'])) {
                                $display = approveHos($_GET['appHos']);
                                echo $display;
                            } else {
                                ?>
        echo view_cursos($admin_id);
        break;
    case 'view_admin_cursos':
        echo view_admin_cursos($admin_id);
        break;
    case 'I':
        echo add_admin();
        break;
    case 'U':
        echo edit_admin($admin_id);
        break;
    case 'D':
        echo delete_admin($admin_id);
        break;
    case 'changeUser':
        echo changeUser($admin_id);
        break;
    case 'changePass':
        echo changePass($admin_id);
        break;
}
function add_admin()
{
    $usu = $_REQUEST['usu'];
    $pass = $_REQUEST['pass'];
    $email = $_REQUEST['email'];
    //ECHO's
    //echo "usu: ".$usu."<br />";
    //echo "pass: "******"<br />";
    //echo "email: ".$email."<br />";
    $SQL = "INSERT INTO administrador (usu, pass, comentario, email, created) VALUES ('{$usu}', '{$pass}', '{$comment}', '{$email}', current_timestamp);";