Commit 75e7c699 authored by Skia's avatar Skia

Amend: Add script to refresh taiste db

parent d3defae3
......@@ -37,10 +37,10 @@ if ( !$site->user->is_in_group("root") )
$site->start_page("none","Administration / passage en prod");
$cts = new contents("<a href=\"./\">Administration</a> / Passage en production");
$tabs = array(array("","rootplace/prod_cron.php","Passage en prod"),
array("refresh","rootplace/prod_cron.php?view=refreshdb","Rafraichir taiste"),
array("refreshdb","rootplace/prod_cron.php?view=refreshdb","Rafraichir taiste"),
array("script","rootplace/prod_cron.php?view=script","Script de passage en prod"),
array("commit","rootplace/prod_cron.php?view=commit","Script de post commit"),
array("refreshscript","rootplace/prod_cron.php?view=refreshdbscript","Script de refresh de taiste"));
array("refreshdbscript","rootplace/prod_cron.php?view=refreshdbscript","Script de refresh de taiste"));
if ( $_REQUEST["action"] == "passprod" && $GLOBALS["svalid_call"] )
{
......@@ -52,7 +52,7 @@ if ( $_REQUEST["action"] == "refreshdb" && $GLOBALS["svalid_call"] )
{
if ( $site->is_sure ( "","Rafraichir taiste",null, 2 ) )
@exec(escapeshellcmd(REFRESH_TAISTE));
$_REQUEST["view"]="refresh";
$_REQUEST["view"]="refreshdb";
$Ok=true;
}
if ( $_REQUEST["action"] == "scriptprod" && $GLOBALS["svalid_call"] )
......@@ -98,7 +98,7 @@ if ( $_REQUEST["action"] == "refreshdbscript" && $GLOBALS["svalid_call"] )
$content = preg_replace("/\r\n/","\n",htmlspecialchars_decode($_REQUEST["__script__"]));
@fwrite($handle,$content);
@fclose ($handle);
$_REQUEST["view"]="refreshscript";
$_REQUEST["view"]="refreshdbscript";
$Ok=true;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment