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
75e7c699
Commit
75e7c699
authored
Feb 04, 2015
by
Skia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Amend: Add script to refresh taiste db
parent
d3defae3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
rootplace/prod_cron.php
rootplace/prod_cron.php
+4
-4
No files found.
rootplace/prod_cron.php
View file @
75e7c699
...
...
@@ -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
(
"refresh
db
"
,
"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
(
"refresh
db
script"
,
"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"
]
=
"refresh
db
"
;
$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"
]
=
"refresh
db
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