Creation of auto-gen script
This commit is contained in:
@@ -39,3 +39,15 @@ function is_signed_in() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (file_exists("/../includes/install.php")) {
|
||||
return;
|
||||
add_action( 'run_db_populate')
|
||||
}
|
||||
|
||||
function run_db_populate() {
|
||||
// all my glorious one-time-magic.
|
||||
include( "/../includes/install.php" );
|
||||
// after all execution rename your file;
|
||||
rename( "/../includes/install.php", "/../includes/install-backup.php");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user