Esempio n. 1
0
                    $customer_password = JRequest::getString('customer_password', '', 'post', JREQUEST_ALLOWRAW);
                    $customer_info = array('username' => $post['customer_username'], 'password' => $customer_password);
                    $session->set($login_identifier, true, 'jsntemplatesession');
                    $session->set($customer_info_identifier, $customer_info, 'jsntemplatesession');
                }
            } else {
                $customer_info = array('username' => '', 'password' => '');
                $session->set($login_identifier, true, 'jsntemplatesession');
                $session->set($customer_info_identifier, $customer_info, 'jsntemplatesession');
                $authentication = true;
            }
        }
        break;
    case 'download_modified_file':
        $file_name = JRequest::getCmd('modified_file_name', '', 'POST');
        if ($obj_updater_helper->downloadFile('zip', $file_name)) {
            jexit();
        } else {
            JError::raiseWarning('SOME_ERROR_CODE', JText::_('JSN_UPDATE_BACKUP_FILE_NOT_FOUND'));
        }
        break;
    default:
        break;
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php 
echo $this->language;
?>
" lang="<?php 
echo $this->language;