function __construct($popup) { if (file_exists(include_path() . 'shortcodes/config.php')) { $this->conf = include_path() . 'shortcodes/config.php'; $this->popup = $popup; $this->formate_shortcode(); } else { $this->append_error('Config file does not exist'); } }
if (file_exists($myphptal)) { require_once $myphptal; } else { require_once "PHPTAL.php"; } if (!defined('PHPTAL_VERSION')) { throw new Exception("Your PHPTAL installation is broken or too new for this tool"); } echo "PHPTAL Lint 1.1.1 (PHPTAL ", PHPTAL_VERSION, ")\n"; if (!empty($_SERVER['REQUEST_URI'])) { throw new Exception("Please use this tool from command line"); } $custom_extensions = array(); $options = extended_getopt(array('-i', '-e')); if (isset($options['i'])) { include_path($options['i']); } if (isset($options['e'])) { $custom_extensions = array_merge($custom_extensions, preg_split('/[\\s,.]+/', $options['e'][0])); } if (isset($options['--filenames--'])) { $paths = $options['--filenames--']; } if (!count($paths)) { usage(); exit(1); } $lint = new PHPTAL_Lint(); if (empty($options['i'])) { $lint->skipUnknownModifiers(); }
function set_root_path($path) { include_path($path); define('ROOT_PATH', realpath($path)); }
function __construct($key) { $this->key = $key; $this->import_filepath = include_path() . 'sample/'; $this->import_file(); }
<title>Zero Style</title> </head> <body data-spy="scroll" data-offset="100" data-target=".navbar"> <div id="wrapper"> <?php include 'includes/header.php'; include 'includes/nav.php'; ?> <?php include_path('forum/'); include 'index.php'; ?> <?php include 'includes/sidebar.php'; ?> <?php include 'includes/footer.php'; ?> </div> <!-- End #wrapper --> </body>