HomeHelpTrac

Ignore:
Timestamp:
11/20/09 06:31:49 (3 years ago)
Author:
Sergey Zotov
Message:

Ticket #1459

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/inc/profiles.inc.php

    r13075 r13284  
    484484} 
    485485 
     486function setSearchStartAge($iMin) { 
     487    if ($iMin <= 0) 
     488        return false; 
     489     
     490    $GLOBALS['MySQL']->query("update `sys_profile_fields` set `Min` = $iMin where `Name` = 'DateOfBirth'"); 
     491     
     492    require_once(BX_DIRECTORY_PATH_CLASSES . 'BxDolPFM.php'); 
     493    $oCacher = new BxDolPFMCacher(); 
     494    $oCacher -> createCache(); 
     495     
     496    return true; 
     497} 
     498 
     499function setSearchEndAge($iMax) { 
     500    if ($iMax <= 0) 
     501        return false; 
     502     
     503    $GLOBALS['MySQL']->query("update `sys_profile_fields` set `Max` = $iMax where `Name` = 'DateOfBirth'"); 
     504     
     505    require_once(BX_DIRECTORY_PATH_CLASSES . 'BxDolPFM.php'); 
     506    $oCacher = new BxDolPFMCacher(); 
     507    $oCacher -> createCache(); 
     508     
     509    return true; 
     510} 
     511 
    486512check_logged(); 
    487 ?> 
Note: See TracChangeset for help on using the changeset viewer.