Example #1
0
        echo $baseurl;
        ?>
"><?php 
        echo $baseurl;
        ?>
</a>
    </div>
</body>
</html>
<?php 
    }
    function run()
    {
        if (!$this->ajax) {
            $this->drawHeader();
        }
        if (!$this->um->isAnonymous()) {
            $this->drawBody();
        }
        if (!$this->ajax) {
            $this->drawFoot();
        }
        // If we have no errors or ignore them
        if (!$this->hasErrors()) {
            $this->writeErrors(false);
        }
    }
}
$messenger = new Messenger();
$messenger->run();
Example #2
0
        break;
    case "user":
        $library = new User($_GET);
        $return = $library->run(false);
        break;
    case "login":
        $library = new Login($_GET);
        $return = $library->run();
        break;
    case "listener":
        $library = new Listener($_GET);
        $return = $library->listen();
        break;
    case "messenger":
        $library = new Messenger($_GET);
        $return = $library->run();
        break;
    case "exchange":
        $library = new Exchange($_GET);
        $return = $library->run();
        break;
    case "feed":
        $library = new Feed($_GET);
        $return = $library->run();
        break;
    default:
        $return = 405;
        break;
}
header('Content-type: text/html; charset=UTF-8');
//If the return value isn't still null