Skip to content

Commit

Permalink
first step for composer
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmi3yy committed Jul 10, 2017
1 parent ed9b8ec commit 4c7d864
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
8 changes: 0 additions & 8 deletions autoload.php.blank

This file was deleted.

7 changes: 5 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,12 @@
* -----------------------------
*/

if(!isset($_SERVER['REQUEST_TIME_FLOAT'])) $_SERVER['REQUEST_TIME_FLOAT'] = microtime(true);
$autoloader = 'vendor/autoload.php';
if (file_exists($autoloader) && is_readable($autoloader)) {
include_once($autoloader);
}

if(is_file('autoload.php')) include_once('autoload.php');
if(!isset($_SERVER['REQUEST_TIME_FLOAT'])) $_SERVER['REQUEST_TIME_FLOAT'] = microtime(true);

$base_path = str_replace('\\','/',dirname(__FILE__)) . '/';
if(is_file($base_path . 'assets/cache/siteManager.php'))
Expand Down
6 changes: 5 additions & 1 deletion manager/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,14 @@
* content
*/

$autoloader = '../vendor/autoload.php';
if (file_exists($autoloader) && is_readable($autoloader)) {
include_once($autoloader);
}

// get start time
$mtime = microtime(); $mtime = explode(" ",$mtime); $mtime = $mtime[1] + $mtime[0]; $tstart = $mtime;
$mstart = memory_get_usage();

$self = str_replace('\\','/',__FILE__);
$self_dir = str_replace('/index.php','',$self);
$mgr_dir = substr($self_dir,strrpos($self_dir,'/')+1);
Expand Down
Empty file added vendor/.gitignore
Empty file.

0 comments on commit 4c7d864

Please sign in to comment.