Esempio n. 1
3
 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');
     }
 }
Esempio n. 2
0
 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();
 }
Esempio n. 3
0
function set_root_path($path)
{
    include_path($path);
    define('ROOT_PATH', realpath($path));
}
Esempio n. 4
0
 function __construct($key)
 {
     $this->key = $key;
     $this->import_filepath = include_path() . 'sample/';
     $this->import_file();
 }
Esempio n. 5
0
 
<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>