| Arg | Name | Value |
|---|---|---|
| 0 |
'/var/www/vhosts/www.paswerk.nl/lib/../HTML/upload/'
|
public function __construct($file_original) { $this->clear(); // new image is initialized, clear all values // Check if there actually is a file if(file_exists($file_original)) { $this->file_original = $file_original; $this->image_original = $this->imagecreatefromfile($file_original); if(!$this->image_original) { throw new Error("Image is not created ImageCreate(), GD2 suppor is OFF, install GD2 (http://www.boutell.com/gd/)."); } // No image exists, throw an error| Arg | Name | Value |
|---|---|---|
| 0 |
'/var/www/vhosts/www.paswerk.nl/lib/../HTML/upload/'
|
public function image($params) { // Zet de presenter op Image zodat er een afbeelding naar de browser wordt geoutput $this->presenter = "Image"; $mediaLibrary = new Model_MediaLibrary(); // hoogte en breedte bepalen $width = 0; $height = 0; $mode = "-"; if(isset($params['w'])) { $width = $params['w']; } if(isset($params['h'])) { $height = $params['h']; } if(isset($params['w']) && isset($params['h'])) { $mode = "0"; } if(isset($params['id'])) { // Als er een id is opgegeven haal deze dan op $file = $mediaLibrary->getFileInfo($params['id']); $thumb_file = $this->config->path->upload . $file['file_name']; $filename = $params['id'] . "-$width-$height." . $file['file_extension']; } elseif(isset($params['file'])) { // Als er een filename is opgegeven haal deze dan op $filename = explode(".", $params['file']); $dir = ""; if(isset($params['dir'])) { $dir = $params['dir']; } $params['file'] = str_replace('%20', ' ',$params['file']); $thumb_file = $this->config->path->upload . $dir . "/" . $params['file']; $filename[0] = str_replace('%20', ' ',$filename[0]); $filename = $filename[0] . "-$width-$height." . $filename[1]; } else { // Er is geen afbeelding opgegeven throw new Error("Er is geen afbeelding opgegeven"); } // Als de thumbnail al bestaat haal dan de thumbnail op if(file_exists($this->config->path->upload . "thumbs/" . $filename)) { $thumbnail = new Image($this->config->path->upload . "thumbs/" . $filename); } else { // Kijk of de thumbnail directory schrijfbaar is if (!is_writeable($this->config->path->upload . "thumbs")) { throw new Exception('Cannot write to thumbnail directory'); } // Genereer een thumbnail $thumbnail = new Image($thumb_file); $thumbnail->resize($width, $height, $mode); $thumbnail->output_manipulated($this->config->path->upload . "thumbs/" . $filename); }| Arg | Name | Value |
|---|---|---|
| 0 |
array ( |
public function dispatch() { /** * Haal de request uri op */ $path = $_SERVER['REQUEST_URI']; /** * Strip de base request uri van de base uri */ if(substr($this->config->base->uri, 0, 7) == "http://") { $url = substr($this->config->base->uri, 7); if (substr($this->config->base->uri, -5) == "fuse/") $url = strstr($url, "/"); } /** * Extract het path van de request_uri zodat alleen de parameters overblijven * * www.diffuse.nl/controller-name/action-name/key/value/key/value */ if(strlen($url) > 0) { if(strstr($path, $url)) { $path = str_replace($url, "", $path); } } /** * Verwijder alles wat achter het ? staat. Dit wordt opgevangen * in de $_GET */ if (strstr($path, '?')) { $path = substr($path, 0, strpos($path, '?')); } $path = explode('/', trim($path, '/')); /** * De controller is altijd het eerste stuk van de URI, en de * actie altijd het tweede stuk * * www.diffuse.nl/controller-name/action-name/ */ $a = 2; $language = ''; $controller = $path[0]; $action = isset($path[1]) ? $path[1] : null; if (strlen($controller) == 2 || $controller == "informant") { $a = 3; $language = $path[0]; $controller = isset($path[1]) ? $path[1] : null; $action = isset($path[2]) ? $path[2] : null; } /** * Als er geen controller is opgegeven wordt indexController::__default() gebruikt */ if (!strlen($controller)) { $controller = 'index'; $action = '__default'; } /** * Als er geen actie is opgegeven wordt standaard __default gebruikt */ if(!strlen($action)) { $action = '__default'; } /** * Alle optionele parameters achter de actie worden * opgeslagen in een array met key/value pairs: * * www.diffuse.nl/controller-name/action-name/key/value/key2/value2 * * $params = array( * ['key'] => ['value'] * ['key2'] => ['value'] * ); * */ $params = array(); for ($i=$a; $i<sizeof($path); $i=$i+2) { $params[$path[$i]] = isset($path[$i+1]) ? $path[$i+1] : null; } /** * Als $need_login op true staat en ik ben nog niet ingelogd redirect dan naar * /user/login */ if($this->need_login == true) { if($this->user->getId() == 0 || $this->session->valid_script != $_SERVER['SCRIPT_FILENAME']) { $controller = 'user'; $action = 'login'; $params['redirect'] = implode("/", $path); } } if(isset($controller)) { /** * De controller klasse wordt opgebouwd uit de naam + Controller * menu => menuController */ $class = $controller."Controller"; /** * Kijk of de controller aanwezig is in de frontControllers map of * in de module map */ $controllerFile = $this->config->path->controllers . $this->config->site->name . 'Controllers/'. $controller.'Controller.php'; $moduleFile = $this->config->path->modules . $controller . '/controllers/' . $this->config->site->name . 'Controllers/' . $controller.'Controller.php'; if (file_exists($controllerFile)) { $classFile = $controllerFile; } elseif(file_exists($moduleFile)) { $classFile = $moduleFile; } else { $class = 'indexController'; $controllerFile = $this->config->path->controllers . $this->config->site->name . 'Controllers/indexController.php'; $classFile = $controllerFile; } /** * Laad de controller file */ Framework::loadFile($classFile); if (class_exists($class)) { /** * Maak een nieuwe instantie aan van de klasse */ try { $instance = new $class(); /** * Zet de action in de data variabele */ $instance->setData('controller', $controller); $instance->setData('action', $action); try { /** * Kijk of de aangeroepen actie bestaat */ if(!method_exists($instance, $action)) { /** * Als de actie niet bestaat redirect dan naar __default. */ $action = "__default"; } /** * Kijk of de actie aangeroepen kan worden (en dus public is) */ if(!in_array($action, get_class_methods($instance))) { throw new Error("Method not callable"); } /** * Roep de functie aan en stuur de parameters mee */ $result = $instance->$action($params); } catch (Database_Query_Error $error) { $error->viewException(); die();}$controller = Controller_Front::singleton($config) ->setLogin(false) ->dispatch();if ($config->debug){ $bench->stopBenchmark("Laatste");}| Arg | Name | Value |
|---|---|---|
| 0 |
'/var/www/vhosts/www.paswerk.nl/HTML/index1.php'
|
header("Location: http://thuis.paswerk.nl:81/"); break;default: include 'index1.php';}?>No data
No data
| Variable | Value |
|---|---|
| PHPSESSID | g63ecmdli2n5mlbg2tks7g5767 |
| Variable | Value |
|---|---|
| DOCUMENT_ROOT | /var/www/vhosts/www.paswerk.nl/HTML/ |
| GATEWAY_INTERFACE | CGI/1.1 |
| HTTP_ACCEPT | text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 |
| HTTP_ACCEPT_CHARSET | ISO-8859-1,utf-8;q=0.7,*;q=0.7 |
| HTTP_ACCEPT_ENCODING | gzip |
| HTTP_ACCEPT_LANGUAGE | en-us,en;q=0.5 |
| HTTP_CACHE_CONTROL | no-cache |
| HTTP_CONNECTION | close |
| HTTP_COOKIE | PHPSESSID=g63ecmdli2n5mlbg2tks7g5767 |
| HTTP_HOST | www.paswerk.nl |
| HTTP_PRAGMA | no-cache |
| HTTP_USER_AGENT | CCBot/1.0 (+http://www.commoncrawl.org/bot.html) |
| HTTP_X_CC_ID | ccc02-02 |
| PATH | /bin |
| PHPRC | /var/www/hosting/php/www.paswerk.nl/php5 |
| QUERY_STRING | |
| REDIRECT_SCRIPT_URI | http://www.paswerk.nl/media/image/id/function.session-start |
| REDIRECT_SCRIPT_URL | /media/image/id/function.session-start |
| REDIRECT_STATUS | 200 |
| REDIRECT_UNIQUE_ID | UEg3ItTM-moAAA2wyWwAAAAM |
| REDIRECT_URL | /media/image/id/function.session-start |
| REMOTE_ADDR | 38.107.179.223 |
| REMOTE_PORT | 36175 |
| REQUEST_METHOD | GET |
| REQUEST_URI | /media/image/id/function.session-start |
| SCRIPT_FILENAME | /var/www/vhosts/www.paswerk.nl/HTML/index.php |
| SCRIPT_NAME | /index.php |
| SCRIPT_URI | http://www.paswerk.nl/media/image/id/function.session-start |
| SCRIPT_URL | /media/image/id/function.session-start |
| SERVER_ADDR | 213.206.68.177 |
| SERVER_ADMIN | webmaster@paswerk.nl |
| SERVER_NAME | www.paswerk.nl |
| SERVER_PORT | 80 |
| SERVER_PROTOCOL | HTTP/1.1 |
| SERVER_SIGNATURE | Apache Server at www.paswerk.nl Port 80 |
| SERVER_SOFTWARE | Apache |
| UNIQUE_ID | UEg3ItTM-moAAA2wyWwAAAAM |
| PHP_SELF | /index.php |
| REQUEST_TIME | 1337333903 |
| Variable | Value |
|---|---|
| DOCUMENT_ROOT | /var/www/vhosts/www.paswerk.nl/HTML/ |
| GATEWAY_INTERFACE | CGI/1.1 |
| HTTP_ACCEPT | text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 |
| HTTP_ACCEPT_CHARSET | ISO-8859-1,utf-8;q=0.7,*;q=0.7 |
| HTTP_ACCEPT_ENCODING | gzip |
| HTTP_ACCEPT_LANGUAGE | en-us,en;q=0.5 |
| HTTP_CACHE_CONTROL | no-cache |
| HTTP_CONNECTION | close |
| HTTP_COOKIE | PHPSESSID=g63ecmdli2n5mlbg2tks7g5767 |
| HTTP_HOST | www.paswerk.nl |
| HTTP_PRAGMA | no-cache |
| HTTP_USER_AGENT | CCBot/1.0 (+http://www.commoncrawl.org/bot.html) |
| HTTP_X_CC_ID | ccc02-02 |
| PATH | /bin |
| PHPRC | /var/www/hosting/php/www.paswerk.nl/php5 |
| QUERY_STRING | |
| REDIRECT_SCRIPT_URI | http://www.paswerk.nl/media/image/id/function.session-start |
| REDIRECT_SCRIPT_URL | /media/image/id/function.session-start |
| REDIRECT_STATUS | 200 |
| REDIRECT_UNIQUE_ID | UEg3ItTM-moAAA2wyWwAAAAM |
| REDIRECT_URL | /media/image/id/function.session-start |
| REMOTE_ADDR | 38.107.179.223 |
| REMOTE_PORT | 36175 |
| REQUEST_METHOD | GET |
| REQUEST_URI | /media/image/id/function.session-start |
| SCRIPT_FILENAME | /var/www/vhosts/www.paswerk.nl/HTML/index.php |
| SCRIPT_NAME | /index.php |
| SCRIPT_URI | http://www.paswerk.nl/media/image/id/function.session-start |
| SCRIPT_URL | /media/image/id/function.session-start |
| SERVER_ADDR | 213.206.68.177 |
| SERVER_ADMIN | webmaster@paswerk.nl |
| SERVER_NAME | www.paswerk.nl |
| SERVER_PORT | 80 |
| SERVER_PROTOCOL | HTTP/1.1 |
| SERVER_SIGNATURE | Apache Server at www.paswerk.nl Port 80 |
| SERVER_SOFTWARE | Apache |
| UNIQUE_ID | UEg3ItTM-moAAA2wyWwAAAAM |
X-Powered-By: PHP/5.2.17
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-type: text/html