MODPATH/captcha/classes/Captcha.php [ 303 ]
298 * @return void
299 */
300 public function image_create($background = NULL) {
301 // Check for GD2 support
302 if (!function_exists('imagegd2'))
303 throw new Kohana_Exception('captcha.requires_GD2');
304
305 // Create a new image (black)
306 $this->image = imagecreatetruecolor(Captcha::$config['width'], Captcha::$config['height']);
307
308 // Use a background image
-
MODPATH/captcha/classes/Captcha/Basic.php [ 36 ] » Captcha->image_create()
31 * @return mixed 32 */ 33 public function render($html = TRUE) 34 { 35 // Creates $this->image 36 $this->image_create(Captcha::$config['background']); 37 38 // Add a random gradient 39 if (empty(Captcha::$config['background'])) 40 { 41 $color1 = imagecolorallocate($this->image, mt_rand(200, 255), mt_rand(200, 255), mt_rand(150, 255)); -
APPPATH/views/home/contact.php [ 68 ] » Captcha_Basic->render()
63 </div> 64 <div class="col-lg-3 col-md-3"> 65 <div class="contact__form--list mb-20"> 66 <label class="contact__form--label" for="captcha">Mã xác nhận <span class="contact__form--label__star">*</span></label> 67 <div id="captcha_content"> 68 <?= Captcha::instance()->render() ?> 69 </div> 70 </div> 71 </div> 72 <div class="col-lg-9 col-md-9"> 73 <div class="contact__form--list mb-20"> -
SYSPATH/classes/Kohana/View.php [ 61 ] » include(arguments)
0string(55) "/var/www/beri/source/application/views/home/contact.php"56 ob_start(); 57 58 try 59 { 60 // Load the view within the current scope 61 include $kohana_view_filename; 62 } 63 catch (Exception $e) 64 { 65 // Delete the output buffer 66 ob_end_clean(); -
SYSPATH/classes/Kohana/View.php [ 348 ] » Kohana_View::capture()
343 { 344 throw new View_Exception('You must set the file to use within your view before rendering'); 345 } 346 347 // Combine local and global data and capture the output 348 return View::capture($this->_file, $this->_data); 349 } 350 351 } // End View -
SYSPATH/classes/Kohana/View.php [ 228 ] » Kohana_View->render()
223 */ 224 public function __toString() 225 { 226 try 227 { 228 return $this->render(); 229 } 230 catch (Exception $e) 231 { 232 /** 233 * Display the exception message. -
APPPATH/template/portal/default/layout.php [ 2 ] » Kohana_View->__toString()
1 <?php echo View::factory('../template/' . $template . '/header')->render(); ?> 2 <?= $content ?> 3 <?php echo View::factory('../template/' . $template . '/footer')->render(); ?> -
SYSPATH/classes/Kohana/View.php [ 61 ] » include(arguments)
0string(67) "/var/www/beri/source/application/template/portal/default/layout.php"56 ob_start(); 57 58 try 59 { 60 // Load the view within the current scope 61 include $kohana_view_filename; 62 } 63 catch (Exception $e) 64 { 65 // Delete the output buffer 66 ob_end_clean(); -
SYSPATH/classes/Kohana/View.php [ 348 ] » Kohana_View::capture()
343 { 344 throw new View_Exception('You must set the file to use within your view before rendering'); 345 } 346 347 // Combine local and global data and capture the output 348 return View::capture($this->_file, $this->_data); 349 } 350 351 } // End View -
APPPATH/template/master.php [ 65 ] » Kohana_View->render()
60 61 62 63 </head> 64 <body> 65 <?php echo View::factory('../template/' . $template . '/' . $layout)->set('content', $content)->render(); ?> 66 <?php foreach ($array_script as $script) : ?> 67 <script src="<?php echo $url_base_theme; ?>/js/<?php echo $script; ?>.js?p=<?= uniqid() ?>" ></script> 68 <?php endforeach; ?> 69 </body> 70 </html> -
SYSPATH/classes/Kohana/View.php [ 61 ] » include(arguments)
0string(52) "/var/www/beri/source/application/template/master.php"56 ob_start(); 57 58 try 59 { 60 // Load the view within the current scope 61 include $kohana_view_filename; 62 } 63 catch (Exception $e) 64 { 65 // Delete the output buffer 66 ob_end_clean(); -
SYSPATH/classes/Kohana/View.php [ 348 ] » Kohana_View::capture()
343 { 344 throw new View_Exception('You must set the file to use within your view before rendering'); 345 } 346 347 // Combine local and global data and capture the output 348 return View::capture($this->_file, $this->_data); 349 } 350 351 } // End View -
SYSPATH/classes/Kohana/Controller/Template.php [ 44 ] » Kohana_View->render()
39 */ 40 public function after() 41 { 42 if ($this->auto_render === TRUE) 43 { 44 $this->response->body($this->template->render()); 45 } 46 47 parent::after(); 48 } 49 -
SYSPATH/classes/Kohana/Controller.php [ 87 ] » Kohana_Controller_Template->after()
82 83 // Execute the action itself 84 $this->{$action}(); 85 86 // Execute the "after action" method 87 $this->after(); 88 89 // Return the response 90 return $this->response; 91 } 92 -
{PHP internal call} » Kohana_Controller->execute()
-
SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke()
92 93 // Create a new instance of the controller 94 $controller = $class->newInstance($request, $response); 95 96 // Run the controller's execute() method 97 $response = $class->getMethod('execute')->invoke($controller); 98 99 if ( ! $response instanceof Response) 100 { 101 // Controller failed to return a Response. 102 throw new Kohana_Exception('Controller failed to return a Response'); -
SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request()
109 $orig_response = $response = Response::factory(); 110 111 if (($cache = $this->cache()) instanceof HTTP_Cache) 112 return $cache->execute($this, $request, $response); 113 114 $response = $this->execute_request($request, $response); 115 116 // Execute response callbacks 117 foreach ($this->header_callbacks() as $header => $callback) 118 { 119 if ($response->headers($header)) -
SYSPATH/classes/Kohana/Request.php [ 990 ] » Kohana_Request_Client->execute()
985 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 986 ':uri' => $this->_uri, 987 )); 988 } 989 990 return $this->_client->execute($this); 991 } 992 993 /** 994 * Returns whether this request is the initial request Kohana received. 995 * Can be used to test for sub requests. -
DOCROOT/index.php [ 119 ] » Kohana_Request->execute()
114 // ->send_headers(TRUE) 115 // ->body(); 116 // } 117 try { 118 echo Request::factory(TRUE, array(), FALSE) 119 ->execute() 120 ->send_headers(TRUE) 121 ->body(); 122 } catch (Error $e) { // php7 Throwable 123 throw new ErrorException($e->getMessage(), $e->getCode(), 0, $e->getFile(), $e->getLine()); 124 }