mosRedirect('index2.php?option=' . $option, "Welcome to XCloner backend"); } else { mosRedirect('index2.php?option=' . $option, "Incorrect username and/or password"); } } ############GLOBALS in effect $GLOBALS['lang_dir'] = $lang_dir; ############ $lang_array = get_avalaible_langs(); # retrieve row selection from forms $cid = $_REQUEST['cid']; if (!is_array($cid)) { $cid = array(0); } if ($task != 'download') { HTML_cloner::header(); } ########### SETTING THE GLOBALS VARIABLES ######################### $GLOBALS['joomla_compatible'] = $joomla_compatible; $GLOBALS['_CONFIG'] = $_CONFIG; $GLOBALS['clonerPath'] = $clonerPath; $GLOBALS['baDownloadPath'] = $baDownloadPath; $GLOBALS['config_file'] = $config_file; $GLOBALS['lang_array'] = $lang_array; # process the workflow selection switch ($task) { case 'rename_save': case 'rename': clone_rename($option); break; case 'action':
require_once "common.php"; $option = "xcloner"; //###########GLOBALS in effect $GLOBALS['lang_dir'] = $lang_dir; //########### $lang_array = get_avalaible_langs(); // retrieve row selection from forms $cid = $_REQUEST['cid']; if (!is_array($cid)) { $cid = array(0); } if (!$_REQUEST['nohtml']) { if ($task != 'download' and ($_REQUEST['task'] != "refresh" or !$_CONFIG['refresh_mode'])) { //HTML_cloner::header(); $html = new HTML_cloner(); $html->header(); } } //########## SETTING THE GLOBALS VARIABLES ######################### $GLOBALS['joomla_compatible'] = $joomla_compatible; $GLOBALS['_CONFIG'] = $_CONFIG; $GLOBALS['clonerPath'] = $clonerPath; $GLOBALS['baDownloadPath'] = $baDownloadPath; $GLOBALS['config_file'] = $config_file; $GLOBALS['lang_array'] = $lang_array; openXLog(); // process the workflow selection switch ($task) { case 'rename_save': case 'rename': clone_rename($option);