예제 #1
0
 public function __construct(projectsModel $model)
 {
     parent::__construct();
     $this->model = $model;
     //$this->todolist = new todolist(new todolistModel()); // On initialize la todolist pour le projet
     $this->viewHelper->setGlobalAssign(array("token" => $this->controllerHelper->_setToken("token"), "configuration" => configuration::getInstance()->getConfiguration(), "javascript" => array("wysihtml5-0.3.0.min", "bootstrap3-wysihtml5", "plugins/tree/jstree.min", "plugins/dropzone/dropzone", "global", "project", "filesmanager"), "css" => array("bootstrap-wysihtml5", "bootstrap3-wysiwyg5-color", "plugins/tree/themes/default/style.min")));
 }
예제 #2
0
파일: config.php 프로젝트: valkiki/karotte
<?php

define("USERS_URL", LIVE_URL . "/modules/users/");
define("USERS_VIEWS", BASE_URL . "/modules/users/views/");
$config["users"] = array("icon" => "fa fa-users", "menu" => array("Utilisateurs" => USERS_URL . "index.php?page=getSidebar"));
configuration::getInstance()->setConfiguration("menus", array("name" => "users", "icon" => "fa fa-users", "menu" => array("Utilisateurs" => USERS_URL . "/index.php?page=getSidebar")));
예제 #3
0
    ob_start('ob_gzhandler');
} else {
    ob_start();
}
if (version_compare(phpversion(), '5.1.0', '<') == true) {
    die("PHP5 = false : PHP5 required");
}
////////////////////////////////////
// Define root directory
////////////////////////////////////
define('__SITE_PATH', realpath(dirname(__FILE__)));
////////////////////////////////////
// Get Configuration Object
////////////////////////////////////
include __SITE_PATH . "/core/library/config.class.php";
$configuration = configuration::getInstance();
////////////////////////////////////
//  Set system time
////////////////////////////////////
$date_time = date($configuration->config_values['application']['date_format']);
////////////////////////////////////
// Set Time Zone
////////////////////////////////////
date_default_timezone_set($configuration->config_values['application']['timezone']);
////////////////////////////////////
// Load Classes - Core
////////////////////////////////////
include __SITE_PATH . "/core/library/error.class.php";
include __SITE_PATH . "/core/library/template.class.php";
include __SITE_PATH . "/core/database/db.class.php";
////////////////////////////////////
예제 #4
0
파일: config.php 프로젝트: valkiki/karotte
<?php

define("PROJECTS_URL", LIVE_URL . "/modules/projects/");
define("PROJECTS_VIEWS", BASE_URL . "/modules/projects/views/");
$config["projects"] = array("icon" => "fa fa-folder-open-o", "menu" => array("Mes projets" => PROJECTS_URL . "index.php?page=getSidebar"));
configuration::getInstance()->setConfiguration("projects", array("icon" => "fa fa-folder-open-o", "menu" => array("Mes projets" => PROJECTS_URL . "index.php?page=getSidebar")));
예제 #5
0
 public function __construct(todolistModel $model)
 {
     parent::__construct();
     $this->model = $model;
     $this->viewHelper->setGlobalAssign(array("token" => $this->controllerHelper->_setToken("token"), "configuration" => configuration::getInstance()->getConfiguration(), "javascript" => array("wysihtml5-0.3.0.min", "bootstrap3-wysihtml5", "global"), "css" => array("bootstrap-wysihtml5", "bootstrap3-wysiwyg5-color", "plugins/tree/themes/default/style.min")));
 }
예제 #6
0
 /**
  * @param sgConfig pointer to a {@link sgConfig} object representing 
  *   the current script configuration
  */
 function IO_sqlite()
 {
     $this->config =& configuration::getInstance();
     $this->db = sqlite_open($this->config->base_path . $this->config->pathto_data_dir . "sqlite.dat");
 }