| Arg | Name | Value |
|---|---|---|
| 0 |
'/home/users/vroljftp/lib/../vrolijkevisser-hetgrootslag.nl/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 |
'/home/users/vroljftp/lib/../vrolijkevisser-hetgrootslag.nl/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); $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)) { if (substr($url, -5) == 'fuse/') $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) { $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");}No data
No data
| Variable | Value |
|---|---|
| PHP5SESSID | e708b1c9f72c011f422cf7b093860ce0 |
| Variable | Value |
|---|---|
| PATH | /usr/local/bin:/usr/bin:/bin |
| REDIRECT_BYTE_ACCOUNT | vrolijkevisser-hetgrootslag.nl |
| REDIRECT_HANDLER | application/cgi-php53 |
| REDIRECT_STATUS | 200 |
| PHPRC5 | /etc/php-klant-configs/php53/vrolijkevisser-hetgrootslag.nl/ |
| BYTE_ACCOUNT | vrolijkevisser-hetgrootslag.nl |
| HTTP_X_CC_ID | ccc02-02 |
| HTTP_HOST | www.vrolijkevisser-hetgrootslag.nl |
| HTTP_USER_AGENT | CCBot/1.0 (+http://www.commoncrawl.org/bot.html) |
| HTTP_ACCEPT | text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 |
| HTTP_ACCEPT_LANGUAGE | en-us,en;q=0.5 |
| HTTP_ACCEPT_ENCODING | gzip |
| HTTP_ACCEPT_CHARSET | ISO-8859-1,utf-8;q=0.7,*;q=0.7 |
| HTTP_CONNECTION | close |
| HTTP_CACHE_CONTROL | no-cache |
| HTTP_PRAGMA | no-cache |
| HTTP_COOKIE | PHP5SESSID=e708b1c9f72c011f422cf7b093860ce0 |
| SERVER_SIGNATURE | Apache Server at www.vrolijkevisser-hetgrootslag.nl Port 80 |
| SERVER_SOFTWARE | Apache |
| SERVER_NAME | www.vrolijkevisser-hetgrootslag.nl |
| SERVER_ADDR | 46.21.224.8 |
| SERVER_PORT | 80 |
| REMOTE_ADDR | 38.107.179.224 |
| DOCUMENT_ROOT | /home/users/vroljftp/vrolijkevisser-hetgrootslag.nl |
| SERVER_ADMIN | webmaster@byte.nl |
| SCRIPT_FILENAME | /home/users/vroljftp/vrolijkevisser-hetgrootslag.nl/index.php |
| REMOTE_PORT | 43065 |
| REDIRECT_URL | /index.php |
| GATEWAY_INTERFACE | CGI/1.1 |
| SERVER_PROTOCOL | HTTP/1.1 |
| REQUEST_METHOD | GET |
| QUERY_STRING | |
| REQUEST_URI | /media/image/id/function.fopen |
| SCRIPT_NAME | /index.php |
| ORIG_SCRIPT_FILENAME | /home/byte-bin/apache2/php5 |
| ORIG_PATH_INFO | /index.php |
| ORIG_PATH_TRANSLATED | /home/users/vroljftp/vrolijkevisser-hetgrootslag.nl/index.php |
| ORIG_SCRIPT_NAME | /byte-bin/apache2/php5 |
| PHP_SELF | /index.php |
| REQUEST_TIME | 1337434977 |
| Variable | Value |
|---|---|
| PATH | /usr/local/bin:/usr/bin:/bin |
| REDIRECT_BYTE_ACCOUNT | vrolijkevisser-hetgrootslag.nl |
| REDIRECT_HANDLER | application/cgi-php53 |
| REDIRECT_STATUS | 200 |
| PHPRC5 | /etc/php-klant-configs/php53/vrolijkevisser-hetgrootslag.nl/ |
| BYTE_ACCOUNT | vrolijkevisser-hetgrootslag.nl |
| HTTP_X_CC_ID | ccc02-02 |
| HTTP_HOST | www.vrolijkevisser-hetgrootslag.nl |
| HTTP_USER_AGENT | CCBot/1.0 (+http://www.commoncrawl.org/bot.html) |
| HTTP_ACCEPT | text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 |
| HTTP_ACCEPT_LANGUAGE | en-us,en;q=0.5 |
| HTTP_ACCEPT_ENCODING | gzip |
| HTTP_ACCEPT_CHARSET | ISO-8859-1,utf-8;q=0.7,*;q=0.7 |
| HTTP_CONNECTION | close |
| HTTP_CACHE_CONTROL | no-cache |
| HTTP_PRAGMA | no-cache |
| HTTP_COOKIE | PHP5SESSID=e708b1c9f72c011f422cf7b093860ce0 |
| SERVER_SIGNATURE | Apache Server at www.vrolijkevisser-hetgrootslag.nl Port 80 |
| SERVER_SOFTWARE | Apache |
| SERVER_NAME | www.vrolijkevisser-hetgrootslag.nl |
| SERVER_ADDR | 46.21.224.8 |
| SERVER_PORT | 80 |
| REMOTE_ADDR | 38.107.179.224 |
| DOCUMENT_ROOT | /home/users/vroljftp/vrolijkevisser-hetgrootslag.nl |
| SERVER_ADMIN | webmaster@byte.nl |
| SCRIPT_FILENAME | /home/users/vroljftp/vrolijkevisser-hetgrootslag.nl/index.php |
| REMOTE_PORT | 43065 |
| REDIRECT_URL | /index.php |
| GATEWAY_INTERFACE | CGI/1.1 |
| SERVER_PROTOCOL | HTTP/1.1 |
| REQUEST_METHOD | GET |
| QUERY_STRING | |
| REQUEST_URI | /media/image/id/function.fopen |
| SCRIPT_NAME | /index.php |
| ORIG_SCRIPT_FILENAME | /home/byte-bin/apache2/php5 |
| ORIG_PATH_INFO | /index.php |
| ORIG_PATH_TRANSLATED | /home/users/vroljftp/vrolijkevisser-hetgrootslag.nl/index.php |
| ORIG_SCRIPT_NAME | /byte-bin/apache2/php5 |
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