Changeset 33 for trunk/dotnode-xml.php

Show
Ignore:
Timestamp:
09/03/05 22:42:52 (6 years ago)
Author:
alexx
Message:
  • Auth: Remove MySQL PASSWORD hashing method to hash password, replace by MD5 hashing, add code to make a smooth transition between hashing method
  • XML engine: Fix a trivial recent bug in dotnode-xml.php
  • Robots: fix a bug in crontab script robots/launch_robots.sh (add cd dirname $0)
  • CSS: Add max_width to image in blog (work on Mozilla/*, Opera but not good on Safari (no proportional resizing), of course, that doesn't work on IE)
  • DB: changing DB structure !!!
    ALTER TABLE `user` ADD `passwd_md5` CHAR( 32 ) NOT NULL AFTER `passwd` ;
    ALTER TABLE `user` CHANGE `passwd` `passwd` VARCHAR( 42 ) NULL ;
    ALTER TABLE `dntp_translator` ADD `passwd_md5` CHAR( 32 ) NOT NULL AFTER `passwd` ;
    ALTER TABLE `dntp_translator` CHANGE `passwd` `passwd` VARCHAR( 42 ) NULL ;
    
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/dotnode-xml.php

    r19 r33  
    2626include('../includes/config/xml.inc.php'); 
    2727 
    28 $_SERVER['HTTP_HOST'] = ereg_replace(":80$", "", $_SERVER["HTTP_HOST"]); 
    29 $requested_site = ereg_replace("^www\.", "", $_SERVER["HTTP_HOST"]); 
     28$_SERVER['HTTP_HOST'] = ereg_replace(":80$", '', $_SERVER['HTTP_HOST']); 
     29$requested_site = ereg_replace("^www\.", '', $_SERVER['HTTP_HOST']); 
    3030ereg("(.*)\.${config['domain']}$", $requested_site, $regs); 
     31 
    3132$login = $regs[1]; 
    3233 
     
    3435$smarty->template_dir = SMARTYPATH.'/templates_xml/'; 
    3536$smarty->compile_id = 'xml'; 
    36 $smarty->caching = true'; 
     37$smarty->caching = true; 
    3738 
    3839session_start(); 
    3940 
    40 if(!$smarty->is_cached('index.tpl', $login.'.'.$_SERVER['PHP_SELF'] )) 
     41if( !$smarty->is_cached('index.tpl',$login.'.'.$_SERVER['PHP_SELF']) ) 
    4142{ 
    42         $token = retreive_url_info($_SERVER["PHP_SELF"]); 
     43        $token = retreive_url_info($_SERVER['PHP_SELF']); 
    4344        array_splice($token, 0, 1); 
    4445