Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by deZender.Net
- * @ deZender (PHP5 Decoder for ionCube Encoder)
- *
- * @ Version : 2.0.0.3
- * @ Author : DeZender
- * @ Release on : 06.05.2013
- * @ Official site : http://DeZender.Net
- *
- */
- abstract class Controller {
- public function __construct() {
- }
- public function Request() {
- $this->OnInput();
- $this->OnOutput();
- }
- protected function OnInput() {
- }
- protected function OnOutput() {
- }
- protected function IsGet() {
- return $_SERVER["REQUEST_METHOD"] == "GET";
- }
- protected function IsPost() {
- return $_SERVER["REQUEST_METHOD"] == "POST";
- }
- protected function Template($file, $array) {
- foreach ($array as $key => $value)
- {
- $$key = $value;
- continue;
- }
- ob_start();
- if (file_exists('' . "templates/" . $this->F->config["TEMPLATE"] . "/" . $file . ".php"))
- {
- require '' . "templates/" . $this->F->config["TEMPLATE"] . "/" . $file . ".php";
- }
- else
- {
- $this->F->Error('' . "File " . $file . ".php does not exist in the directory templates/" . $this->F->config["TEMPLATE"] . ".");
- }
- return ob_get_clean();
- }
- ...................................................................
- .......................
- .......
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement