Changeset 130

Show
Ignore:
Timestamp:
02/07/05 00:09:13 (4 years ago)
Author:
davea
Message:

Fixed bug #19, and added $DEBUG variable to admin bits.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • admin.lib.php

    r129 r130  
    289289                                }  
    290290                                else { 
    291                                         $this->inputError = _("Updated!")
     291                                        echo "<div class=\"updateinfo\">"._("Updated!")."</div>\n"
    292292                                        $this->updateForm($id); 
    293293                                } 
     
    423423                echo "<div class=\"entry\">\n"; 
    424424                if ($this->inputError != "") { 
    425                         echo "<div class=\"updateinfo\">Error : " . $this->inputError . "</div>\n"; 
     425                        echo "<div class=\"errorinfo\">Error : " . $this->inputError . "</div>\n"; 
    426426                } 
    427427                echo "<h2>".((!$edit) ?_("Write Entry") : _("Edit Entry"))."</h2>\n"; 
  • admin.php

    r126 r130  
    11<?php 
     2$DEBUG = FALSE; 
     3 
    24        include("admin.lib.php"); 
    35        $request=explode('/',substr($_SERVER[PATH_INFO], 1)); 
     
    9698</div> 
    9799<div id="botbot"></div> 
    98 <pre> 
    99 <?print_r($_SESSION); print_r($_POST);?> 
    100 </pre> 
     100<?php 
     101if($DEBUG){ 
     102        echo "<pre>\n"; 
     103        print_r($_SESSION); 
     104        print_r($_POST); 
     105        echo "</pre>"; 
     106
     107?> 
    101108</body> 
    102109</html>