Show
Ignore:
Timestamp:
10/23/09 09:03:46 (11 years ago)
Author:
kovell
Message:

Fixes: eve-dev changed to eve-id, recursive clearup scripts recurse more than one level, defunct admin sync removed.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dev/cron/cron_cache.php

    r370 r461  
    1 #!/usr/bin/php  
     1#!/usr/bin/php 
    22<?php 
    33// check your php folder is correct as defined by the first line of this file 
     
    1313// current working directory minus last 5 letters of string ("/cron") 
    1414//$KB_HOME = substr(getcwd(), 0, strlen(getcwd())-5); // current working directory minus last 5 letters of string ("/cron") 
    15 $KB_HOME = ereg_replace('[/\\]cron$', '', getcwd()); 
     15$KB_HOME = preg_replace('/[\/\\\\]cron$/', '', getcwd()); 
    1616 
    1717 
    18 chdir($KB_HOME);  
     18chdir($KB_HOME); 
    1919 
    2020// If the above doesn't work - place your working directory path to killboard root below - comment out the above two lines and uncomment the two below 
     
    2222// Edit the path below with your webspace directory to the killboard root folder - also check your php folder is correct as defined by the first line of this file 
    2323//$KB_HOME = "/home/yoursite/public_html/kb"; 
    24 //chdir($KB_HOME);  
     24//chdir($KB_HOME); 
    2525 
    2626require_once( "kbconfig.php" ); 
     
    6060if ($out) 
    6161{ 
    62     $out = str_replace("<div class=block-header2>","",$out); 
    63     $out = str_replace("</div>","\n",$out); 
    64     $out = str_replace("<br>","\n",$out); 
     62        $out = str_replace("<div class=block-header2>","",$out); 
     63        $out = str_replace("</div>","\n",$out); 
     64        $out = str_replace("<br>","\n",$out); 
    6565 
    66     //print $outhead . strip_tags($out, '<a>'); 
    67     print $outhead . strip_tags($out); 
     66        //print $outhead . strip_tags($out, '<a>'); 
     67        print $outhead . strip_tags($out); 
    6868} 
    69 ?>