Skip to content

Commit

Permalink
use config.auto.php if it exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Un-Thesis authored and hopeseekr committed Apr 15, 2001
1 parent 86af927 commit 2a0d998
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion source/php_egg.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
print("by: [email protected]\n");
print("web: www.blah.com\n");

include("config.php");
if (file_exists("config.auto.php")) {
include("config.auto.php");
} else {
include("config.php");
}
if ($magic_word=="") {
print("\nError: you need to write your magic_word in config.php\n");
exit;
Expand Down

0 comments on commit 2a0d998

Please sign in to comment.