Esempio n. 1
0
<?php

include_once "Api/user.php";
include_once "Api/tweet.php";
include_once "Api/dbhandle.php";
include_once "Api/profile.php";
include_once "Api/list.php";
include_once "Api/message.php";
include_once "Api/admin.php";
$obj = new simulator();
$obj->welcome();
class simulator
{
    public function __construct()
    {
        //  $this->setting();
        $twt = new tweet();
    }
    public function wrongLogin()
    {
        echo "Please Re-Enter Your Credentials\n";
        $this->loginInfo();
    }
    function tweetInput($verify)
    {
        $pic = new photo();
        $twt = new tweet();
        $dbh = new dbHandler();
        $handle = fopen("php://stdin", "r");
        echo "Write your Tweet\n ";
        $tweet = fgets($handle);