Ve statistikach umozneno zobrazeni podle mesice
[mirrors/SokoMan.git] / index.php
index 6508a4d227068122180061b0127497130542c212..8f37200644000085749f7c776b3cf8c5e281608d 100755 (executable)
--- a/index.php
+++ b/index.php
@@ -148,7 +148,10 @@ class Sklad_HTML extends HTML {
                <li><a href="$script/">Home</a></li>
                <li><a href="#">Assistants</a>
                        <menu>
+                               <li><a href="$script/assistant/stats">stats</a></li>
                                <li><a href="$script/assistant/store">store</a></li>
+                               <li><a href="$script/assistant/dispose">dispose</a></li>
+                               <li><a href="$script/assistant/sell">sell</a></li>
                                <li>&darr;&darr; BETA &darr;&darr;</li>
                                <li><a href="$script/assistant/new-item">new-item</a></li>
                        </menu>
@@ -222,7 +225,7 @@ EOF;
                );
                foreach($table as $id => $row) {
                        foreach($collapse as $link => $title)
-                               if(isset($table[$id][$link])) {
+                               if(isset($table[$id][$link]) && isset($row[$title])) {
                                        $type = @array_shift(preg_split('/_/', $link));
                                        if($link != $title) unset($table[$id][$link]);
                                        $table[$id][$title]=$this->link($row[$title], $type.'/'.$row[$link].'/');
@@ -622,7 +625,11 @@ class Sklad_UI {
                $location = $this->html->internal_url($location).'?message='.urlencode($message);
                header('Location: '.$location);
                if($error) trigger_error($message);
-               die("Location: <a href='$location'>$location</a>");
+               $location=htmlspecialchars($location);
+               die(
+                       "<meta http-equiv='refresh' content='0; url=$location'>".
+                       "Location: <a href='$location'>$location</a>"
+               );
        }
 
        function safe_include($dir,$name,$vars=array(),$ext='.inc.php') {
This page took 0.116851 seconds and 4 git commands to generate.