Skip to content

Commit

Permalink
Eliminated the need for devmode.php.
Browse files Browse the repository at this point in the history
  • Loading branch information
kittysnacks committed May 14, 2018
1 parent 5731a2d commit 8ed5478
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
3 changes: 3 additions & 0 deletions config.php.dist
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
//created automatically by install.php
//(c) 2006 David Lippman

//uncomment the following line for development
//$GLOBALS['environment'] = 'development';

//these settings must be editted before running dbsetup.php
$dbserver = "localhost"; //database server
$dbname = "imas"; //database name
Expand Down
6 changes: 0 additions & 6 deletions devmode.php.dist

This file was deleted.

11 changes: 6 additions & 5 deletions init.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
<?php

// Development dependencies
if (file_exists(__DIR__ . '/devmode.php')) {
require_once(__DIR__ . "/devmode.php");
}

require_once(__DIR__ . "/includes/sanitize.php");

// Load site config.
Expand All @@ -18,6 +13,12 @@

require_once(__DIR__ . "/config.php");

// Development dependencies
if (isset($GLOBALS['environment']) && 'development' == $GLOBALS['environment']) {
require_once(__DIR__ . '/vendor/autoload.php');
require_once(__DIR__ . '/c3.php');
}

// Store PHP sessions in the database.
require_once(__DIR__ . "/includes/session.php");
if (!isset($use_local_sessions)) {
Expand Down

0 comments on commit 8ed5478

Please sign in to comment.