function convert() { if (Convert::isConverted('wiki')) { return dgettext('wiki', 'Wiki pages have already been converted.'); } if (!defined('OLD_WIKI_IMAGES')) { return dgettext('wiki', 'OLD_WIKI_IMAGES in Wiki conversion script needs to be set BEFORE continuing.'); } $mod_list = PHPWS_Core::installModList(); if (!in_array('wiki', $mod_list)) { return dgettext('wiki', 'Wiki module is not installed.'); } if (!isset($_SESSION['wiki_convert_step'])) { $_SESSION['wiki_convert_step'] = 1; } switch ($_SESSION['wiki_convert_step']) { case 1: return step1(); break; case 2: return step2(); break; case 3: return step3(); break; } }
function callstep($step, $data = array()) { switch ($step) { case 5: return step5($data); case 4: return step4($data); case 3: return step3($data); case 2: return step2($data); default: return step1($data); } }
function step($step) { switch ($step) { case 1: step1(); break; case 2: step2(); break; case 3: step3(); break; default: noStep(); } }
exit; } if (isset($_GET["popup"])) { popup(); exit; } if (isset($_GET["step1"])) { step1(); exit; } if (isset($_GET["step2"])) { step2(); exit; } if (isset($_GET["step3"])) { step3(); exit; } js(); function js() { $page = CurrentPageName(); $tpl = new templates(); $page = CurrentPageName(); $title = $tpl->_ENGINE_parse_body("{build_support_package}"); $html = "RTMMail('550','{$page}?popup=yes','{$title}');"; echo $html; } function popup() { $page = CurrentPageName();
require './include/function.php'; if (!in_array($_GET['step'], array(1, 2, 3, 4, 5))) { $_GET['step'] = 0; } switch ($_GET['step']) { case 1: require './include/var.php'; env_check($env_items); dirfile_check($dirfile_items); function_check($func_items); break; case 3: $install_error = ''; $install_recover = ''; $demo_data = file_exists('./data/utf8_add.sql') ? true : false; step3($install_error, $install_recover); break; case 4: step4(); break; case 5: $sitepath = strtolower(substr($_SERVER['PHP_SELF'], 0, strrpos($_SERVER['PHP_SELF'], '/'))); $sitepath = str_replace('/shop/install', "", $sitepath); $auto_site_url = strtolower('http://' . $_SERVER['HTTP_HOST'] . $sitepath); break; default: break; } function step3(&$install_error, &$install_recover) { global $html_title, $html_header, $html_footer;
$_SESSION["Test_session_GLPI"] = 1; step1($_POST["update"]); break; case "Etape_1": // check ok, go import mysql settings. checkConfigFile(); // check system ok, we can use specific parameters for debug Toolbox::setDebugMode(Session::DEBUG_MODE, 0, 0, 1); header_html(sprintf(__('Step %d'), 1)); step2($_POST["update"]); break; case "Etape_2": // mysql settings ok, go test mysql settings and select database. checkConfigFile(); header_html(sprintf(__('Step %d'), 2)); step3($_POST["db_host"], $_POST["db_user"], $_POST["db_pass"], $_POST["update"]); break; case "Etape_3": // Create and fill database checkConfigFile(); header_html(sprintf(__('Step %d'), 3)); if (empty($_POST["databasename"])) { $_POST["databasename"] = ""; } if (empty($_POST["newdatabasename"])) { $_POST["newdatabasename"] = ""; } step4($_POST["databasename"], $_POST["newdatabasename"]); break; case "Etape_4": // finish installation
function step6() { $session_check = $GLOBALS['session']->sission_cart(); if (empty($session_check)) { return $this->step2(); } if (empty($_POST['mailaddress1'])) { return step3('post_error'); } if (empty($_POST['payment'])) { $_POST['payment'] = '1'; } $payment = $GLOBALS['fileread']->DBcart_read(); $commission = $GLOBALS['fileread']->DBcommission_read(); require dirname(__FILE__) . '/' . $GLOBALS['cart_theme_type'] . '/cart-step6.php'; }
/** * Stems a word. Simple huh? * * @param string $word Word to stem * @return string Stemmed word */ function stem($word) { if (strlen($word) <= 2) { return $word; } $word = step1ab($word); $word = step1c($word); $word = step2($word); $word = step3($word); $word = step4($word); $word = step5($word); return $word; }
$template->set_template_file(VIVVO_FS_ROOT . 'installer/templates/frame.xml'); $installer_lang = $sm->get_lang(); if (isset($_POST['installer_lang'])) { setcookie('installer_lang', $_POST['installer_lang']); $_COOKIE['installer_lang'] = $_POST['installer_lang']; } if (isset($_COOKIE['installer_lang'])) { $installer_lang->load_lang($_COOKIE['installer_lang'], 'installer/lang/', 'installer'); } else { $installer_lang->load_lang($_COOKIE['installer_lang'] = 'vietnamese', 'installer/lang/', 'installer'); } define('VIVVO_INSTALLER_LANG', $_COOKIE['installer_lang']); $um = $sm->get_url_manager(); $lang = $sm->get_lang(); if ($um->get_param('step') == 2) { step2($template, $dm, $lang); } elseif ($um->get_param('step') == 3) { step3($template, $dm, $lang); } elseif ($um->get_param('step') == 4) { step4($template, $dm, $lang); } elseif ($um->get_param('step') == 5) { step5($template, $dm, $lang); } elseif ($um->get_param('step') == 6) { step6($template, $dm, $lang); vivvo_cache::get_instance()->delete_all(); } else { step1($template, $dm, $lang); } $template->assign('DUMP_MESSAGES', $dm->_dump_pool); echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">' . "\n"; echo $sm->get_output();
function step2() { $sock = new sockets(); $WizardUFDB = unserialize(base64_decode($sock->GET_INFO("WizardUFDB"))); if ($WizardUFDB["SOURCE_TYPE"] == "ALL") { step3(); exit; } if ($WizardUFDB["SOURCE_TYPE"] == "IPADDR") { step2_IPADDR(); exit; } if ($WizardUFDB["SOURCE_TYPE"] == "AD") { step2_AD(); exit; } echo "????"; }
include_once('ressources/class.ldap.inc'); include_once('ressources/class.users.menus.inc'); include_once('ressources/class.squid.inc'); $usersmenus=new usersMenus(); if(!$usersmenus->AsSquidAdministrator){ $tpl=new templates(); $alert=$tpl->_ENGINE_parse_body('{ERROR_NO_PRIVS}'); echo "alert('$alert');"; die(); } if(isset($_GET["step0"])){step0();exit;} if(isset($_GET["step1"])){step1();exit;} if(isset($_GET["step2"])){step2();exit;} if(isset($_GET["step3"])){step3();exit;} if(isset($_GET["step4"])){step4();exit;} if(isset($_POST["DOMAIN"])){Save();exit;} if(isset($_POST["LOCALNET"])){Save();exit;} if(isset($_POST["PROXY"])){Save();exit;} if(isset($_POST["agree"])){agree();exit;} start_js(); function start_js(){ header("content-type: application/x-javascript"); $tpl=new templates();