# HG changeset patch # User Zoe Hong # Date 1435155603 -7200 # Node ID 3d206aa0c77d9b16608be88e1c321492ea40566c # Parent 7e04cbe8b2a0b7bb648e2b2435fd5db8927ab82d add timer reminder diff -r 7e04cbe8b2a0 -r 3d206aa0c77d check_sections_details.php --- a/check_sections_details.php Wed Jun 24 11:11:31 2015 +0200 +++ b/check_sections_details.php Wed Jun 24 16:20:03 2015 +0200 @@ -104,18 +104,17 @@ $output = file_get_contents($lg_url); $user_info = json_decode($output, true); $current_editor = (string)$user_info['userName']; - - if ($current_editor == null || strcmp($user_info['status'], "error") == 0) { + + if ($current_editor == null || $current_editor == "" || strcmp($current_editor, "") === 0 || strcmp($user_info['status'], "ok") !== 0) { // redirect to LGServices homepage + //header("Location: http://localgazetteers.mpiwg-berlin.mpg.de/LGServices"); header("Location: "+$lgserver_url+"LGServices"); - //header('Location: http://localgazetteers/LGServices'); } } else { // test locally // redirect to LGServices homepage header("Location: "+$lgserver_url+"LGServices"); - //header('Location: http://localgazetteers/LGServices'); } @@ -190,8 +189,9 @@
-