fixes
This commit is contained in:
parent
d70addf352
commit
81eb753556
@ -4,7 +4,7 @@ if(isset($_POST['auth'])){
|
||||
createDB();
|
||||
}
|
||||
}else{
|
||||
echo('test');
|
||||
echol('you have no authorization to do that');
|
||||
}
|
||||
|
||||
function createDB(){
|
||||
|
||||
@ -1,4 +1,12 @@
|
||||
<?php
|
||||
if(isset($_POST['auth'])){
|
||||
if($_POST['auth'] == getenv('ADMIN_ACTION_KEY')){
|
||||
populateDB();
|
||||
}
|
||||
}else{
|
||||
echol('you have no authorization to do that');
|
||||
}
|
||||
|
||||
function populateDB(){
|
||||
try{
|
||||
if(getenv("SQL_CREDENTIALS") !== false){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user