Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
49 lines (45 sloc) 1.45 KB
<?php
class NotAuthorized extends Exception {}
class InvalidInput extends Exception {}
class NotImplemented extends Exception {
private $functionName;
public function __construct( $function = '(unknown method)' ) {
$this->functionName = $function;
parent::__construct( 'Not implemented', 0, null );
}
public function getFunctionName() {
return $this->functionName;
}
}
class RedirectException extends Exception {
private $url;
public function getURL() {
return $this->url;
}
public function __construct( $url ) {
$this->url = $url;
parent::__construct( 'URL exception', 0, null );
}
}
session_start();
set_include_path( get_include_path() . PATH_SEPARATOR . '/home/dionyziz/life/models/ZendGdata/library' );
function Redirect( $url = '' ) {
throw new RedirectException( $url );
}
function view( $path, $variables = false) {
if ( $variables === false ) {
$variables = array();
}
extract( $variables );
include 'views/header.php';
include 'views/' . $path . '.php';
include 'views/footer.php';
}
global $settings;
$settings = include 'settings.php';
include 'models/db.php';
include 'models/user.php';
include 'models/post.php';
include 'models/photo.php';
include 'models/hash.php';
?>
Something went wrong with that request. Please try again.