Exemplo n.º 1
0
 public function __construct($core, $name)
 {
     $serverPath = $_SERVER['SCRIPT_FILENAME'];
     $serverPathParts = explode('/', $serverPath);
     $file = array_pop($serverPathParts);
     $serverPath = implode('/', $serverPathParts);
     parent::__construct($core, $name);
     $this->smarty_compile_dir = $serverPath . $this->smarty_compile_dir;
     $this->smarty_cache_dir = $serverPath . $this->smarty_cache_dir;
     $this->pluginsPath = $serverPath . $this->pluginsPath;
     $this->smarty = $this->getPreparedSmarty($this->theme);
 }
Exemplo n.º 2
0
 public function __construct($core, $name)
 {
     parent::__construct($core, $name);
     $dir = $this->pathFor_tools;
     if (is_dir($dir)) {
         if ($dh = opendir($dir)) {
             while (($file = readdir($dh)) !== false) {
                 if (substr($file, -4) == '.php' && substr($file, 0, 2) !== '._') {
                     require_once $dir . $file;
                     $className = $file;
                     $className = str_replace('.php', '', $className);
                     $className = ucfirst($className);
                     $this->{$className} = new $className();
                     //$this->subLog("Load Tools: ".$className);
                 }
             }
             closedir($dh);
         }
     }
 }
Exemplo n.º 3
0
 public function __construct($core, $name)
 {
     parent::__construct($core, $name);
 }
Exemplo n.º 4
0
      <tr>
        <th>Firstname</th>
        <th>Lastname</th>
        <th>Email</th>
        <th>Ações</th>
      </tr>

    </thead>
    <tbody>
      <tr>
        <td>John</td>
        <td>Doe</td>
        <td>john@example.com</td>
        <td><button type="button" class="btn btn-danger">Deletar</button></td>
      </tr>
      <tr>
        <td><input type="text" class="form-control" id="firstname" placeholder="Enter your First Name"></td>
        <td><input type="text" class="form-control" id="lastname" placeholder="Enter your Last Name"></td>
        <td><input type="email" class="form-control" id="email" placeholder="Enter your email"></td>
        <td><button type="button" class="btn btn-primary">Atualizar</button></td>
      </tr>

    </tbody>
  </table>

</div>
<?php 
include_once "includes/includes.php";
//
$footerSite = new Includes();
$footerSite->footerSite();
Exemplo n.º 5
0
 public static function abort($type = 404)
 {
     if ($type == 404) {
         Includes::controller('AccessDenid');
     }
 }
Exemplo n.º 6
0
 public function __construct($core, $name)
 {
     parent::__construct($core, $name);
     $this->mail = new htmlMimeMail5();
     $this->core->subLog('Load Class: HtmlMimeMail');
 }