[Commits] [svn:einsteintoolkit] www/ (Rev. 1697)
knarf at cct.lsu.edu
knarf at cct.lsu.edu
Mon Jan 30 12:56:31 CST 2017
User: knarf
Date: 2017/01/30 12:56 PM
Added:
/
update.php
Log:
add new location of update script to old site to make it update the preview as well
File Changes:
Directory: /
============
File [added]: update.php
Delta lines: +43 -0
===================================================================
--- update.php (rev 0)
+++ update.php 2017-01-30 18:56:30 UTC (rev 1697)
@@ -0,0 +1,43 @@
+<html lang="en">
+<head>
+ <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
+ <script src="head.js" type="text/javascript">
+ </script>
+ <link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet">
+ <title>Update</title>
+</head>
+<body id="index">
+ <header>
+ <script src="menu.js" type="text/javascript"></script>
+ </header>
+ <div class="container">
+<?php
+$title='Website Updates Interface';
+$hide_path=1;
+$category='internal';
+
+?>
+
+<?php
+if(isset($_GET['update']))
+{
+ echo '<h3>Updating the site...</h3>';
+ echo '<p>'.exec('/var/www/einstein/update').'</p>';
+ echo '<p>The site is now current.</p><br />';
+}
+ echo '<br /><br />
+<input class="button" type="button" value="Make Recent Changes Live" onclick="window.location.href=\'/x/?update\'" />
+<br /><br />This updates changes from all relevant repositories to the live site.
+</p>';
+?>
+ </div>
+ <div class="container">
+ <div class="row">
+ <div class="col-xs-12">
+ <script src="footer/footer.js" type="text/javascript"></script>
+ </div>
+ </div>
+ </div>
+</body>
+</html>
+
More information about the Commits
mailing list