Example #1
0
 function updateModule($module_id)
 {
     $sql = "SELECT `file_id` FROM `" . DB_PREFIX . DB_TBL_MODULES . "` WHERE `id` = " . $module_id;
     $sql = mysql_query($sql);
     if (false == $sql) {
         my_die();
     }
     $aList = array();
     while ($row = mysql_fetch_assoc($sql)) {
         $aList[] = $row;
     }
     if (empty($aList)) {
         return 'module not found';
     }
     cTasks::mAddTask('updateFile', current(current($aList)));
     return true;
 }
Example #2
0
 function updateSlave($component_id)
 {
     cTasks::mAddTask('updateComponentSlave', $component_id);
 }