xoops_version.php
File xoops_version.php
has 896 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/*
* You may not change or alter any portion of this comment or credits
* of supporting developers from this source code or any supporting source code
* which is considered copyrighted (c) material of the original comment or credit authors.
Consider simplifying this complex logical expression. Open
Open
if (!empty($_POST['fct']) && !empty($_POST['op']) && !empty($_POST['diranme']) && $_POST['fct'] === 'modulesadmin'
&& $_POST['op'] === 'update_ok'
&& $_POST['dirname'] == $modversion['dirname']
) {
include __DIR__ . '/include/onupdate.inc.php';
Line exceeds 120 characters; contains 142 characters Open
Open
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">' . "\r\n";
- Exclude checks
Line exceeds 120 characters; contains 134 characters Open
Open
echo '<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xml:lang="en" lang="en"><head>' . "\r\n";
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['config'][] = [
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
];
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
];
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
];
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
];
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['config'][] = [
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['config'][] = [
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['config'][] = [
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
];
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['config'][] = [
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
];
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['config'][] = [
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
];
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
];
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['config'][] = [
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['config'][] = [
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['config'][] = [
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
];
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
];
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['config'][] = [
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['config'][] = [
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['search']['func'] = "apcal{$mydirnumber}_search";
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['notification']['category'][1]['title'] = _MI_APCAL_GLOBAL_NOTIFY;
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['notification']['category'][1]['subscribe_from'] = array('index.php');
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['notification']['category'][2]['title'] = _MI_APCAL_CATEGORY_NOTIFY;
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['notification']['category'][3]['title'] = _MI_APCAL_EVENT_NOTIFY;
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['notification']['event'][1]['mail_template'] = 'global_newevent_notify';
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['onUpdate'] = 'include/onupdate.php';
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['config'][] = [
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
];
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['config'][] = [
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['notification']['category'][1]['description'] = _MI_APCAL_GLOBAL_NOTIFYDSC;
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 0 Open
Open
}
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['notification']['category'][3]['subscribe_from'] = array('index.php');
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['onInstall'] = 'include/oninstall.php';
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
];
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['config'][] = [
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['config'][] = [
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['config'][] = [
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['comments']['callback']['update'] = 'apcal_comments_update';
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['hasNotification'] = 1;
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['notification']['lookup_func'] = "apcal{$mydirnumber}_notify_iteminfo";
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['notification']['category'][3]['name'] = 'event';
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['notification']['category'][3]['allow_bookmark'] = 1;
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['notification']['event'][1]['caption'] = _MI_APCAL_GLOBAL_NEWEVENT_NOTIFYCAP;
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['notification']['event'][2]['name'] = 'new_event';
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['config'][] = [
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['config'][] = [
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
];
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['notification']['event'][2]['mail_subject'] = _MI_APCAL_CATEGORY_NEWEVENT_NOTIFYSBJ;
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['config'][] = [
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
];
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
];
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
];
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['comments']['callbackFile'] = 'include/comment_functions.php';
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['notification']['category'][2]['allow_bookmark'] = 1;
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
];
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
];
- Exclude checks
Line indented incorrectly; expected at least 5 spaces, found 4 Open
Open
include __DIR__ . '/include/onupdate.inc.php';
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['config'][] = [
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['notification']['event'][2]['description'] = _MI_APCAL_CATEGORY_NEWEVENT_NOTIFYDSC;
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
];
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
];
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
];
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['search']['file'] = 'include/search.inc.php';
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['notification']['category'][3]['description'] = _MI_APCAL_EVENT_NOTIFYDSC;
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['notification']['event'][2]['category'] = 'category';
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['notification']['event'][2]['title'] = _MI_APCAL_CATEGORY_NEWEVENT_NOTIFY;
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['config'][] = [
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['config'][] = [
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['notification']['lookup_file'] = 'include/notification.inc.php';
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['notification']['event'][1]['category'] = 'global';
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['notification']['event'][1]['description'] = _MI_APCAL_GLOBAL_NEWEVENT_NOTIFYDSC;
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['config'][] = [
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['notification']['category'][1]['name'] = 'global';
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['notification']['event'][2]['mail_template'] = 'category_newevent_notify';
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
) {
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['comments']['itemName'] = 'event_id';
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['notification']['category'][2]['item_name'] = 'cid';
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['notification']['category'][3]['item_name'] = 'event_id';
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
];
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['config'][] = [
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
];
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['config'][] = [
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['hasComments'] = 1;
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['comments']['callback']['approve'] = 'apcal_comments_approve';
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['templates'] = [
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['notification']['category'][2]['name'] = 'category';
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['notification']['category'][2]['description'] = _MI_APCAL_CATEGORY_NOTIFYDSC;
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['notification']['event'][1]['title'] = _MI_APCAL_GLOBAL_NEWEVENT_NOTIFY;
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
];
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['config'][] = [
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
];
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
];
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['config'][] = [
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['config'][] = [
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
];
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
];
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
];
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
];
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['comments']['pageName'] = 'index.php';
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['notification']['event'][1]['name'] = 'new_event';
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['notification']['event'][1]['mail_subject'] = _MI_APCAL_GLOBAL_NEWEVENT_NOTIFYSBJ;
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['config'][] = [
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['hasSearch'] = 1;
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['notification']['category'][2]['subscribe_from'] = array('index.php');
- Exclude checks
Line indented incorrectly; expected at least 1 spaces, found 0 Open
Open
$modversion['notification']['event'][2]['caption'] = _MI_APCAL_CATEGORY_NEWEVENT_NOTIFYCAP;
- Exclude checks
Line indented incorrectly; expected 1 spaces, found 0 Open
Open
if (!empty($_POST['fct']) && !empty($_POST['op']) && !empty($_POST['diranme']) && $_POST['fct'] === 'modulesadmin'
- Exclude checks