Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Antoine
ae2
Commits
d3defae3
Commit
d3defae3
authored
Feb 04, 2015
by
Skia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Amend: Add script to refresh taiste db
parent
13a59cfb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
rootplace/prod_cron.php
rootplace/prod_cron.php
+3
-2
No files found.
rootplace/prod_cron.php
View file @
d3defae3
...
...
@@ -40,7 +40,7 @@ $tabs = array(array("","rootplace/prod_cron.php","Passage en prod"),
array
(
"refresh"
,
"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
(
"
clone
"
,
"rootplace/prod_cron.php?view=refreshdbscript"
,
"Script de refresh de taiste"
));
array
(
"
refreshscript
"
,
"rootplace/prod_cron.php?view=refreshdbscript"
,
"Script de refresh de taiste"
));
if
(
$_REQUEST
[
"action"
]
==
"passprod"
&&
$GLOBALS
[
"svalid_call"
]
)
{
...
...
@@ -52,6 +52,7 @@ if ( $_REQUEST["action"] == "refreshdb" && $GLOBALS["svalid_call"] )
{
if
(
$site
->
is_sure
(
""
,
"Rafraichir taiste"
,
null
,
2
)
)
@
exec
(
escapeshellcmd
(
REFRESH_TAISTE
));
$_REQUEST
[
"view"
]
=
"refresh"
;
$Ok
=
true
;
}
if
(
$_REQUEST
[
"action"
]
==
"scriptprod"
&&
$GLOBALS
[
"svalid_call"
]
)
...
...
@@ -97,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"
]
=
"script"
;
$_REQUEST
[
"view"
]
=
"
refresh
script"
;
$Ok
=
true
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment