if (!is_dir($module_directory . $file)) { if (substr($file, strrpos($file, '.')) == $file_extension) { $directory_array[] = $file; } } } sort($directory_array); $dir->close(); } $installed_modules = array(); for ($i = 0, $n = count($directory_array); $i < $n; $i++) { $file = $directory_array[$i]; include OOS_ABSOLUTE_PATH . 'includes/languages/' . $_SESSION['language'] . '/modules/' . $module_type . '/' . $file; include $module_directory . $file; $class = substr($file, 0, strrpos($file, '.')); if (oos_class_exits($class)) { $module = new $class(); if ($module->check() > 0) { if ($module->sort_order > 0) { $installed_modules[$module->sort_order] = $file; } else { $installed_modules[] = $file; } } if ((!isset($_GET['module']) || isset($_GET['module']) && $_GET['module'] == $class) && !isset($mInfo)) { $module_info = array('code' => $module->code, 'title' => $module->title, 'description' => $module->description, 'status' => $module->check()); $module_keys = $module->keys(); $keys_extra = array(); for ($j = 0, $k = count($module_keys); $j < $k; $j++) { $key_value_result = $dbconn->Execute("SELECT configuration_value, use_function, set_function FROM " . $oostable['configuration'] . " WHERE configuration_key = '" . $module_keys[$j] . "'"); $key_value = $key_value_result->fields;
/** * Customers Payment * * @author r23 <*****@*****.**> * @copyright 2003 r23 * @param $customers_payment * @return string */ function oos_customers_payment($customers_payment = '') { global $aLang; $payment_title = ''; if (!empty($customers_payment)) { $select_payment = explode(';', $customers_payment); for ($i = 0, $n = count($select_payment); $i < $n; $i++) { $file = $select_payment[$i]; include OOS_ABSOLUTE_PATH . 'includes/languages/' . $_SESSION['language'] . '/modules/payment/' . $file; include OOS_ABSOLUTE_PATH . 'includes/modules/payment/' . $file; $class = substr($file, 0, strrpos($file, '.')); if (oos_class_exits($class)) { $module = new $class(); $payment_title .= $module->title . '<br />'; } } } return $payment_title; }