Rename variables.php to config.php

This commit is contained in:
Junior 2026-02-15 20:24:46 -05:00
parent fb7725eb32
commit 4317dd1637
3 changed files with 4 additions and 4 deletions

2
.gitignore vendored
View File

@ -9,7 +9,7 @@ Thumbs.db
~$* ~$*
# The active config file copied from config-dist.php # The active config file copied from config-dist.php
variables.php config.php
# Vim # Vim
*.swp *.swp

View File

@ -1,7 +1,7 @@
<?php <?php
// Script defining constants and variables used in the comics system // Config file
require 'variables.php'; require 'config.php';
// Script containing global functions used by all scripts // Script containing global functions used by all scripts
require 'functions.php'; require 'functions.php';
// Script containing the "require_login() function" // Script containing the "require_login() function"
@ -21,7 +21,7 @@ if ( php_sapi_name() != "cli" ) {
} }
// This session variable is set to the current browsing folder. // This session variable is set to the current browsing folder.
// It is relative to the COMICSDIR constant defined in variables.php // It is relative to the COMICSDIR constant defined in config.php
if ( !isset($_SESSION['compath']) ) { if ( !isset($_SESSION['compath']) ) {
$_SESSION['compath'] = '/'; $_SESSION['compath'] = '/';
} }