Changeset 77

Show
Ignore:
Timestamp:
28/05/05 17:55:46 (4 years ago)
Author:
dez
Message:

Corrected spellings and tidied comments

Files:

Legend:

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

    r76 r77  
    1616//Our Blogs Class 
    1717class admin { 
    18         var $id;                       //Blog ID 
    19         var $userName;  //Blogger's User Name 
     18        var $id;                //Blog ID 
     19        var $userName;         //Blogger's User Name 
    2020        var $realName;          //Blogger's Real Name 
    21         var $sessionError;  //login or session errors 
    22         var $shortDateFormat;          //Short date format 
    23         var $longDateFormat;           //Long date format 
     21        var $sessionError;     //login or session errors 
     22        var $shortDateFormat;   //Short date format 
     23        var $longDateFormat;    //Long date format 
    2424        var $httpPath;          //http Path for files 
    2525        var $adminPath;         //path to admin 
    26         var $blog; 
     26        var $blog;             //[temporary] holder for instance of blog class 
    2727                         
    28         //Constructor, checks we've been given a valid username, and pulls in generic blog info 
     28        //Constructor - checks we've been given a valid username, and pulls in generic blog info 
    2929        function admin()  
    3030        { 
     
    130130        } 
    131131         
    132         //distroys the session and presents you with a login screen 
     132        //destroys the session and presents you with a login screen 
    133133        function logout ()  
    134134        { 
     
    199199                                $sqlRow = db_getrow($sql); 
    200200                                (int)$newNum = array_shift(array_reverse(explode('_',$sqlRow['shortsubject']))); 
    201                                 $shortsubject .= '_'.++$newNum; //new non-colideing short subject 
     201                                $shortsubject .= '_'.++$newNum; //new non-colliding short subject 
    202202                        } 
    203203                        //shortsubject is now safe.. 
     
    212212                        } 
    213213                } 
    214                 //redisplay entry form if there are errors 
     214                //re-display entry form if there are errors 
    215215                else { 
    216216                        $this->printEntryForm(); 
     
    234234                } 
    235235 
    236                 //sanitise subject (make sure its not a number!) 
     236                //sanitise subject (make sure it's not a number!) 
    237237                if (isset($_POST['subject']) && trim($_POST['subject']) != "" && (int)$_POST['subject'] != 0) { 
    238238                        $subject = $_POST['subject']; 
     
    259259                                 
    260260                        } else { 
    261                                  error(2,_("Cannot update entry - It never existed!".db_error())); 
     261                                 error(2,_("Cannot update entry - it never existed!".db_error())); 
    262262                        }        
    263263                } else { 
     
    373373                } 
    374374 
    375                 //sanitise enabled -- not really sure about this. i think creation and enablig should be  
     375                //sanitise enabled -- not really sure about this. i think creation and enabling should be  
    376376                // done seperately... ??? 
    377377                /*if (isset($_POST['enabled'])) { // if its not set its defaulted...