* @package AgileBill * @version 1.4.93 */ class CORE_method { function do_all() { global $C_auth, $C_sess, $C_debug, $C_translate, $VAR; if(empty($VAR['do'])) return; for($i=0; $i < count($VAR['do']); $i++) { if(!empty($VAR['do'][$i])) { if(ereg(":", $VAR['do'][$i])) { $identifier = explode(':',$VAR['do'][$i]); $module = $identifier[0]; $method = strtolower($identifier[1]); if ( $module != '' && $method != '' && gettype($module) == 'string' && gettype($method) == 'string' ) { if($C_auth->auth_method_by_name($module,$method)) { if (file_exists(PATH_MODULES . '/' . $module . '/' . $module . '.inc.php')) { include_once(PATH_MODULES . '/' . $module . '/' . $module . '.inc.php'); if(class_exists($module)) { $eval = '$' . $module . ' = new ' . $module . '(); '; $eval .= '$this_Obj = $' . $module . ';'; $eval .= '$this_Obj->' . $method . '($VAR,$this_Obj);'; eval ($eval); } else { echo 'method_non_existant'; } } else { echo 'module_non_existant'; } } else { echo 'Logged Out or Non-authorized'; } } else { echo 'method_invalid'; } } else { echo 'method_invalid'; } } } } } ?>