Sfoglia il codice sorgente

Merge branch 'master' of https://github.com/boonex/dolphin

AntonLV 13 anni fa
parent
commit
e97040b723
100 ha cambiato i file con 0 aggiunte e 3283 eliminazioni
  1. 0 3
      administration/.htaccess
  2. 0 46
      administration/admin_tools.php
  3. 0 56
      administration/advanced_settings.php
  4. 0 517
      administration/antispam.php
  5. 0 330
      administration/basic_settings.php
  6. 0 133
      administration/cache.php
  7. 0 329
      administration/categories.php
  8. 0 184
      administration/email_templates.php
  9. 0 55
      administration/host_tools.php
  10. 0 61
      administration/ip_blacklist.php
  11. 0 45
      administration/js/email_templates.js
  12. 0 7
      administration/js/functions.admin.js
  13. 0 125
      administration/mobileBuilder.php
  14. 0 493
      administration/notifies.php
  15. 0 28
      administration/notify_preview.php
  16. 0 31
      administration/phpinfo.php
  17. 0 59
      administration/settings.php
  18. 0 18
      administration/templates/base/antispam_akismet.html
  19. 0 5
      administration/templates/base/antispam_dnsbl_help.html
  20. 0 40
      administration/templates/base/antispam_dnsbl_recheck.html
  21. 0 18
      administration/templates/base/antispam_log.html
  22. 0 37
      administration/templates/base/antispam_manage_dnsbl.html
  23. 0 11
      administration/templates/base/categories.html
  24. 0 13
      administration/templates/base/categories_list.html
  25. 0 133
      administration/templates/base/css/admin.css
  26. 0 20
      administration/templates/base/css/anchor.css
  27. 0 3
      administration/templates/base/css/default.css
  28. 0 3
      administration/templates/base/css/forms_adv.css
  29. 0 3
      administration/templates/base/css/forms_extra.css
  30. 0 347
      administration/templates/base/css/general.css
  31. 0 71
      administration/templates/base/css/index.css
  32. 0 1
      administration/templates/base/css/mobile.css
  33. 0 23
      administration/templates/base/css/mobile_builder.css
  34. 0 17
      administration/templates/base/css/settings.css
  35. 0 4
      administration/templates/base/default.html
  36. 0 3
      administration/templates/base/design_box_content.html
  37. 0 11
      administration/templates/base/email_templates.html
  38. BIN
      administration/templates/base/images/arrow_down.gif
  39. BIN
      administration/templates/base/images/arrow_up.gif
  40. BIN
      administration/templates/base/images/block_header.gif
  41. BIN
      administration/templates/base/images/block_item_bg.gif
  42. BIN
      administration/templates/base/images/block_item_in_bg.gif
  43. BIN
      administration/templates/base/images/bn_footer.png
  44. BIN
      administration/templates/base/images/bn_header.png
  45. BIN
      administration/templates/base/images/boonex-logo-footer.png
  46. BIN
      administration/templates/base/images/bottom_bord.gif
  47. BIN
      administration/templates/base/images/bx-promo-cont.png
  48. BIN
      administration/templates/base/images/bx-promo-head.png
  49. BIN
      administration/templates/base/images/bx-promo-tail.png
  50. BIN
      administration/templates/base/images/close.gif
  51. BIN
      administration/templates/base/images/col_cont.gif
  52. BIN
      administration/templates/base/images/col_slider_bg.gif
  53. BIN
      administration/templates/base/images/custom_item_bg.gif
  54. BIN
      administration/templates/base/images/head_bg.gif
  55. BIN
      administration/templates/base/images/head_ti_left.gif
  56. BIN
      administration/templates/base/images/head_ti_right.gif
  57. BIN
      administration/templates/base/images/header_bg.png
  58. BIN
      administration/templates/base/images/icons/dashboard_admin.png
  59. BIN
      administration/templates/base/images/icons/dashboard_bx_400days.png
  60. BIN
      administration/templates/base/images/icons/dashboard_bx_90days.png
  61. BIN
      administration/templates/base/images/icons/dashboard_bx_premium.png
  62. BIN
      administration/templates/base/images/icons/dashboard_bx_prime.png
  63. BIN
      administration/templates/base/images/icons/dashboard_bx_unlim.png
  64. BIN
      administration/templates/base/images/icons/dashboard_cache.png
  65. BIN
      administration/templates/base/images/icons/dashboard_info.png
  66. BIN
      administration/templates/base/images/icons/dashboard_mails.png
  67. BIN
      administration/templates/base/images/icons/dashboard_users.png
  68. BIN
      administration/templates/base/images/icons/hosting_promo.png
  69. BIN
      administration/templates/base/images/icons/info.gif
  70. BIN
      administration/templates/base/images/icons/mm_builders.png
  71. BIN
      administration/templates/base/images/icons/mm_extensions.png
  72. BIN
      administration/templates/base/images/icons/mm_settings.png
  73. BIN
      administration/templates/base/images/icons/mm_tools.png
  74. BIN
      administration/templates/base/images/icons/mm_users.png
  75. BIN
      administration/templates/base/images/icons/mmi_admin_password.gif
  76. BIN
      administration/templates/base/images/icons/mmi_advanced_settings.gif
  77. BIN
      administration/templates/base/images/icons/mmi_antispam.png
  78. BIN
      administration/templates/base/images/icons/mmi_banners.gif
  79. BIN
      administration/templates/base/images/icons/mmi_basic_settings.gif
  80. BIN
      administration/templates/base/images/icons/mmi_categories_settings.gif
  81. BIN
      administration/templates/base/images/icons/mmi_css_styles.gif
  82. BIN
      administration/templates/base/images/icons/mmi_database_backup.gif
  83. BIN
      administration/templates/base/images/icons/mmi_database_prunning.gif
  84. BIN
      administration/templates/base/images/icons/mmi_email_templates.gif
  85. BIN
      administration/templates/base/images/icons/mmi_flash_apps.gif
  86. BIN
      administration/templates/base/images/icons/mmi_host_tools.gif
  87. BIN
      administration/templates/base/images/icons/mmi_ip_blacklist.gif
  88. BIN
      administration/templates/base/images/icons/mmi_languages_settings.gif
  89. BIN
      administration/templates/base/images/icons/mmi_mass_mailer.gif
  90. BIN
      administration/templates/base/images/icons/mmi_member_menu_builder.gif
  91. BIN
      administration/templates/base/images/icons/mmi_members.gif
  92. BIN
      administration/templates/base/images/icons/mmi_membership_levels.gif
  93. BIN
      administration/templates/base/images/icons/mmi_meta_tags.gif
  94. BIN
      administration/templates/base/images/icons/mmi_mobile_builder.png
  95. BIN
      administration/templates/base/images/icons/mmi_moderation_settings.gif
  96. BIN
      administration/templates/base/images/icons/mmi_modules.gif
  97. BIN
      administration/templates/base/images/icons/mmi_navigation_menu_builder.gif
  98. BIN
      administration/templates/base/images/icons/mmi_pages_blocks_builder.gif
  99. BIN
      administration/templates/base/images/icons/mmi_permalinks.gif
  100. BIN
      administration/templates/base/images/icons/mmi_predefined_values.gif

+ 0 - 3
administration/.htaccess

@@ -1,3 +0,0 @@
-<IfModule mod_rewrite.c>
-RewriteEngine off
-</IfModule>

+ 0 - 46
administration/admin_tools.php

@@ -1,46 +0,0 @@
-<?php
-
-// TODO: remake according to new design and principles, site setup part leave in admin and remake other functionality move to user part
-
-require_once( '../inc/header.inc.php' );
-require_once( BX_DIRECTORY_PATH_INC . 'design.inc.php' );
-require_once( BX_DIRECTORY_PATH_INC . 'admin_design.inc.php' );
-
-require_once( BX_DIRECTORY_PATH_CLASSES . 'BxDolAdminTools.php' );
-
-$logged['admin'] = member_auth( 1, true, true );
-
-$oAdmTools = new BxDolAdminTools();
-function PageCompAdmTools($oAdmTools) {
-    $sRetHtml = $oAdmTools->GenCommonCode();
-
-    switch (bx_get('action')) {
-        case 'perm_table':
-            $sRetHtml .= $oAdmTools->GenPermTable();
-            break;
-        case 'main_params':
-            $sRetHtml .= $oAdmTools->GenMainParamsTable();
-            break;
-        case 'main_page':
-            $sRetHtml .= $oAdmTools->GenTabbedPage();
-            break;
-        default:
-            $sRetHtml .= $oAdmTools->GenTabbedPage();
-            break;
-    }
-
-    return $sRetHtml;
-}
-
-$iNameIndex = 9;
-$_page = array(
-    'name_index' => $iNameIndex,
-    'css_name' => array('forms_adv.css'),
-    'header' => _t('_adm_admtools_title'),
-    'header_text' => _t('_adm_admtools_title')
-);
-$_page_cont[$iNameIndex]['page_main_code'] = PageCompAdmTools($oAdmTools);
-
-PageCodeAdmin();
-
-?>

+ 0 - 56
administration/advanced_settings.php

@@ -1,56 +0,0 @@
-<?php
-
-// TODO: remake according to new design and principles, site setup part leave in admin and remake other functionality move to user part
-
-/***************************************************************************
-*                            Dolphin Smart Community Builder
-*                              -----------------
-*     begin                : Mon Mar 23 2006
-*     copyright            : (C) 2006 BoonEx Group
-*     website              : http://www.boonex.com/
-* This file is part of Dolphin - Smart Community Builder
-*
-* Dolphin is free software. This work is licensed under a Creative Commons Attribution 3.0 License.
-* http://creativecommons.org/licenses/by/3.0/
-*
-* Dolphin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
-* without even the implied warranty of  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-* See the Creative Commons Attribution 3.0 License for more details.
-* You should have received a copy of the Creative Commons Attribution 3.0 License along with Dolphin,
-* see license.txt file; if not, write to marketing@boonex.com
-***************************************************************************/
-
-require_once( '../inc/header.inc.php' );
-
-$GLOBALS['iAdminPage'] = 1;
-
-require_once( BX_DIRECTORY_PATH_INC . 'profiles.inc.php' );
-require_once( BX_DIRECTORY_PATH_INC . 'design.inc.php' );
-require_once( BX_DIRECTORY_PATH_INC . 'admin_design.inc.php' );
-require_once( BX_DIRECTORY_PATH_INC . 'utils.inc.php' );
-bx_import('BxDolAdminSettings');
-
-$logged['admin'] = member_auth( 1, true, true );
-
-$oSettings = new BxDolAdminSettings(0);
-
-//--- Process submit ---//
-$sResult = '';
-if(isset($_POST['save']) && isset($_POST['cat'])) {
-    $sResult = $oSettings->saveChanges($_POST);
-}
-
-$iNameIndex = 3;
-$_page = array(
-    'name_index' => $iNameIndex,
-    'css_name' => array('forms_adv.css', 'settings.css'),
-    'header' => _t('_adm_page_cpt_settings'),
-    'header_text' => _t('_adm_box_cpt_settings_advanced')
-);
-$_page_cont[$iNameIndex]['page_result_code'] = $sResult;
-$_page_cont[$iNameIndex]['page_main_code'] = $oSettings->getForm(array('1','3','8','12','15','13','14','23'));
-define('BX_PROMO_CODE', adm_hosting_promo());
-
-PageCodeAdmin();
-
-?>

+ 0 - 517
administration/antispam.php

@@ -1,517 +0,0 @@
-<?php
-
-// TODO: remake according to new design and principles, site setup part leave in admin and remake other functionality move to user part
-
-/***************************************************************************
-*                            Dolphin Smart Community Builder
-*                              -----------------
-*     begin                : Mon Mar 23 2008
-*     copyright            : (C) 2008 BoonEx Group
-*     website              : http://www.boonex.com/
-* This file is part of Dolphin - Smart Community Builder
-*
-* Dolphin is free software. This work is licensed under a Creative Commons Attribution 3.0 License.
-* http://creativecommons.org/licenses/by/3.0/
-*
-* Dolphin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
-* without even the implied warranty of  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-* See the Creative Commons Attribution 3.0 License for more details.
-* You should have received a copy of the Creative Commons Attribution 3.0 License along with Dolphin,
-* see license.txt file; if not, write to marketing@boonex.com
-***************************************************************************/
-
-require_once( '../inc/header.inc.php' );
-require_once( BX_DIRECTORY_PATH_INC . 'design.inc.php' );
-require_once( BX_DIRECTORY_PATH_INC . 'admin_design.inc.php' );
-require_once( BX_DIRECTORY_PATH_INC . 'admin.inc.php' );
-
-bx_import('BxTemplSearchResult');
-$oBxDolDNSBlacklists = bx_instance('BxDolDNSBlacklists');
-
-
-class BxDolAdmFormDnsblAdd extends BxTemplFormView {
-
-    function BxDolAdmFormDnsblAdd ($aChains, $sDefaultMode) {
-
-        $aCustomForm = array(
-
-            'form_attrs' => array(
-            'id' => 'sys-adm-dnsbl-add',
-            'name' => 'sys-adm-dnsbl-add',
-            'action' => BX_DOL_URL_ADMIN . 'antispam.php?action=dnsbl_add&mode='.$sDefaultMode,
-            'method' => 'post',
-            ),
-
-            'params' => array (
-                'db' => array(
-                    'table' => 'sys_dnsbl_rules',
-                    'key' => 'id',
-                    'submit_name' => 'dnsbl_add',
-                ),
-            ),
-
-            'inputs' => array(
-
-                'chain' => array(
-                    'type' => 'select',
-                    'name' => 'chain',
-                    'caption' => _t('_sys_adm_fld_dnsbl_chain'),
-                    'values' => $aChains,
-                    'value' => '',
-                    'required' => true,
-                    'checker' => array (
-                        'func' => 'avail',
-                        'error' => _t ('_sys_adm_form_err_required_field'),
-                    ),
-                    'db' => array (
-                        'pass' => 'Xss',
-                    ),
-                ),
-
-                'zonedomain' => array(
-                    'type' => 'text',
-                    'name' => 'zonedomain',
-                    'caption' => _t('_sys_adm_fld_dnsbl_zonedomain'),
-                    'required' => true,
-                    'checker' => array (
-                        'func' => 'avail',
-                        'error' => _t ('_sys_adm_form_err_required_field'),
-                    ),
-                    'db' => array (
-                        'pass' => 'Xss',
-                    ),
-                ),
-
-                'postvresp' => array(
-                    'type' => 'text',
-                    'name' => 'postvresp',
-                    'caption' => _t('_sys_adm_fld_dnsbl_postvresp'),
-                    'required' => true,
-                    'checker' => array (
-                        'func' => 'avail',
-                        'error' => _t ('_sys_adm_form_err_required_field'),
-                    ),
-                    'db' => array (
-                        'pass' => 'Xss',
-                    ),
-                ),
-
-                'url' => array(
-                    'type' => 'text',
-                    'name' => 'url',
-                    'caption' => _t('_sys_adm_fld_dnsbl_url'),
-                    'db' => array (
-                        'pass' => 'Xss',
-                    ),
-                ),
-
-                'recheck' => array(
-                    'type' => 'text',
-                    'name' => 'recheck',
-                    'caption' => _t('_sys_adm_fld_dnsbl_recheck_url'),
-                    'db' => array (
-                        'pass' => 'Xss',
-                    ),
-                ),
-
-                'comment' => array(
-                    'type' => 'text',
-                    'name' => 'comment',
-                    'caption' => _t('_sys_adm_fld_dnsbl_comment'),
-                    'db' => array (
-                        'pass' => 'Xss',
-                    ),
-                ),
-
-                'active' => array(
-                    'type' => 'select',
-                    'name' => 'active',
-                    'caption' => _t('_sys_adm_fld_dnsbl_active'),
-                    'values' => array (1 => _t('_Yes'), 0 => _t('_No')),
-                    'value' => '1',
-                    'db' => array (
-                        'pass' => 'Int',
-                    ),
-                ),
-
-                'Submit' => array (
-                    'type' => 'submit',
-                    'name' => 'dnsbl_add',
-                    'value' => _t('_Submit'),
-                    'colspan' => true,
-                ),
-            ),
-        );
-
-        parent::BxTemplFormView ($aCustomForm);
-    }
-}
-
-
-
-class BxDolAdmFormDnsblRecheck extends BxTemplFormView {
-
-    function BxDolAdmFormDnsblRecheck ($sTitle, $sId) {
-
-        $aCustomForm = array(
-
-            'form_attrs' => array(
-                'id' => 'sys-adm-dnsbl-recheck',
-                'name' => 'sys-adm-dnsbl-recheck',
-                'onsubmit' => "return bs_sys_adm_dbsbl_recheck($('#$sId').val());",
-                'method' => 'post',
-            ),
-
-            'inputs' => array(
-
-                'test' => array(
-                    'type' => 'text',
-                    'attrs' => array('id' => $sId),
-                    'name' => $sId,
-                    'caption' => $sTitle,
-                    'required' => true,
-                ),
-
-                'Submit' => array (
-                    'type' => 'submit',
-                    'name' => 'dnsbl_recheck',
-                    'value' => _t('_Submit'),
-                    'colspan' => true,
-                ),
-            ),
-        );
-
-        parent::BxTemplFormView ($aCustomForm);
-    }
-}
-
-$logged['admin'] = member_auth( 1, true, true );
-
-$sGlMsg = '';
-
-// Process popups
-if (isset($_GET['popup'])) {
-
-    switch ($_GET['popup']) {
-
-        case 'dnsbl_log':
-            $sPopupTitle = _t('_sys_adm_title_dnsbl_log');
-            $sPopupContent = PageCodeLog ('dnsbl');
-            break;
-
-        case 'dnsbluri_log':
-            $sPopupTitle = _t('_sys_adm_title_dnsbluri_log');
-            $sPopupContent = PageCodeLog ('dnsbluri');
-            break;
-
-        case 'akismet_log':
-            $sPopupTitle = _t('_sys_adm_title_akismet_log');
-            $sPopupContent = PageCodeLog ('akismet');
-            break;
-
-        case 'dnsbl_recheck':
-            $sPopupTitle = _t('_sys_adm_title_dnsbl_recheck');
-            $aChains = array(BX_DOL_DNSBL_CHAIN_SPAMMERS, BX_DOL_DNSBL_CHAIN_WHITELIST);
-            $sPopupContent = PageCodeRecheckPopup ($aChains, _t('_sys_adm_fld_dnsbl_recheck'), 'sys-adm-dnsbl-test', 'dnsbl-recheck-ip');
-            break;
-
-        case 'dnsbluri_recheck':
-            $sPopupTitle = _t('_sys_adm_title_dnsbluri_recheck');
-            $aChains = array(BX_DOL_DNSBL_CHAIN_URIDNS);
-            $sPopupContent = PageCodeRecheckPopup ($aChains, _t('_sys_adm_fld_dnsbluri_recheck'), 'sys-adm-dnsbl-test', 'dnsbl-recheck-uri');
-            break;
-
-        case 'dnsbl_help':
-            $sPopupTitle = _t('_sys_adm_btn_dnsbl_help');
-            $sPopupContent = $GLOBALS['oAdmTemplate']->parseHtmlByName('antispam_dnsbl_help.html', array('text' => _t('_sys_adm_btn_dnsbl_help_text')));
-            break;
-        case 'dnsbluri_help':
-            $sPopupTitle = _t('_sys_adm_btn_dnsbl_help');
-            $sPopupContent = $GLOBALS['oAdmTemplate']->parseHtmlByName('antispam_dnsbl_help.html', array('text' => _t('_sys_adm_btn_dnsbluri_help_text')));
-            break;
-        case 'dnsbl_add':
-            $sPopupTitle = _t('_sys_adm_btn_dnsbl_add');
-            $oForm = new BxDolAdmFormDnsblAdd(array ('spammers' => 'spammers', 'whitelist' => 'whitelist'), 'dnsbl');
-            $sPopupContent = $oForm->getCode();
-            break;
-        case 'dnsbluri_add':
-            $sPopupTitle = _t('_sys_adm_btn_dnsbl_add');
-            $oForm = new BxDolAdmFormDnsblAdd(array ('uridns' => 'uridns'), 'dnsbluri');
-            $sPopupContent = $oForm->getCode();
-            break;
-    }
-
-    $aVarsPopup = array (
-        'title' => $sPopupTitle,
-        'content' => $sPopupContent,
-    );
-    echo $GLOBALS['oFunctions']->transBox($GLOBALS['oSysTemplate']->parseHtmlByName('popup.html', $aVarsPopup), true);
-    exit;
-}
-
-// Process actions
-switch (true) {
-
-    case (isset($_GET['action']) && $_GET['action'] == 'log' && isset($_GET['type'])):
-        header("Content-type: text/html; charset=utf-8");
-        echo PageCodeLog ($_GET['type']);
-        exit;
-
-    case (isset($_POST['action']) && isset($_POST['id']) && isset($_POST['test'])):
-
-        $o = bx_instance('BxDolDNSBlacklists');
-        $aChain = $GLOBALS['MySQL']->getAll("SELECT `zonedomain`, `postvresp` FROM `sys_dnsbl_rules` WHERE `id` = '".(int)$_POST['id']."' AND `active` = 1");
-
-        $iRet = BX_DOL_DNSBL_FAILURE;
-        if ($aChain) {
-            if ($_POST['action'] == 'dnsbl-recheck-ip') {
-                $iRet = $o->dnsbl_lookup_ip($aChain, $_POST['test']);
-            } elseif ($_POST['action'] == 'dnsbl-recheck-uri') {
-                $sUrl = preg_replace('/^\w+:\/\//', '', $_POST['test']);
-                $sUrl = preg_replace('/^www\./', '', $sUrl);
-                $oBxDolDNSURIBlacklists = bx_instance('BxDolDNSURIBlacklists');
-                $aUrls = $oBxDolDNSURIBlacklists->validateUrls(array($sUrl));
-                if ($aUrls)
-                    $iRet = $o->dnsbl_lookup_uri($aUrls[0], $aChain);
-            }
-        }
-
-        switch ($iRet) {
-            case BX_DOL_DNSBL_POSITIVE:
-                echo 'LISTED';
-                exit;
-            case BX_DOL_DNSBL_NEGATIVE:
-                echo 'NOT LISTED';
-                exit;
-            default:
-            case BX_DOL_DNSBL_FAILURE:
-                echo 'FAIL';
-                exit;
-        }
-
-    case (isset($_POST['adm-dnsbl-activate'])):
-        foreach($_POST['rules'] as $iRuleId)
-            db_res("UPDATE `sys_dnsbl_rules` SET `active` = 1 WHERE `id` = " . (int)$iRuleId);
-        $oBxDolDNSBlacklists->clearCache();
-        break;
-
-    case (isset($_POST['adm-dnsbl-deactivate'])):
-        foreach($_POST['rules'] as $iRuleId)
-            db_res("UPDATE `sys_dnsbl_rules` SET `active` = 0 WHERE `id` = " . (int)$iRuleId);
-        $oBxDolDNSBlacklists->clearCache();
-        break;
-
-    case (isset($_POST['adm-dnsbl-delete'])):
-        foreach($_POST['rules'] as $iRuleId)
-            db_res("DELETE FROM `sys_dnsbl_rules` WHERE `id` = " . (int)$iRuleId);
-        $oBxDolDNSBlacklists->clearCache();
-        break;
-
-    case (isset($_GET['action']) && 'dnsbl_add' == $_GET['action'] && $_POST['dnsbl_add']):
-        $oForm = new BxDolAdmFormDnsblAdd (array(), bx_get('mode'));
-        $oForm->initChecker();
-        if ($oForm->isSubmittedAndValid () && $oForm->insert ())
-            $sGlMsg = MsgBox(_t('_sys_sucess_result'));
-        else
-            $sGlMsg = MsgBox(_t('_Error Occured'));
-        $oBxDolDNSBlacklists->clearCache();
-        break;
-}
-
-
-$aPages = array (
-    'dnsbl' => array (
-        'option' => 'sys_dnsbl_enable',
-        'title' => _t('_sys_adm_page_cpt_dnsbl'),
-        'url' => BX_DOL_URL_ADMIN . 'antispam.php?mode=dnsbl',
-        'func' => 'PageCodeDNSBL',
-        'func_params' => array(array(BX_DOL_DNSBL_CHAIN_SPAMMERS, BX_DOL_DNSBL_CHAIN_WHITELIST), 'dnsbl'),
-    ),
-    'dnsbluri' => array (
-        'option' => 'sys_uridnsbl_enable',
-        'title' => _t('_sys_adm_page_cpt_uridnsbl'),
-        'url' => BX_DOL_URL_ADMIN . 'antispam.php?mode=dnsbluri',
-        'func' => 'PageCodeDNSBL',
-        'func_params' => array(array(BX_DOL_DNSBL_CHAIN_URIDNS), 'dnsbluri'),
-    ),
-    'akismet' => array (
-        'option' => 'sys_akismet_enable',
-        'title' => _t('_sys_adm_page_cpt_akismet'),
-        'url' => BX_DOL_URL_ADMIN . 'antispam.php?mode=akismet',
-        'func' => 'PageCodeAkismet',
-        'func_params' => array('akismet'),
-    ),
-);
-
-
-if (!isset($_GET['mode']) || !isset($aPages[$_GET['mode']]))
-    $sMode = 'dnsbl';
-else
-    $sMode = $_GET['mode'];
-
-$iNameIndex = 9;
-
-$sActions = '<div class="dbTopMenu">';
-foreach ($aPages as $k => $r)
-    $sActions .= '
-    <div class="' . ($k == $sMode ? 'active' : 'notActive') . '" id="dbmenu_' . $k . '">
-        <span>
-            <a href="' . $r['url'] . '" class="top_members_menu">' . $r['title'] . '</a>
-        </span>
-    </div>';
-$sActions .= '</div>';
-
-$sPageTitle = $aPages[$sMode]['title'];
-$_page_cont[$iNameIndex]['page_main_code'] = call_user_func($aPages[$sMode]['func'], $aPages[$sMode]['func_params'][0], $aPages[$sMode]['func_params'][1]);
-
-$_page = array(
-    'name_index' => $iNameIndex,
-    'header' => $sPageTitle,
-    'header_text' => $sPageTitle,
-    'css_name' => array('forms_adv.css'),
-);
-
-
-
-PageCodeAdmin();
-
-
-
-function PageCodeDNSBL($aChains, $sMode) {
-
-    global $aPages;
-
-    $sControls = BxTemplSearchResult::showAdminActionsPanel('adm-dnsbl-form', array(
-        'adm-dnsbl-delete' => _t('_sys_adm_btn_dnsbl_delete'),
-        'adm-dnsbl-activate' => _t('_sys_adm_btn_dnsbl_activate'),
-        'adm-dnsbl-deactivate' => _t('_sys_adm_btn_dnsbl_deactivate'),
-    ), 'rules');
-
-    $sChains = "'" . implode("','", $aChains) . "'";
-
-    $aRules = $GLOBALS['MySQL']->getAll("SELECT * FROM `sys_dnsbl_rules` WHERE `chain` IN($sChains) ORDER BY `chain`, `added` ");
-    foreach ($aRules as $k => $r) {
-        $aRules[$k]['comment'] = bx_html_attribute ($r['comment']);
-    }
-
-    if (is_array($aRules) && !empty($aRules)) {
-        $s = $GLOBALS['oAdmTemplate']->parseHtmlByName('antispam_manage_dnsbl.html', array(
-            'bx_repeat:items' => $aRules,
-            'controls' => $sControls,
-            'admin_url' => BX_DOL_URL_ADMIN,
-            'global_message' => $GLOBALS['sGlMsg'],
-            'mode' => $sMode,
-            'status' => 'on' == getParam($aPages[$sMode]['option']) ? _t('_sys_adm_enabled') : _t('_sys_adm_disabled'),
-            'status_class' => 'sys-adm-' . ('on' == getParam($aPages[$sMode]['option']) ? 'enabled' : 'disabled'),
-        ));
-    } else {
-        $s = $GLOBALS['oAdmTemplate']->parseHtmlByName('antispam_manage_dnsbl.html', array(
-            'bx_repeat:items' => array(),
-            'controls' => '',
-            'admin_url' => BX_DOL_URL_ADMIN,
-            'global_message' => MsgBox(_t('_Empty')),
-            'mode' => $sMode,
-            'status' => 'on' == getParam($aPages[$sMode]['option']) ? _t('_sys_adm_enabled') : _t('_sys_adm_disabled'),
-            'status_class' => 'sys-adm-' . ('on' == getParam($aPages[$sMode]['option']) ? 'enabled' : 'disabled'),
-        ));
-    }
-
-    return DesignBoxContent ($GLOBALS['sPageTitle'], $s, 1, $GLOBALS['sActions']);
-}
-
-function PageCodeAkismet($sMode) {
-
-    global $aPages;
-
-    $sKeyStatusClass = '';
-    $sKeyStatus = _t('_sys_adm_akismet_key_empty');
-    if (getParam('sys_akismet_api_key')) {
-
-        $oBxDolAkismet = bx_instance('BxDolAkismet');
-        if ($oBxDolAkismet->oAkismet->isKeyValid()) {
-            $sKeyStatusClass = 'sys-adm-enabled';
-            $sKeyStatus = _t('_sys_adm_akismet_key_valid');
-        } else {
-            $sKeyStatusClass = 'sys-adm-disabled';
-            $sKeyStatus = _t('_sys_adm_akismet_key_invalid');
-        }
-    }
-
-    $s = $GLOBALS['oAdmTemplate']->parseHtmlByName('antispam_akismet.html', array(
-        'admin_url' => BX_DOL_URL_ADMIN,
-        'key_status' => $sKeyStatus,
-        'key_status_class' => $sKeyStatusClass,
-        'status' => 'on' == getParam($aPages[$sMode]['option']) ? _t('_sys_adm_enabled') : _t('_sys_adm_disabled'),
-        'status_class' => 'sys-adm-' . ('on' == getParam($aPages[$sMode]['option']) ? 'enabled' : 'disabled'),
-    ));
-
-    return DesignBoxContent ($GLOBALS['sPageTitle'], $s, 1, $GLOBALS['sActions']);
-}
-
-
-function PageCodeRecheckPopup ($aChains, $sFieldTitle, $sId, $sAction) {
-
-    $sChains = "'" . implode("','", $aChains) . "'";
-    $aRules = $GLOBALS['MySQL']->getAll("SELECT * FROM `sys_dnsbl_rules` WHERE `chain` IN($sChains) AND `active` = 1 ORDER BY `chain`, `added` ");
-    $oForm = new BxDolAdmFormDnsblRecheck($sFieldTitle, $sId);
-    return $GLOBALS['oAdmTemplate']->parseHtmlByName('antispam_dnsbl_recheck.html', array(
-        'txt_listed' => bx_js_string(_t('_sys_adm_dnsbl_listed')),
-        'txt_not_listed' => bx_js_string(_t('_sys_adm_dnsbl_not_listed')),
-        'txt_failed' => bx_js_string(_t('_sys_adm_dnsbl_failed')),
-        'form' => $oForm->getCode(),
-        'action' => $sAction,
-        'admin_url' => BX_DOL_URL_ADMIN,
-        'bx_repeat:items' => $aRules,
-    ));
-}
-
-function PageCodeLog ($sMode) {
-
-    switch ($sMode) {
-        case 'dnsbl':
-        case 'dnsbluri':
-        case 'akismet':
-            break;
-        default:
-            $sMode = 'dnsbl';
-    }
-
-    $iPage = isset($_GET['page']) && (int)$_GET['page'] > 0 ? (int)$_GET['page'] : 1;
-    $iPerPage = 12;
-    $iStart = ($iPage-1) * $iPerPage;
-
-    $aLog = $GLOBALS['MySQL']->getAll("SELECT SQL_CALC_FOUND_ROWS * FROM `sys_antispam_block_log` WHERE `type` = '$sMode' ORDER BY `added` DESC LIMIT $iStart, $iPerPage");
-    $iCount = $GLOBALS['MySQL']->getOne("SELECT FOUND_ROWS()");
-    foreach ($aLog as $k => $r) {
-        $aLog[$k]['ip'] = long2ip ($r['ip']);
-        $aLog[$k]['member_url'] = $r['member_id'] ? getProfileLink($r['member_id']) : 'javascript:void(0);';
-        $aLog[$k]['member_nickname'] = $r['member_id'] ? getNickName($r['member_id']) : _t('_Guest');
-        $aLog[$k]['extra'] = bx_html_attribute ($r['extra']);
-        $aLog[$k]['ago'] = _format_when (time() - $r['added']);
-    }
-
-    $sPaginate = '';
-    if ($iCount > $iPerPage) {
-        $sUrlStart = BX_DOL_URL_ADMIN . 'antispam.php?action=log&type='.$sMode;
-        $oPaginate = new BxDolPaginate(array(
-            'page_url' => 'javascript:void(0);',
-            'count' => $iCount,
-            'per_page' => $iPerPage,
-            'page' => $iPage,
-            'on_change_page' => "getHtmlData('sys-adm-antispam-log', '{$sUrlStart}&page={page}');",
-        ));
-
-        $sPaginate = $oPaginate->getSimplePaginate(false, -1, -1, false);
-    }
-
-    if (is_array($aLog) && !empty($aLog)) {
-        return $GLOBALS['oAdmTemplate']->parseHtmlByName('antispam_log.html', array(
-            'bx_repeat:items' => $aLog,
-            'paginate' => $sPaginate,
-        ));
-    } else {
-        return MsgBox(_t('_Empty'));
-    }
-}
-
-?>

+ 0 - 330
administration/basic_settings.php

@@ -1,330 +0,0 @@
-<?php
-
-// TODO: remake according to new design and principles, site setup part leave in admin and remake other functionality move to user part
-
-/***************************************************************************
-*                            Dolphin Smart Community Builder
-*                              -----------------
-*     begin                : Mon Mar 23 2006
-*     copyright            : (C) 2006 BoonEx Group
-*     website              : http://www.boonex.com/
-* This file is part of Dolphin - Smart Community Builder
-*
-* Dolphin is free software. This work is licensed under a Creative Commons Attribution 3.0 License.
-* http://creativecommons.org/licenses/by/3.0/
-*
-* Dolphin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
-* without even the implied warranty of  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-* See the Creative Commons Attribution 3.0 License for more details.
-* You should have received a copy of the Creative Commons Attribution 3.0 License along with Dolphin,
-* see license.txt file; if not, write to marketing@boonex.com
-***************************************************************************/
-
-define('BX_SECURITY_EXCEPTIONS', true);
-$aBxSecurityExceptions = array(
-    'POST.content_text',
-    'REQUEST.content_text',
-);
-
-require_once( '../inc/header.inc.php' );
-
-$GLOBALS['iAdminPage'] = 1;
-
-require_once( BX_DIRECTORY_PATH_INC . 'profiles.inc.php' );
-require_once( BX_DIRECTORY_PATH_INC . 'design.inc.php' );
-require_once( BX_DIRECTORY_PATH_INC . 'admin_design.inc.php' );
-require_once( BX_DIRECTORY_PATH_INC . 'utils.inc.php' );
-bx_import('BxDolAdminSettings');
-
-$logged['admin'] = member_auth( 1, true, true );
-
-//--- Process submit ---//
-$mixedResultLogo = '';
-$mixedResultPromo = '';
-
-$oSettings = new BxDolAdminSettings(7);
-
-//--- Logo uploading ---//
-if(isset($_POST['upload']) && isset($_FILES['new_file']))
-    $mixedResultLogo = setLogo($_POST, $_FILES);
-
-//--- Promo image uploading ---//
-if(isset($_POST['save_image']) && isset($_FILES['browse_image'])) {
-    setParam('enable_flash_promo', ($_POST['type'] == 'image' ? 'on' : ''));
-
-    $mixedResultPromo = setPromoImage($_FILES);
-}
-//--- Promo image deleting ---//
-if (!empty($_GET['delete'])) {
-    $sFile = process_pass_data( $_GET['delete'] );
-
-    $sFile = str_replace('\\', '', $sFile);
-    $sFile = str_replace('/', '', $sFile);
-
-    $bResult = @unlink($dir['imagesPromo'] . $sFile) && @unlink($dir['imagesPromo'] . 'original/' . $sFile);
-
-    if(!$bResult)
-       $mixedResultPromo = '_adm_txt_settings_file_cannot_delete';
-}
-
-//--- Site's settings saving ---//
-if(isset($_POST['save']) && isset($_POST['cat'])) {
-    $sResult = $oSettings->saveChanges($_POST);
-}
-//--- Promo text saving ---//
-if(isset($_POST['save_text']) && isset($_POST['content_text'])) {
-    setParam('enable_flash_promo', ($_POST['type'] == 'text' ? '' : 'on'));
-    setParam('custom_promo_code',  process_db_input($_POST['content_text'], BX_TAGS_VALIDATE));
-}
-
-$iNameIndex = 4;
-$_page = array(
-    'name_index' => $iNameIndex,
-    'css_name' => array('forms_adv.css', 'settings.css'),
-    'header' => _t('_adm_page_cpt_settings')
-);
-$_page_cont[$iNameIndex] = array(
-    'page_code_settings' => DesignBoxAdmin(_t('_adm_box_cpt_settings_main'), $GLOBALS['oAdmTemplate']->parseHtmlByName('design_box_content.html', array('content' => $oSettings->getForm()))),
-    'page_code_logo' => PageCodeLogo($mixedResultLogo),
-    'page_code_promo' => PageCodePromo($mixedResultPromo)
-);
-
-PageCodeAdmin();
-
-function PageCodePromo($mixedResultPromo) {
-    $aFormImage = array(
-        'form_attrs' => array(
-            'id' => 'adm-settings-form-promo-image',
-            'name' => 'adm-settings-form-promo-image',
-            'action' => $GLOBALS['site']['url_admin'] . 'basic_settings.php',
-            'method' => 'post',
-            'enctype' => 'multipart/form-data'
-        ),
-        'params' => array(),
-        'inputs' => array(
-            'type' => array(
-                'type' => 'hidden',
-                'name' => 'type',
-                'value' => 'image',
-            ),
-            'content_text' => array(
-                'type' => 'custom',
-                'caption' => _t('_adm_txt_settings_promo_uploaded'),
-                'content' => getPromoImages(),
-            ),
-            'browse_image' => array(
-                'type' => 'file',
-                'name' => 'browse_image',
-                'caption' => _t('_adm_txt_settings_promo_browse'),
-                'value' => '',
-            ),
-            'save_image' => array(
-                'type' => 'submit',
-                'name' => 'save_image',
-                'value' => _t("_adm_btn_settings_save"),
-            )
-        )
-    );
-    $oFormImage = new BxTemplFormView($aFormImage);
-
-    $aFormText = array(
-        'form_attrs' => array(
-            'id' => 'adm-settings-form-promo-text',
-            'name' => 'adm-settings-form-promo-text',
-            'action' => $GLOBALS['site']['url_admin'] . 'basic_settings.php',
-            'method' => 'post',
-            'enctype' => 'multipart/form-data'
-        ),
-        'params' => array(),
-        'inputs' => array(
-            'type' => array(
-                'type' => 'hidden',
-                'name' => 'type',
-                'value' => 'text',
-            ),
-            'content_text' => array(
-                'type' => 'textarea',
-                'name' => 'content_text',
-                'caption' => '',
-                'value' => stripslashes(getParam('custom_promo_code')),
-                'colspan' => true,
-                'html' => 2,
-                'db' => array (
-                    'pass' => 'XssHtml',
-                ),
-            ),
-            'save_text' => array(
-                'type' => 'submit',
-                'name' => 'save_text',
-                'value' => _t("_adm_btn_settings_save"),
-            )
-        )
-    );
-    $oFormText = new BxTemplFormView($aFormText);
-
-    $bPromoImage = getParam('enable_flash_promo') == 'on';
-    $sResult = $GLOBALS['oAdmTemplate']->parseHtmlByName('promo.html', array(
-        'checked_image' => $bPromoImage ? 'checked="checked"' : '',
-        'checked_text' => !$bPromoImage ? 'checked="checked"' : '',
-        'style_image' => $bPromoImage ? '' : 'display:none;',
-        'style_text' => !$bPromoImage ? '' : 'display:none;',
-        'content_image' => $oFormImage->getCode(),
-        'content_text' => $oFormText->getCode()
-    ));
-
-    return DesignBoxAdmin(_t('_adm_box_cpt_promo'), $sResult);
-}
-
-function PageCodeLogo($mixedResultLogo) {
-    $aForm = array(
-        'form_attrs' => array(
-            'id' => 'adm-settings-form-logo',
-            'name' => 'adm-settings-form-logo',
-            'action' => $GLOBALS['site']['url_admin'] . 'basic_settings.php',
-            'method' => 'post',
-            'enctype' => 'multipart/form-data'
-        ),
-        'params' => array(),
-        'inputs' => array(
-            'upload_header_beg' => array(
-                'type' => 'block_header',
-                'caption' => _t('_adm_txt_settings_logo_header'),
-                'collapsable' => false,
-                'collapsed' => false
-            ),
-            'old_file' => array(
-                'type' => 'custom',
-                'content' => getMainLogo(),
-                'colspan' => true
-            ),
-            'new_file' => array(
-                'type' => 'file',
-                'name' => 'new_file',
-                'caption' => _t('_adm_txt_settings_logo_upload'),
-                'value' => '',
-            ),
-            'resize_header_beg' => array(
-                'type' => 'block_header',
-                'caption' => _t('_adm_txt_settings_resize_header'),
-                'collapsable' => false,
-                'collapsed' => false
-            ),
-            'resize' => array(
-                'type' => 'checkbox',
-                'name' => 'resize',
-                'caption' => _t('_adm_txt_settings_resize_enable'),
-                'value' => 'yes',
-                'checked' => true
-            ),
-            'new_width' => array(
-                'type' => 'text',
-                'name' => 'new_width',
-                'caption' => _t('_adm_txt_settings_resize_width'),
-                'value' => '64'
-            ),
-            'new_height' => array(
-                'type' => 'text',
-                'name' => 'new_height',
-                'caption' => _t('_adm_txt_settings_resize_height'),
-                'value' => '64'
-            ),
-            'resize_header_end' => array(
-                'type' => 'block_end'
-            ),
-            'upload' => array(
-                'type' => 'submit',
-                'name' => 'upload',
-                'value' => _t("_adm_btn_settings_upload"),
-            )
-        )
-    );
-
-    $oForm = new BxTemplFormView($aForm);
-    $sResult = $GLOBALS['oAdmTemplate']->parseHtmlByName('design_box_content.html', array('content' => $oForm->getCode()));
-
-    if($mixedResultLogo !== true && !empty($mixedResultLogo))
-        $sResult = MsgBox(_t($mixedResultLogo), 3) . $sResult;
-
-    return DesignBoxAdmin(_t('_adm_box_cpt_logo'), $sResult);
-}
-
-function setLogo(&$aData, &$aFile) {
-    global $dir;
-
-    $aFileInfo = getimagesize($aFile['new_file']['tmp_name']);
-    if(empty($aFileInfo))
-        return '_adm_txt_settings_file_not_image';
-
-    $sExt = '';
-    switch( $aFileInfo['mime'] ) {
-        case 'image/jpeg': $sExt = 'jpg'; break;
-        case 'image/gif':  $sExt = 'gif'; break;
-        case 'image/png':  $sExt = 'png'; break;
-    }
-    if(empty($sExt))
-        return '_adm_txt_settings_file_wrong_format';
-
-    $sFileName = mktime() . '.' . $sExt;
-    $sFilePath = $dir['mediaImages'] . $sFileName;
-    if(!move_uploaded_file($aFile['new_file']['tmp_name'], $sFilePath))
-        return '_adm_txt_settings_file_cannot_move';
-
-    if(!empty($aData['resize'])) {
-        $iWidth = (int)$aData['new_width'];
-        $iHeight = (int)$aData['new_height'];
-        if($iWidth <= 0 || $iHeight <= 0)
-            return '_adm_txt_settings_logo_wrong_size';
-
-        if(imageResize($sFilePath, $sFilePath, $iWidth, $iHeight) != IMAGE_ERROR_SUCCESS)
-            return '_adm_txt_settings_image_cannot_resize';
-    }
-
-    @unlink($dir['mediaImages'] . getParam('sys_main_logo'));
-    setParam('sys_main_logo', $sFileName);
-
-    return true;
-}
-function getPromoImages() {
-    global $site;
-
-    $aFiles = getPromoImagesArray();
-    if(empty($aFiles))
-       return MsgBox(_t('_Empty'));
-
-    $aResult = array();
-    foreach($aFiles as $sFile) {
-        $aResult[] = array(
-            'delete_url' => $GLOBALS['site']['url_admin'] . 'basic_settings.php?delete=' . urlencode($sFile),
-            'title' => $sFile
-        );
-    }
-    return $GLOBALS['oAdmTemplate']->parseHtmlByName('promo_images.html', array(
-        'bx_repeat:images' => $aResult,
-        'images_url' => $site['imagesPromo']
-    ));
-}
-function setPromoImage(&$aFile) {
-    global $dir;
-
-    $aFileInfo = getimagesize($aFile['browse_image']['tmp_name']);
-    if(empty($aFileInfo))
-        return '_adm_txt_settings_file_not_image';
-
-    $sExt = '';
-    switch( $aFileInfo['mime'] ) {
-        case 'image/jpeg': $sExt = 'jpg'; break;
-        case 'image/gif':  $sExt = 'gif'; break;
-        case 'image/png':  $sExt = 'png'; break;
-    }
-    if(empty($sExt))
-        return '_adm_txt_settings_file_wrong_format';
-
-    $sFileName = $aFile['browse_image']['name'];
-    $sFilePath = $dir['imagesPromo'] . 'original/' . $sFileName;
-    if(!move_uploaded_file($aFile['browse_image']['tmp_name'], $sFilePath))
-        return '_adm_txt_settings_file_cannot_move';
-
-    ResizeAllPromos();
-    return true;
-}
-?>

+ 0 - 133
administration/cache.php

@@ -1,133 +0,0 @@
-<?php
-
-// TODO: remake according to new design and principles, site setup part leave in admin and remake other functionality move to user part
-
-/***************************************************************************
-*                            Dolphin Smart Community Builder
-*                              -----------------
-*     begin                : Mon Mar 23 2006
-*     copyright            : (C) 2006 BoonEx Group
-*     website              : http://www.boonex.com/
-* This file is part of Dolphin - Smart Community Builder
-*
-* Dolphin is free software. This work is licensed under a Creative Commons Attribution 3.0 License.
-* http://creativecommons.org/licenses/by/3.0/
-*
-* Dolphin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
-* without even the implied warranty of  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-* See the Creative Commons Attribution 3.0 License for more details.
-* You should have received a copy of the Creative Commons Attribution 3.0 License along with Dolphin,
-* see license.txt file; if not, write to marketing@boonex.com
-***************************************************************************/
-
-require_once( '../inc/header.inc.php' );
-require_once( BX_DIRECTORY_PATH_INC . 'profiles.inc.php' );
-require_once( BX_DIRECTORY_PATH_INC . 'design.inc.php' );
-require_once( BX_DIRECTORY_PATH_INC . 'admin_design.inc.php' );
-require_once( BX_DIRECTORY_PATH_PLUGINS . 'Services_JSON.php' );
-
-$logged['admin'] = member_auth( 1, true, true );
-
-$aResult = array();
-switch($_POST['type']) {
-    case 'all':
-        //member menu
-        bx_import('BxDolMemberMenu');
-        $oMemberMenu = new BxDolMemberMenu();
-        $oMemberMenu -> deleteMemberMenuCaches();
-
-        // page blocks
-        bx_import('BxDolPageViewAdmin');
-        $oPageViewCacher = new BxDolPageViewCacher ('', '');
-        $oCachePb = $oPageViewCacher->getBlocksCacheObject ();
-        $aResult = clearCacheObject ($oCachePb, 'pb_');
-        if($aResult['code'] != 0)
-            break;
-
-        // users
-        $aResult = clearCache('user', BX_DIRECTORY_PATH_CACHE);
-        if($aResult['code'] != 0)
-            break;
-
-        // DB
-        $GLOBALS['MySQL']->oParams->clearCache();
-        $oCacheDb = $GLOBALS['MySQL']->getDbCacheObject();
-        $aResult = clearCacheObject ($oCacheDb, 'db_');
-        if($aResult['code'] != 0)
-            break;
-
-        // templates
-        $oCacheTemplates = $GLOBALS['oSysTemplate']->getTemplatesCacheObject();
-        $aResult = clearCacheObject($oCacheTemplates, $GLOBALS['oSysTemplate']->_sCacheFilePrefix);
-        if($aResult['code'] != 0)
-            break;
-
-        // CSS
-        $aResult = clearCache($GLOBALS['oSysTemplate']->_sCssCachePrefix, BX_DIRECTORY_PATH_CACHE_PUBLIC);
-        if($aResult['code'] != 0)
-            break;
-
-        // JS
-        $aResult = clearCache($GLOBALS['oSysTemplate']->_sJsCachePrefix, BX_DIRECTORY_PATH_CACHE_PUBLIC);
-        break;
-
-    case 'pb':
-        bx_import('BxDolPageViewAdmin');
-        $oPageViewCacher = new BxDolPageViewCacher ('', '');
-        $oCachePb = $oPageViewCacher->getBlocksCacheObject ();
-        $aResult = clearCacheObject ($oCachePb, 'pb_');
-        break;
-
-    case 'users':
-        //member menu
-        bx_import('BxDolMemberMenu');
-        $oMemberMenu = new BxDolMemberMenu();
-        $oMemberMenu -> deleteMemberMenuCaches();
-
-        $aResult = clearCache('user', BX_DIRECTORY_PATH_CACHE);
-        break;
-
-    case 'db':
-        $GLOBALS['MySQL']->oParams->clearCache();
-        $oCacheDb = $GLOBALS['MySQL']->getDbCacheObject();
-        $aResult = clearCacheObject ($oCacheDb, 'db_');
-        break;
-
-    case 'template':
-        $oCacheTemplates = $GLOBALS['oSysTemplate']->getTemplatesCacheObject();
-        $aResult = clearCacheObject($oCacheTemplates, $GLOBALS['oSysTemplate']->_sCacheFilePrefix);
-        break;
-
-    case 'js_css':
-        $aResult = clearCache($GLOBALS['oSysTemplate']->_sCssCachePrefix, BX_DIRECTORY_PATH_CACHE_PUBLIC);
-        if($aResult['code'] == 0)
-            $aResult = clearCache($GLOBALS['oSysTemplate']->_sJsCachePrefix, BX_DIRECTORY_PATH_CACHE_PUBLIC);
-        break;
-}
-
-$oJson = new Services_JSON();
-echo $oJson->encode($aResult);
-exit;
-
-
-function clearCacheObject($oCache, $sPrefix) {
-    if (!$oCache->removeAllByPrefix ($sPrefix))
-        return array('code' => 1, 'message' => _t('_adm_txt_dashboard_cache_clean_failed'));
-    else
-        return array('code' => 0, 'message' => _t('_adm_txt_dashboard_cache_clean_success'));
-}
-
-function clearCache($sPrefix, $sPath) {
-    $aResult = array('code' => 0, 'message' => _t('_adm_txt_dashboard_cache_clean_success'));
-
-    if($rHandler = opendir($sPath)) {
-        while(($sFile = readdir($rHandler)) !== false)
-            if(substr($sFile, 0, strlen($sPrefix)) == $sPrefix)
-                @unlink($sPath . $sFile);
-    }
-    else
-        $aResult = array('code' => 1, 'message' => _t('_adm_txt_dashboard_cache_clean_failed'));
-
-    return $aResult;
-}
-?>

+ 0 - 329
administration/categories.php

@@ -1,329 +0,0 @@
-<?php
-
-// TODO: remake according to new design and principles, site setup part leave in admin and remake other functionality move to user part
-
-/***************************************************************************
-*                            Dolphin Smart Community Builder
-*                              -----------------
-*     begin                : Mon Mar 23 2006
-*     copyright            : (C) 2006 BoonEx Group
-*     website              : http://www.boonex.com/
-* This file is part of Dolphin - Smart Community Builder
-*
-* Dolphin is free software. This work is licensed under a Creative Commons Attribution 3.0 License.
-* http://creativecommons.org/licenses/by/3.0/
-*
-* Dolphin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
-* without even the implied warranty of  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-* See the Creative Commons Attribution 3.0 License for more details.
-* You should have received a copy of the Creative Commons Attribution 3.0 License along with Dolphin,
-* see license.txt file; if not, write to marketing@boonex.com
-***************************************************************************/
-
-define ('BX_SECURITY_EXCEPTIONS', true);
-
-require_once( '../inc/header.inc.php' );
-require_once( BX_DIRECTORY_PATH_INC . 'profiles.inc.php' );
-require_once( BX_DIRECTORY_PATH_INC . 'design.inc.php' );
-require_once( BX_DIRECTORY_PATH_INC . 'admin_design.inc.php' );
-require_once( BX_DIRECTORY_PATH_INC . 'utils.inc.php' );
-bx_import('BxDolDb');
-bx_import('BxTemplSearchResult');
-bx_import('BxDolCategories');
-bx_import('BxDolAdminSettings');
-
-$aBxSecurityExceptions = array ();
-if (bx_get('pathes') !== false) {
-    $aPathes = bx_get('pathes');
-
-    if(is_array($aPathes))
-        for ($i=0; $i<count($aPathes); ++$i) {
-            $aBxSecurityExceptions[] = 'POST.pathes.'.$i;
-            $aBxSecurityExceptions[] = 'REQUEST.pathes.'.$i;
-        }
-}
-
-$logged['admin'] = member_auth( 1, true, true );
-
-function actionAllCategories() {
-    $oDb = new BxDolDb();
-
-    // check actions
-    if(bx_get('pathes') !== false) {
-        $aPathes = bx_get('pathes');
-
-        if(is_array($aPathes) && !empty($aPathes))
-            foreach($_POST['pathes'] as $sValue) {
-                list($sCategory, $sId, $sType) = split('%%', $sValue);
-
-                if (bx_get('action_disable') !== false)
-                    $oDb->query("UPDATE `sys_categories` SET `Status` = 'passive' WHERE
-                        `Category` = '$sCategory' AND `ID` = $sId AND `Type` = '$sType'");
-                else if(bx_get('action_delete') !== false)
-                    $oDb->query("DELETE FROM `sys_categories` WHERE
-                        `Category` = '$sCategory' AND `ID` = $sId AND `Type` = '$sType'");
-            }
-    }
-
-    $sContent = MsgBox(_t('_Empty'));
-    $aModules = array();
-    $oCategories = new BxDolCategories();
-    $oCategories->getTagObjectConfig();
-
-    if (!empty($oCategories->aTagObjects))
-    {
-        $sModule = bx_get('module') !== false ? bx_get('module') : '';
-        foreach ($oCategories->aTagObjects as $sKey => $aValue)
-        {
-            if (!$sModule)
-                $sModule = $sKey;
-
-            $aModules[] = array(
-                'value' => $sKey,
-                'caption' => _t($aValue['LangKey']),
-                'selected' => $sKey == $sModule ? 'selected="selected"' : ''
-            );
-        }
-
-        $sContent = $GLOBALS['oAdmTemplate']->parseHtmlByName('top_block_select.html', array(
-            'name' => _t('_categ_modules'),
-            'bx_repeat:items' => $aModules,
-            'location_href' => BX_DOL_URL_ADMIN . 'categories.php?action=all&module='
-        ));
-
-        $aCategories = $oDb->getAll("SELECT * FROM `sys_categories` WHERE `Status` = 'active' AND `Owner` = 0 AND `Type` = '$sModule'");
-
-        if (!empty($aCategories))
-        {
-            $aItems = array();
-            $sFormName = 'categories_form';
-
-            foreach($aCategories as $aCategory)
-            {
-                $aItems[] = array(
-                    'name' => $aCategory['Category'],
-                    'value' => $aCategory['Category'] . '%%' . $aCategory['ID'] . '%%' . $aCategory['Type'],
-                    'title'=> $aCategory['Category'],
-                );
-            }
-
-            $sControls = $sControls = BxTemplSearchResult::showAdminActionsPanel($sFormName, array(
-                'action_disable' => _t('_categ_btn_disable'),
-                'action_delete' => _t('_categ_btn_delete')
-            ), 'pathes');
-
-            $sContent .= $GLOBALS['oAdmTemplate']->parseHtmlByName('categories_list.html', array(
-                'form_name' => $sFormName,
-                'bx_repeat:items' => $aItems,
-                'controls' => $sControls
-            ));
-        }
-        else
-            $sContent .= MsgBox(_t('_Empty'));
-    }
-
-    return $sContent;
-}
-
-function actionPending()
-{
-    $oDb = new BxDolDb();
-    $sFormName = 'categories_aprove_form';
-    $aItems = array();
-
-    if(is_array($_POST['pathes']) && !empty($_POST['pathes']))
-    {
-        foreach($_POST['pathes'] as $sValue)
-        {
-            list($sCategory, $sId, $sType) = split('%%', $sValue);
-            $oDb->query("UPDATE `sys_categories` SET `Status` = 'active' WHERE
-                `Category` = '$sCategory' AND `ID` = $sId AND `Type` = '$sType'");
-        }
-    }
-
-    $aCategories = $oDb->getAll("SELECT * FROM `sys_categories` WHERE `Status` = 'passive'");
-
-    if (!empty($aCategories))
-    {
-        foreach($aCategories as $aCategory)
-        {
-            $aItems[] = array(
-                'name' => $aCategory['Category'],
-                'value' => $aCategory['Category'] . '%%' . $aCategory['ID'] . '%%' . $aCategory['Type'],
-                'title'=> $aCategory['Category'] . '(' . $aCategory['Type'] . ')',
-            );
-        }
-
-        $aButtons = array(
-            'action_activate' => _t('_categ_btn_activate'),
-        );
-        $sControls = BxTemplSearchResult::showAdminActionsPanel($sFormName, $aButtons, 'pathes');
-
-        return $GLOBALS['oAdmTemplate']->parseHtmlByName('categories_list.html', array(
-            'form_name' => $sFormName,
-            'bx_repeat:items' => $aItems,
-            'controls' => $sControls
-        ));
-    }
-    else
-        return MsgBox(_t('_Empty'));
-}
-
-function actionSettings()
-{
-    $oDb = new BxDolDb();
-    $iId = $oDb->getOne("SELECT `ID` FROM `sys_options_cats` WHERE `name` = 'Categories' LIMIT 1");
-
-    if(!empty($iId))
-    {
-        $oSettings = new BxDolAdminSettings($iId);
-
-        $mixedResult = '';
-        if(isset($_POST['save']) && isset($_POST['cat']))
-            $mixedResult = $oSettings->saveChanges($_POST);
-
-        $sResult = $GLOBALS['oAdmTemplate']->parseHtmlByName('design_box_content.html', array('content' => $oSettings->getForm()));
-
-        if($mixedResult !== true && !empty($mixedResult))
-            $sResult = $mixedResult . $sResult;
-
-        return $sResult;
-    }
-    else
-        return MsgBox(_t('_Empty'));
-}
-
-function getCategoryForm()
-{
-    $oCateg = new BxDolCategories();
-    $aTypes = array();
-    $oCateg->getTagObjectConfig();
-
-    foreach ($oCateg->aTagObjects as $sKey => $aValue)
-        $aTypes[$sKey] = _t($aValue[$oCateg->aObjFields['lang_key']]);
-
-    $aForm = array(
-
-        'form_attrs' => array(
-            'name'     => 'category_form',
-            'action'   => $_SERVER['REQUEST_URI'],
-            'method'   => 'post',
-            'enctype' => 'multipart/form-data',
-        ),
-
-        'params' => array (
-            'db' => array(
-                'table' => 'sys_categories',
-                'submit_name' => 'submit_form'
-            ),
-        ),
-
-        'inputs' => array(
-
-            'name' => array(
-                'type' => 'text',
-                'name' => 'Category',
-                'value' => isset($aUnit['name']) ? $aUnit['name'] : '',
-                'caption' => _t('_categ_form_name'),
-                'required' => true,
-                'checker' => array (
-                    'func' => 'length',
-                    'params' => array(3, 100),
-                    'error' => _t('_categ_form_field_name_err'),
-                ),
-                'db' => array(
-                    'pass' => 'Xss'
-                ),
-                'display' => true,
-            ),
-            'type' => array(
-                'type' => 'select',
-                'name' => 'Type',
-                'required' => true,
-                'values' => $aTypes,
-                'value' => bx_get('module') !== false ? bx_get('module') : '',
-                'caption' => _t('_categ_form_type'),
-                'attrs' => array(
-                        'multiplyable' => false
-                    ),
-                'display' => true,
-                'db' => array(
-                    'pass' => 'Xss'
-                ),
-            ),
-            'submit' => array (
-                'type' => 'submit',
-                'name' => 'submit_form',
-                'value' => _t('_Submit'),
-                'colspan' => false,
-            ),
-        )
-    );
-
-    return new BxTemplFormView($aForm);
-}
-
-function getAddCategoryForm()
-{
-    $oForm = getCategoryForm();
-    $oForm->initChecker();
-    $sResult = '';
-
-    if ($oForm->isSubmittedAndValid())
-    {
-        $oDb = new BxDolDb();
-        if ($oDb->getOne("SELECT COUNT(*) FROM `sys_categories` WHERE `Category` = '" .
-            $oForm->getCleanValue('Category') . "' AND `ID` = 0 AND `Type` = '" .
-            $oForm->getCleanValue('Type') . "'") == 0)
-        {
-            $aValsAdd = array (
-                'ID' => 0,
-                'Owner' => 0,
-                'Status' => 'active',
-            );
-
-            $oForm->insert($aValsAdd);
-            header('Location:' . BX_DOL_URL_ADMIN . 'categories.php?action=all&module=' . $oForm->getCleanValue('Type'));
-        }
-        else
-            $sResult = sprintf(_t('_categ_exist_err'), $oForm->getCleanValue('Category'));
-    }
-
-    return (strlen($sResult) > 0 ? MsgBox($sResult) : '') .
-        $GLOBALS['oAdmTemplate']->parseHtmlByName('design_box_content.html', array('content' => $oForm->getCode()));
-}
-
-$iNameIndex = 9;
-$aMenu = array(
-    'all' => array(
-        'title' => _t('_categ_all'),
-        'href' => $GLOBALS['site']['url_admin'] . 'categories.php?action=all',
-        '_func' => array ('name' => 'actionAllCategories', 'params' => array()),
-    ),
-    'pending' => array(
-        'title' => _t('_categ_admin_pending'),
-        'href' => $GLOBALS['site']['url_admin'] . 'categories.php?action=pending',
-        '_func' => array ('name' => 'actionPending', 'params' => array()),
-    ),
-    'settings' => array(
-        'title' => _t('_categ_admin_settings'),
-        'href' => $GLOBALS['site']['url_admin'] . 'categories.php?action=settings',
-        '_func' => array ('name' => 'actionSettings', 'params' => array()),
-    ),
-);
-$sAction = bx_get('action') !== false ? bx_get('action') : 'all';
-$aMenu[$sAction]['active'] = 1;
-$sContent = call_user_func_array($aMenu[$sAction]['_func']['name'], $aMenu[$sAction]['_func']['params']);
-
-$_page = array(
-    'name_index' => $iNameIndex,
-    'css_name' => array('forms_adv.css', 'settings.css', 'modules.css'),
-    'header' => _t('_Categories'),
-    'header_text' => 'Test title'
-);
-
-$_page_cont[$iNameIndex]['page_main_code'] = DesignBoxAdmin(_t('_categ_form_add'), getAddCategoryForm()) .
-    DesignBoxAdmin($aMenu[$sAction]['title'], $sContent, $aMenu);
-
-PageCodeAdmin();
-?>

+ 0 - 184
administration/email_templates.php

@@ -1,184 +0,0 @@
-<?php
-
-// TODO: remake according to new design and principles, site setup part leave in admin and remake other functionality move to user part
-
-/***************************************************************************
-*                            Dolphin Smart Community Builder
-*                              -----------------
-*     begin                : Mon Mar 23 2006
-*     copyright            : (C) 2006 BoonEx Group
-*     website              : http://www.boonex.com/
-* This file is part of Dolphin - Smart Community Builder
-*
-* Dolphin is free software. This work is licensed under a Creative Commons Attribution 3.0 License.
-* http://creativecommons.org/licenses/by/3.0/
-*
-* Dolphin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
-* without even the implied warranty of  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-* See the Creative Commons Attribution 3.0 License for more details.
-* You should have received a copy of the Creative Commons Attribution 3.0 License along with Dolphin,
-* see license.txt file; if not, write to marketing@boonex.com
-***************************************************************************/
-
-require_once( '../inc/header.inc.php' );
-
-$GLOBALS['iAdminPage'] = 1;
-
-require_once( BX_DIRECTORY_PATH_INC . 'profiles.inc.php' );
-require_once( BX_DIRECTORY_PATH_INC . 'design.inc.php' );
-require_once( BX_DIRECTORY_PATH_INC . 'admin_design.inc.php' );
-require_once( BX_DIRECTORY_PATH_INC . 'utils.inc.php' );
-require_once( BX_DIRECTORY_PATH_PLUGINS . 'Services_JSON.php' );
-
-bx_import('BxDolAdminSettings');
-bx_import('BxTemplSearchResult');
-
-$logged['admin'] = member_auth( 1, true, true );
-
-$oSettings = new BxDolAdminSettings(4);
-
-//--- Process submit ---//
-$mixedResultSettings = '';
-$mixedResultTemplates = '';
-if(isset($_POST['save']) && isset($_POST['cat'])) {
-    $mixedResultSettings = $oSettings->saveChanges($_POST);
-} elseif(isset($_POST['action']) && $_POST['action'] == 'get_translations') {
-    $aTranslation = $GLOBALS['MySQL']->getRow("SELECT `Subject` AS `subject`, `Body` AS `body` FROM `sys_email_templates` WHERE `Name`='" . process_db_input($_POST['templ_name']) . "' AND `LangID`='" . (int)$_POST['lang_id'] . "' LIMIT 1");
-    if(empty($aTranslation))
-        $aTranslation = $GLOBALS['MySQL']->getRow("SELECT `Subject` AS `subject`, `Body` AS `body` FROM `sys_email_templates` WHERE `Name`='" . process_db_input($_POST['templ_name']) . "' AND `LangID`='0' LIMIT 1");
-
-    $oJson = new Services_JSON();
-    echo $oJson->encode(array('subject' => $aTranslation['subject'], 'body' => $aTranslation['body']));
-    exit;
-}
-
-$iNameIndex = 8;
-$_page = array(
-    'name_index' => $iNameIndex,
-    'css_name' => array('forms_adv.css', 'settings.css'),
-    'js_name' => array('email_templates.js'),
-    'header' => _t('_adm_page_cpt_email_templates'),
-);
-$_page_cont[$iNameIndex] = array(
-    'page_code_settings' => PageCodeSettings($mixedResultSettings),
-    'page_code_templates' => PageCodeTemplates($mixedResultTemplates),
-);
-
-PageCodeAdmin();
-
-function PageCodeSettings($mixedResult) {
-
-    $sResult = $GLOBALS['oAdmTemplate']->parseHtmlByName('design_box_content.html', array('content' => $GLOBALS['oSettings']->getForm()));
-    if($mixedResult !== true && !empty($mixedResult))
-        $sResult = $mixedResult . $sResult;
-
-    return DesignBoxAdmin(_t('_adm_box_cpt_email_settings'), $sResult);
-}
-function PageCodeTemplates($mixedResult) {
-
-    $aForm = array(
-        'form_attrs' => array(
-            'id' => 'adm-email-templates',
-            'action' => $GLOBALS['site']['url_admin'] . 'email_templates.php',
-            'method' => 'post',
-            'enctype' => 'multipart/form-data',
-        ),
-        'params' => array (
-                'db' => array(
-                    'table' => 'sys_email_templates',
-                    'key' => 'ID',
-                    'uri' => '',
-                    'uri_title' => '',
-                    'submit_name' => 'adm-emial-templates-save'
-                ),
-            ),
-        'inputs' => array ()
-    );
-
-    $aLanguages = $GLOBALS['MySQL']->getAll("SELECT `ID` AS `id`, `Title` AS `title` FROM `sys_localization_languages`");
-
-    $aLanguageChooser = array(array('key' => 0, 'value' => 'default'));
-    foreach($aLanguages as $aLanguage)
-        $aLanguageChooser[] = array('key' => $aLanguage['id'], 'value' => $aLanguage['title']);
-
-    $sLanguageCpt = _t('_adm_txt_email_language');
-    $sSubjectCpt = _t('_adm_txt_email_subject');
-    $sBodyCpt = _t('_adm_txt_email_body');
-
-    $aEmails = $GLOBALS['MySQL']->getAll("SELECT `ID` AS `id`, `Name` AS `name`, `Subject` AS `subject`, `Body` AS `body`, `Desc` AS `description` FROM `sys_email_templates` WHERE `LangID`='0' ORDER BY `ID`");
-    foreach($aEmails as $aEmail) {
-        $aForm['inputs'] = array_merge($aForm['inputs'], array(
-            $aEmail['name'] . '_Beg' => array(
-                'type' => 'block_header',
-                'caption' => $aEmail['description'],
-                'collapsable' => true,
-                'collapsed' => true
-            ),
-            $aEmail['name'] . '_Language' => array(
-                'type' => 'select',
-                'name' => $aEmail['name'] . '_Language',
-                'caption' => $sLanguageCpt,
-                'value' =>  0,
-                'values' => $aLanguageChooser,
-                'db' => array (
-                    'pass' => 'Int',
-                ),
-                'attrs' => array(
-                    'onchange' => "javascript:getTranslations(this)"
-                )
-            ),
-            $aEmail['name'] . '_Subject' => array(
-                'type' => 'text',
-                'name' => $aEmail['name'] . '_Subject',
-                'caption' => $sSubjectCpt,
-                'value' => $aEmail['subject'],
-                'db' => array (
-                    'pass' => 'Xss',
-                ),
-            ),
-            $aEmail['name'] . '_Body' => array(
-                'type' => 'textarea',
-                'name' => $aEmail['name'] . '_Body',
-                'caption' => $sBodyCpt,
-                'value' => $aEmail['body'],
-                'db' => array (
-                    'pass' => 'XssHtml',
-                ),
-            ),
-            $aEmail['name'] . '_End' => array(
-                'type' => 'block_end'
-            )
-        ));
-    }
-
-    $aForm['inputs']['adm-emial-templates-save'] = array(
-        'type' => 'submit',
-        'name' => 'adm-emial-templates-save',
-        'value' => _t('_adm_btn_email_save'),
-    );
-
-    $oForm = new BxTemplFormView($aForm);
-    $oForm->initChecker();
-
-    $sResult = "";
-    if($oForm->isSubmittedAndValid()) {
-        $iResult = 0;
-        foreach($aEmails as $aEmail) {
-            $iEmailId = (int)$GLOBALS['MySQL']->getOne("SELECT `ID` FROM `sys_email_templates` WHERE `Name`='" . process_db_input($aEmail['name']) . "' AND `LangID`='" . (int)$_POST[$aEmail['name'] . '_Language'] . "' LIMIT 1");
-            if($iEmailId != 0)
-                $iResult += (int)$GLOBALS['MySQL']->query("UPDATE `sys_email_templates` SET `Subject`='" . process_db_input($_POST[$aEmail['name'] . '_Subject']) . "', `Body`='" . process_db_input($_POST[$aEmail['name'] . '_Body']) . "' WHERE `ID`='" . $iEmailId . "'");
-            else
-                $iResult += (int)$GLOBALS['MySQL']->query("INSERT INTO `sys_email_templates` SET `Name`='" . process_db_input($aEmail['name']) . "', `Subject`='" . process_db_input($_POST[$aEmail['name'] . '_Subject']) . "', `Body`='" . process_db_input($_POST[$aEmail['name'] . '_Body']) . "', `LangID`='" . (int)$_POST[$aEmail['name'] . '_Language'] . "'");
-        }
-
-        $sResult .= MsgBox(_t($iResult > 0 ? "_adm_txt_email_success_save" : "_adm_txt_email_nothing_changed"), 3);
-    }
-    $sResult .= $oForm->getCode();
-
-    return DesignBoxAdmin(_t('_adm_box_cpt_email_templates'), $GLOBALS['oAdmTemplate']->parseHtmlByName('email_templates.html', array(
-        'content' => stripslashes($sResult),
-        'loading' => LoadingBox('adm-email-loading')
-    )));
-}
-
-?>

+ 0 - 55
administration/host_tools.php

@@ -1,55 +0,0 @@
-<?php
-
-// TODO: remake according to new design and principles, site setup part leave in admin and remake other functionality move to user part
-
-require_once( '../inc/header.inc.php' );
-require_once( BX_DIRECTORY_PATH_INC . 'design.inc.php' );
-require_once( BX_DIRECTORY_PATH_INC . 'admin_design.inc.php' );
-
-if ( false != bx_get('get_phpinfo') ) {
-    echo phpInfo();
-    exit;
-}
-
-bx_import('BxDolStudioTools');
-
-$logged['admin'] = member_auth( 1, true, true );
-
-$oAdmTools = new BxDolStudioTools();
-$sResult = $oAdmTools->GenCommonCode();
-
-switch(bx_get('action')) {
-    case 'audit_send_test_email':
-        header('Content-type: text/html; charset=utf-8');
-        echo $oAdmTools->sendTestEmail();
-        exit;
-    case 'cache_engines':
-        $sResult .= $oAdmTools->GenCacheEnginesTable();
-        break;
-    case 'perm_table':
-        $sResult .= $oAdmTools->GenPermTable();
-        break;
-    case 'main_page':
-        $sResult .= $oAdmTools->GenTabbedPage();
-        break;
-    default:
-        $sResult .= $oAdmTools->GenTabbedPage();
-        break;
-}
-
-//'_adm_at_title' => 'Admin Tools',
-bx_import('BxTemplFormView');
-$oForm = new BxTemplFormView($_page);
-$iNameIndex = 9;
-$_page = array(
-    'name_index' => $iNameIndex,
-    'css_name' => array('common.css'),
-    'header' => _t('_adm_at_title'),
-    'header_text' => _t('_adm_at_title')
-);
-
-$_page_cont[$iNameIndex]['page_main_code'] = $sResult . $oForm->getCode() . adm_hosting_promo();
-
-PageCodeAdmin();
-
-?>

+ 0 - 61
administration/ip_blacklist.php

@@ -1,61 +0,0 @@
-<?php
-
-// TODO: remake according to new design and principles, site setup part leave in admin and remake other functionality move to user part
-
-/***************************************************************************
-*                            Dolphin Smart Community Builder
-*                              -----------------
-*     begin                : Mon Mar 23 2006
-*     copyright            : (C) 2006 BoonEx Group
-*     website              : http://www.boonex.com/
-* This file is part of Dolphin - Smart Community Builder
-*
-* Dolphin is free software. This work is licensed under a Creative Commons Attribution 3.0 License.
-* http://creativecommons.org/licenses/by/3.0/
-*
-* Dolphin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
-* without even the implied warranty of  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-* See the Creative Commons Attribution 3.0 License for more details.
-* You should have received a copy of the Creative Commons Attribution 3.0 License along with Dolphin,
-* see license.txt file; if not, write to marketing@boonex.com
-***************************************************************************/
-
-require_once( '../inc/header.inc.php' );
-require_once( BX_DIRECTORY_PATH_INC . 'design.inc.php' );
-require_once( BX_DIRECTORY_PATH_INC . 'admin_design.inc.php' );
-require_once( BX_DIRECTORY_PATH_INC . 'admin.inc.php' );
-bx_import('BxDolPaginate');
-bx_import('BxDolAdminIpBlockList');
-
-$logged['admin'] = member_auth( 1, true, true );
-
-$oBxDolAdminIpBlockList = new BxDolAdminIpBlockList();
-
-$sResult = '';
-switch(bx_get('action')) {
-    case 'apply_delete':
-        $oBxDolAdminIpBlockList->ActionApplyDelete();
-        $sResult .= $oBxDolAdminIpBlockList->GenIPBlackListTable();
-        break;
-}
-
-$sStoredHistory = (getParam('enable_member_store_ip')=='on') ? $oBxDolAdminIpBlockList->GenStoredMemIPs() : '';
-
-bx_import('BxTemplFormView');
-$oForm = new BxTemplFormView($_page);
-$iNameIndex = 3;
-$_page = array(
-    'name_index' => $iNameIndex,
-    'css_name' => array(),
-    'js_name' => array(),
-    'header' => _t('_adm_ipbl_title'),
-    'header_text' => _t('_adm_ipbl_title')
-);
-
-$_page_cont[$iNameIndex]['page_result_code'] = $sResult;
-$sWrappedContent = $GLOBALS['oAdmTemplate']->parseHtmlByName('design_box_content.html', array('content' => $oForm->getCode() . $oBxDolAdminIpBlockList->getManagingForm() . $oBxDolAdminIpBlockList->GenIPBlackListTable() . $sStoredHistory));
-$_page_cont[$iNameIndex]['page_main_code'] = $sWrappedContent;
-
-PageCodeAdmin();
-
-?>

+ 0 - 45
administration/js/email_templates.js

@@ -1,45 +0,0 @@
-// TODO: remake according to new design and principles
-
-/***************************************************************************
- *                            Dolphin Web Community Software
- *                              -------------------
- *     begin                : Mon Mar 23 2006
- *     copyright            : (C) 2007 BoonEx Group
- *     website              : http://www.boonex.com
- *
- *
- *
- ****************************************************************************/
-
-/***************************************************************************
- *
- *   This is a free software; you can modify it under the terms of BoonEx
- *   Product License Agreement published on BoonEx site at http://www.boonex.com/downloads/license.pdf
- *   You may not however distribute it for free or/and a fee.
- *   This notice may not be removed from the source code. You may not also remove any other visible
- *   reference and links to BoonEx Group as provided in source code.
- *
- ***************************************************************************/
-
-function getTranslations(oSelect) {
-    var iLangId = $(oSelect).val();
-    var sTemplName = $(oSelect).attr('name').replace('_Language', '');
-
-    $('#adm-email-loading').bx_loading();
-
-    $.post(
-        sAdminUrl + 'email_templates.php',
-        {
-            action: 'get_translations',
-            lang_id: iLangId,
-            templ_name: sTemplName
-        },
-        function(oResult) {
-            $('#adm-email-loading').bx_loading();
-
-            $("[name='" + sTemplName + "_Subject']").val(oResult.subject);
-            $("[name='" + sTemplName + "_Body']").val(oResult.body);
-        },
-        'json'
-    );
-}

+ 0 - 7
administration/js/functions.admin.js

@@ -1,7 +0,0 @@
-
-function adminMenuCollapse(oImage) {
-    if($(oImage).parents('.adm-menu-header').hasClass('adm-mmh-opened'))
-        $(oImage).removeClass('adm-mma-opened').parents('.adm-menu-header').removeClass('adm-mmh-opened').siblings('.adm-menu-items-wrapper').removeClass('adm-mmi-opened');
-    else
-        $(oImage).addClass('adm-mma-opened').parents('.adm-menu-header').addClass('adm-mmh-opened').siblings('.adm-menu-items-wrapper').addClass('adm-mmi-opened');
-}

+ 0 - 125
administration/mobileBuilder.php

@@ -1,125 +0,0 @@
-<?php
-/***************************************************************************
-*                            Dolphin Smart Community Builder
-*                              -------------------
-*     begin                : Mon Mar 23 2006
-*     copyright            : (C) 2007 BoonEx Group
-*     website              : http://www.boonex.com
-* This file is part of Dolphin - Smart Community Builder
-*
-* Dolphin is free software; you can redistribute it and/or modify it under
-* the terms of the GNU General Public License as published by the
-* Free Software Foundation; either version 2 of the
-* License, or  any later version.
-*
-* Dolphin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
-* without even the implied warranty of  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-* See the GNU General Public License for more details.
-* You should have received a copy of the GNU General Public License along with Dolphin,
-* see license.txt file; if not, write to marketing@boonex.com
-***************************************************************************/
-
-
-require_once( '../inc/header.inc.php' );
-require_once( BX_DIRECTORY_PATH_INC . 'profiles.inc.php' );
-require_once( BX_DIRECTORY_PATH_INC . 'design.inc.php' );
-require_once( BX_DIRECTORY_PATH_INC . 'admin_design.inc.php' );
-require_once( BX_DIRECTORY_PATH_INC . 'db.inc.php' );
-require_once( BX_DIRECTORY_PATH_INC . 'admin.inc.php' );
-require_once( BX_DIRECTORY_PATH_INC . 'images.inc.php' );
-
-
-$logged['admin'] = member_auth( 1, true, true );
-
-bx_import('BxDolAdminBuilder');
-class BxDolAdminMobileBuilder extends BxDolAdminBuilder {
-
-    var $_sPage;
-
-    function BxDolAdminMobileBuilder ($sPage) {
-        parent::BxDolAdminBuilder(
-            '`sys_menu_mobile`',
-            BX_DOL_URL_ADMIN . 'mobileBuilder.php',
-            array (
-                '1' => _t('_adm_mobile_builder_cont_active'),
-                '0' => _t('_adm_mobile_builder_cont_inactive'),
-            ));
-        $this->_sPage = process_db_input($sPage);
-    }
-
-    function getItemsForContainer ($sKey) {
-        global $MySQL;
-        return $MySQL->getAll("SELECT * FROM `sys_menu_mobile` WHERE `page` = '" . $this->_sPage . "' AND `active` = '" . $MySQL->escape($sKey) . "' ORDER BY `order`");
-    }
-
-    function getItem ($aItem) {
-        $a = array (
-            'content' => _t($aItem['title']),
-        );
-        return $GLOBALS['oSysTemplate']->parseHtmlByName('mobile_box.html', $a);
-    }
-
-    function addExternalResources () {
-        parent::addExternalResources ();
-        $GLOBALS['oAdmTemplate']->addCss(array(
-            'pageBuilder.css',
-            'forms_adv.css',
-        ));
-    }
-
-    function getBuilderPage () {        
-
-        $aPagesForTemplate = array (
-            array(
-                'value' => '', 
-                'title' => _t('_adm_txt_pb_select_page'),
-                'selected' => empty($this->_sPage) ? 'selected="selected"' : ''
-            )
-        );
-
-        $aPages = $this->_getPages();
-        foreach ($aPages as $r)
-            $aPagesForTemplate[] = array(
-                'value' => $r['page'],
-                'title' => htmlspecialchars_adv(_t($r['title'])),
-                'selected' => $r['page'] == $this->_sPage ? 'selected="selected"' : '',
-            );
-
-        $sPagesSelector = $GLOBALS['oAdmTemplate']->parseHtmlByName('mobile_builder_pages_selector.html', array(
-            'bx_repeat:pages' => $aPagesForTemplate,
-            'url' => bx_html_attribute(BX_DOL_URL_ADMIN . 'mobileBuilder.php'),
-        ));
-
-        if (empty($this->_sPage))
-            $this->addExternalResources ();
-        return $sPagesSelector . (!empty($this->_sPage) ? parent::getBuilderPage () : '');
-    }
-
-    function _getPages() {
-        global $MySQL;
-        return $MySQL->getAll("SELECT * FROM `sys_menu_mobile_pages` ORDER BY `order`");
-    }
-}
-
-$oAdminMobileBuilder = new BxDolAdminMobileBuilder (bx_get('page'));
-
-if (0 == strcasecmp($_SERVER['REQUEST_METHOD'], 'POST')) {
-    $oAdminMobileBuilder->handlePostActions($_POST);
-    exit;
-}
-
-
-$sPageContent = $oAdminMobileBuilder->getBuilderPage();
-
-
-$iNameIndex = 0;
-$_page = array(
-    'name_index' => $iNameIndex,
-    'header' => _t('_adm_mobile_builder_title'),
-    'header_text' => _t('_adm_mobile_builder_title'),
-);
-$_page_cont[$iNameIndex]['page_main_code'] = $sPageContent;
-
-PageCodeAdmin();
-
-

+ 0 - 493
administration/notifies.php

@@ -1,493 +0,0 @@
-<?php
-
-// TODO: remake according to new design and principles, site setup part leave in admin and remake other functionality move to user part
-
-/***************************************************************************
-*                            Dolphin Smart Community Builder
-*                              -----------------
-*     begin                : Mon Mar 23 2006
-*     copyright            : (C) 2006 BoonEx Group
-*     website              : http://www.boonex.com/
-* This file is part of Dolphin - Smart Community Builder
-*
-* Dolphin is free software. This work is licensed under a Creative Commons Attribution 3.0 License.
-* http://creativecommons.org/licenses/by/3.0/
-*
-* Dolphin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
-* without even the implied warranty of  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-* See the Creative Commons Attribution 3.0 License for more details.
-* You should have received a copy of the Creative Commons Attribution 3.0 License along with Dolphin,
-* see license.txt file; if not, write to marketing@boonex.com
-***************************************************************************/
-
-define('BX_SECURITY_EXCEPTIONS', true);
-$aBxSecurityExceptions = array(
-    'POST.body',
-    'REQUEST.body',
-);
-
-require_once( '../inc/header.inc.php' );
-require_once( BX_DIRECTORY_PATH_INC . 'design.inc.php' );
-require_once( BX_DIRECTORY_PATH_INC . 'admin_design.inc.php' );
-require_once( BX_DIRECTORY_PATH_INC . 'utils.inc.php' );
-require_once( BX_DIRECTORY_PATH_INC . 'prof.inc.php' );
-
-bx_import('BxTemplFormView');
-bx_import('BxDolEmailTemplates');
-
-$logged['admin'] = member_auth(1, true, true);
-
-if($_POST['queue_message'] && $_POST['msgs_id'])
-    $sActionResult = QueueMessage();
-if ($_POST['add_message'])
-    $action = 'add';
-if($_POST['delete_message'] && $_POST['msgs_id'])
-    $sActionResult = DeleteMessage() ? _t('_adm_mmail_Message_was_deleted') : _t('_adm_mmail_Message_was_not_deleted');
-if($_POST['preview_message'] && $_POST['msgs_id'])
-    $action = 'preview';
-if(bx_get('action') == 'empty' )
-    $sActionResult = EmptyQueue() ? _t('_adm_mmail_Queue_empty') : _t('_adm_mmail_Queue_emptying_failed');
-
-$iNameIndex = 13;
-$_page = array(
-    'name_index' => $iNameIndex,
-    'css_name' => array('forms_adv.css'),
-    'header' => _t('_adm_mmail_title')
-);
-
-$_page_cont[$iNameIndex] = array(
-    'page_code_status' => PrintStatus($sActionResult),
-    'page_code_new_message' => getEmailMessage($action),
-    'page_code_preview_message' => $action == 'preview' && strlen($_POST['body']) ? PreviewMessage() : '',
-    'page_code_all_messages' => getAllMessagesBox(),
-    'page_code_queue_message' => getQueueMessage()
-);
-
-PageCodeAdmin();
-
-function PrintStatus($sActionResult) {
-    $sSubjC = _t('_Subject');
-    $sEmailsC = _t('_adm_mmail_emails');
-    $sEmptyQueueC = _t('_adm_mmail_Empty_Queue');
-    $sCupidStatusC = _t('_adm_mmail_Cupid_mails_status');
-
-    $sSingleEmailsTRs = '';
-
-    // Select count of emails in queue per one message
-    $iCount = (int)$GLOBALS['MySQL']->getOne("SELECT COUNT(`id`) AS `count` FROM `sys_sbs_queue`");
-    if ($iCount <= 0)
-        $sSingleEmailsTRs .= "<tr><td align=center><b><font color=red>" . _t('_adm_mmail_no_emails_in_queue') . "</font></b></td></tr>";
-    else
-       $sSingleEmailsTRs .= "<tr><td align=center>" . _t('_adm_mmail_mails_in_queue', $iCount) . "</td></tr>";
-
-    $sEmptyQueueTable = '';
-    // If queue is not empty then show link to clear it
-    if($iCount > 0) {
-        $sEmptyQueueTable = "<hr>
-        <table class=\"text\" width=\"50%\" style=\"height: 30px;\">
-            <tr class=\"table\">
-                <td align=\"center\" colspan=\"3\">
-                    <a href=\"" . BX_DOL_URL_ADMIN . "notifies.php?action=empty\">{$sEmptyQueueC}</a>
-                </td>
-            </tr>
-        </table>
-        <hr>";
-    }
-
-    ob_start();
-?>
-<div style="margin:9px;">
-    <center>
-        <table cellspacing=2 cellpadding=2 class=text border=0>
-            <tr class=header align="center"><td><?=_t('_adm_mmail_Queue_status');?>:</td></tr>
-            <?=$sSingleEmailsTRs;?>
-        </table>
-        <?=$sEmptyQueueTable;?>
-    </center>
-</div>
-<?
-    $sResult = ob_get_clean();
-
-    if(!empty($sActionResult))
-       $sResult = MsgBox($sActionResult, 3) . $sResult;
-
-    return DesignBoxContent(_t('_Status'), $sResult, 1);
-}
-
-function getAllMessagesBox() {
-    $aMessages = $GLOBALS['MySQL']->getAll("SELECT `id`, `subject`, (`id`=". (int)$_POST['msgs_id'] ." OR `subject`='". process_db_input($_POST['Subj']) ."' ) AS `selected` FROM `sys_sbs_messages`");
-
-    $sAllMessagesOptions = '';
-    foreach($aMessages as $aMessage)
-        $sAllMessagesOptions .= "<option value=\"" . $aMessage['id'] . "\" " . ($aMessage['selected'] ? "selected=\"selected\"" : "") . ">" . $aMessage['subject'] . "</option>";
-
-    ob_start();
-?>
-<form name="form_messages" method="POST" action="<?=$GLOBALS['site']['url_admin'] . 'notifies.php';?>">
-    <input type="hidden" name="action" value="view">
-    <center class="text"><?= _t('_Messages'); ?>:&nbsp;
-        <select name=msgs_id onChange="javascript: document.forms['form_messages'].submit();">
-            <option value=0><?=_t('_None');?></option>
-            <?=$sAllMessagesOptions;?>
-        </select>
-    </center>
-</form>
-<?
-    $sResult = ob_get_clean();
-
-    return DesignBoxContent(_t('_adm_mmail_All_Messages'), '<div style="margin:9px;">' . $sResult . '</div>', 1);
-}
-
-function getEmailMessage($sAction) {
-    $sErrorC = _t('_Error Occured');
-    $sApplyChangesC = _t('_Submit');
-    $sSubjectC = _t('_Subject');
-    $sBodyC = _t('_adm_mmail_Body');
-    $sTextBodyC = _t('_adm_mmail_Text_email_body');
-    $sPreviewMessageC = _t('_Preview');
-    $sDeleteC = _t('_Delete');
-
-    $sMessageID = (int)$_POST['msgs_id'];
-
-    $sSubject = $sBody = "";
-    if($_POST['body'] && $_POST['action'] != 'delete' ) {
-        $sSubject = process_pass_data( $_POST['subject'] );
-        $sBody = process_pass_data( $_POST['body'] );
-    } elseif ( $sMessageID )
-        list($sSubject, $sBody) = $GLOBALS['MySQL']->getRow("SELECT `subject`, `body` FROM `sys_sbs_messages` WHERE `id`='". $sMessageID . "' LIMIT 1", MYSQL_NUM);
-
-    $sSubject = htmlspecialchars($sSubject);
-
-    $aForm = array(
-        'form_attrs' => array(
-            'name' => 'sys_sbs_messages',
-            'action' => $GLOBALS['site']['url_admin'] . 'notifies.php',
-            'method' => 'post',
-        ),
-        'params' => array (
-            'db' => array(
-                'table' => 'sys_sbs_messages',
-                'key' => 'ID',
-                'submit_name' => 'add_message',
-            ),
-        ),
-        'inputs' => array(
-            'subject' => array(
-                'type' => 'text',
-                'name' => 'subject',
-                'value' => $sSubject,
-                'caption' => $sSubjectC,
-                'required' => true,
-                'checker' => array (
-                    'func' => 'length',
-                    'params' => array(2,128),
-                    'error' => $sErrorC,
-                ),
-                'db' => array (
-                    'pass' => 'Xss',
-                ),
-            ),
-            'body' => array(
-                'type' => 'textarea',
-                'name' => 'body',
-                'value' => $sBody,
-                'caption' => $sBodyC,
-                'required' => true,
-                'html' => 1,
-                'checker' => array (
-                    'func' => 'length',
-                    'params' => array(10,32000),
-                    'error' => $sErrorC,
-                ),
-                'db' => array (
-                    'pass' => 'XssHtml',
-                ),
-            ),
-            'msgs_id' => array(
-                'type' => 'hidden',
-                'name' => 'msgs_id',
-                'value' => $sMessageID,
-            ),
-            'control' => array (
-                'type' => 'input_set',
-                array(
-                    'type' => 'submit',
-                    'name' => 'add_message',
-                    'caption' => $sApplyChangesC,
-                    'value' => $sApplyChangesC,
-                ),
-                array(
-                    'type' => 'submit',
-                    'name' => 'preview_message',
-                    'caption' => $sPreviewMessageC,
-                    'value' => $sPreviewMessageC,
-                ),
-            )
-        ),
-    );
-    if($sMessageID) {
-        $aForm['inputs']['control'][] = array (
-            'type' => 'submit',
-            'name' => 'delete_message',
-            'caption' => $sDeleteC,
-            'value' => $sDeleteC,
-        );
-    }
-
-    $sResult = '';
-    $oForm = new BxTemplFormView($aForm);
-    $oForm->initChecker();
-    if ($oForm->isSubmittedAndValid()) {
-        if ($sAction == 'add') {
-            if ($sMessageID > 0) {
-                $oForm->update($sMessageID);
-            } else {
-                $sMessageID = $oForm->insert();
-            }
-        }
-
-        $sResult = $sMessageID > 0 ? MsgBox(_t('_Success'), 3) : MsgBox($sErrorC);
-    }
-
-    return DesignBoxContent(_t('_adm_mmail_Email_message'), '<div style="margin:9px;">' . $sResult . $oForm->getCode() . '</div>', 1);
-}
-
-function getQueueMessage() {
-    global $aPreValues;
-
-    if ( $_POST['msgs_id'] ) {
-        $aSexValues = getFieldValues('Sex');
-        foreach($aSexValues as $sKey => $sValue)
-            $aSexValues[$sKey] = _t($sValue);
-
-        $aStartAgesOptions = array();
-        $aEndAgesOptions = array();
-        $gl_search_start_age = (int)getParam('search_start_age');
-        $gl_search_end_age = (int)getParam('search_end_age');
-        for ( $i = $gl_search_start_age ; $i <= $gl_search_end_age ; $i++ ) {
-            $aStartAgesOptions[$i] = $i;
-        }
-        for ( $i = $gl_search_start_age ; $i <= $gl_search_end_age ; $i++ ) {
-            $aEndAgesOptions[$i] = $i;
-        }
-
-        $aCountryOptions = array('all' => _t('_All'));
-        foreach ( $aPreValues['Country'] as $key => $value ) {
-            $aCountryOptions[$key] = _t($value['LKey']);
-        }
-
-        $aMembershipOptions = array('all' => _t('_All'));
-        $memberships_arr = getMemberships();
-        foreach ( $memberships_arr as $membershipID => $membershipName ) {
-            if ($membershipID == MEMBERSHIP_ID_NON_MEMBER) continue;
-            $aMembershipOptions[$membershipID] = $membershipName;
-        }
-
-        $iRecipientMembers = (int)$GLOBALS['MySQL']->getOne("SELECT COUNT(`ID`) AS `count` FROM `Profiles` WHERE `Status`<>'Unconfirmed' AND `EmailNotify` = 1 LIMIT 1");
-        $aForm = array(
-            'form_attrs' => array(
-                'name' => 'form_queue',
-                'class' => 'form_queue_form',
-                'action' => $GLOBALS['site']['url_admin'] . 'notifies.php',
-                'method' => 'post',
-            ),
-            'inputs' => array (
-                'Send1' => array(
-                    'type' => 'checkbox',
-                    'name' => 'send_to_subscribers',
-                    'label' => _t('_adm_mmail_Send_to_subscribers'),
-                    'value' => 'non',
-                    'checked' => true
-                ),
-                'Send2' => array(
-                    'type' => 'checkbox',
-                    'name' => 'send_to_members',
-                    'label' => _t('_adm_mmail_Send_to_members'),
-                    'value' => 'memb',
-                    'checked' => true,
-                    'attrs' => array(
-                        'onClick' => 'setControlsState();',
-                    ),
-                    'info' => _t('_adm_mmail_Send_to_members_info', $iRecipientMembers),
-                ),
-                'sex' => array (
-                    'type' => 'checkbox_set',
-                    'name' => 'sex',
-                    'values' => $aSexValues,
-                    'value' => array_keys($aSexValues)
-                ),
-                'StartAge' => array (
-                    'type' => 'select',
-                    'name' => 'age_start',
-                    'caption' => _t('_adm_mmail_Age') . ' ' . _t('_from'),
-                    'values' => $aStartAgesOptions,
-                    'value' => $gl_search_start_age,
-                ),
-                'EndAge' => array (
-                    'type' => 'select',
-                    'name' => 'age_end',
-                    'caption' => _t('_to'),
-                    'values' => $aEndAgesOptions,
-                    'value' => $gl_search_end_age,
-                ),
-                'Country' => array (
-                    'type' => 'select',
-                    'name' => 'country',
-                    'caption' => _t('_Country'),
-                    'values' => $aCountryOptions,
-                    'value' => 'all',
-                ),
-                'Membership' => array (
-                    'type' => 'select',
-                    'name' => 'membership',
-                    'caption' => _t('_adm_mmi_membership_levels'),
-                    'values' => $aMembershipOptions,
-                    'value' => 'all',
-                ),
-                'msgs_id' => array (
-                    'type' => 'hidden',
-                    'name' => 'msgs_id',
-                    'value' => (int)$_POST['msgs_id'],
-                ),
-                'submit' => array (
-                    'type' => 'submit',
-                    'name' => 'queue_message',
-                    'value' => _t('_Submit'),
-                )
-            )
-        );
-
-        $oForm = new BxTemplFormView($aForm);
-        $sTmplResult = $GLOBALS['oAdmTemplate']->parseHtmlByName('notifies_filter.html', array());
-        return DesignBoxContent(_t('_adm_mmail_Queue_message'), '<div style="margin:9px;">' . $oForm->getCode() . $sTmplResult . '</div>', 1);
-    }
-}
-
-function QueueMessage() {
-    global $MySQL;
-
-    $iEmails = 0;
-    $sReturn = "";
-    $iMsgId = (int)$_POST['msgs_id'];
-
-    $aOriginalMessage = $MySQL->getRow("SELECT `id`, `subject`, `body` FROM `sys_sbs_messages` WHERE `id`='" . $iMsgId . "' LIMIT 1");
-    if(!is_array($aOriginalMessage) || empty($aOriginalMessage)) {
-        return _t('_adm_mmail_Failed_to_queue_emails_X', $iMsgId);
-    }
-
-    //--- Send to all subscribers
-    $oEmailTemplates = new BxDolEmailTemplates();
-    if($_POST['send_to_subscribers'] == 'non') {
-        $sSql = "SELECT
-                    `tsu`.`name` AS `user_name`,
-                    `tsu`.`email` AS `user_email`,
-                    `tst`.`template` AS `template_name`
-                FROM `sys_sbs_types` AS `tst`
-                INNER JOIN `sys_sbs_entries` AS `tse` ON `tst`.`id`=`tse`.`subscription_id` AND `tse`.`subscriber_type`='" . BX_DOL_SBS_TYPE_VISITOR . "'
-                INNER JOIN `sys_sbs_users` AS `tsu` ON `tse`.`subscriber_id`=`tsu`.`id`
-                WHERE
-                    `tst`.`unit`='system' AND
-                    `tst`.`action`='mass_mailer'";
-        $aSubscribers = $MySQL->getAll($sSql);
-
-        foreach($aSubscribers as $aSubscriber) {
-            if(empty($aSubscriber['user_email']))
-                continue;
-
-            $aMessage = $oEmailTemplates->parseTemplate($aSubscriber['template_name'], array(
-                'RealName' => $aSubscriber['user_name'],
-                'Email' => $aSubscriber['user_email'],
-                'MessageSubject' => $aOriginalMessage['subject'],
-                'MessageText' => $aOriginalMessage['body']
-            ));
-
-            $mixedResult = $MySQL->query("INSERT INTO `sys_sbs_queue`(`email`, `subject`, `body`) VALUES('" . $aSubscriber['user_email'] . "', '" . process_db_input($aMessage['Subject'], BX_TAGS_STRIP) . "', '" . process_db_input($aMessage['Body'], BX_TAGS_VALIDATE) . "')");
-            if($mixedResult === false) {
-                $sReturn .= _t('_adm_mmail_Email_not_added_to_queue_X', $aSubscriber['user_email']);
-                continue;
-            }
-            $iEmails++;
-        }
-    }
-
-    //--- Send to all profiles
-    if($_POST['send_to_members'] == 'memb') {
-        //--- Sex filter
-        $sex_filter_sql = '';
-        if(is_array($_POST['sex']) && !empty($_POST['sex']))
-            $sex_filter_sql = "AND `Sex` IN ('" . implode("','", $_POST['sex']) . "')";
-
-        //--- Age filter
-        $age_filter_sql = '';
-        $age_start = (int)$_POST['age_start'];
-        $age_end = (int)$_POST['age_end'];
-        if ( $age_start && $age_end ) {
-            $date_start = (int)( date( "Y" ) - $age_start );
-            $date_end = (int)( date( "Y" ) - $age_end - 1 );
-            $date_start = $date_start . date( "-m-d" );
-            $date_end = $date_end . date( "-m-d" );
-            $age_filter_sql = "AND (TO_DAYS(`DateOfBirth`) BETWEEN TO_DAYS('{$date_end}') AND (TO_DAYS('{$date_start}')+1))";
-        }
-
-        //--- Country filter
-        $country_filter_sql = '';
-        if($_POST['country'] != 'all') {
-            $country = process_db_input($_POST['country']);
-            $country_filter_sql = "AND `Country` = '{$country}'";
-        }
-
-        //--- Membership filter
-        $membershipID = $_POST['membership'] != 'all' ? (int)$_POST['membership'] : -1;
-
-        $aMembers = $MySQL->getAll("SELECT `ID` AS `id`, `Email` AS `email` FROM `Profiles` WHERE `Status` <> 'Unconfirmed' AND `EmailNotify` = 1 AND (`Couple` = '0' OR `Couple` > `ID`) {$sex_filter_sql} {$age_filter_sql} {$country_filter_sql}");
-        foreach($aMembers as $aMember) {
-            if(empty($aMember['email']))
-                continue;
-
-            //--- Dynamic membership filter
-            $membership_info = getMemberMembershipInfo($aMember['id']);
-            if ($membershipID != -1 && $membership_info['ID'] != $membershipID )
-                continue;
-
-            $aMessage = $oEmailTemplates->parseTemplate('t_AdminEmail', array(
-                'MessageSubject' => $aOriginalMessage['subject'],
-                'MessageText' => $aOriginalMessage['body']
-            ), $aMember['id']);
-
-            $mixedResult = $MySQL->query("INSERT INTO `sys_sbs_queue`(`email`, `subject`, `body`) VALUES('" . $aMember['email'] . "', '" . process_db_input($aMessage['Subject'], BX_TAGS_STRIP) . "', '" . process_db_input($aMessage['Body'], BX_TAGS_VALIDATE) . "')");
-            if($mixedResult === false) {
-                $sReturn .= _t('_adm_mmail_Email_not_added_to_queue_X', $aMember['email']);
-                continue;
-            }
-            $iEmails++;
-        }
-    }
-
-    $sReturn .= _t('_adm_mmail_X_emails_was_succ_added_to_queue', (int)$iEmails);
-    return $sReturn;
-}
-
-function PreviewMessage() {
-    $oEmailTemplate = new BxDolEmailTemplates();
-    $aMessage = $oEmailTemplate->parseTemplate('t_AdminEmail', array(
-        'MessageText' => process_pass_data($_POST['body'])
-    ));
-
-    $sPreview = '<div style="margin:9px;">' . $aMessage['Body'] . '</div>';
-    return DesignBoxContent(_t('_Preview'), $sPreview, 1);
-}
-
-function DeleteMessage() {
-    $mixedResult = $GLOBALS['MySQL']->query("DELETE FROM `sys_sbs_messages` WHERE `id`='". (int)$_POST['msgs_id'] . "' LIMIT 1");
-    if($mixedResult === false)
-        return $mixedResult;
-
-    $_POST['msgs_id'] = 0;
-    return true;
-}
-
-function EmptyQueue() {
-    return db_res("TRUNCATE TABLE `sys_sbs_queue`");
-}
-
-?>

+ 0 - 28
administration/notify_preview.php

@@ -1,28 +0,0 @@
-<?php
-
-// TODO: remake according to new design and principles, site setup part leave in admin and remake other functionality move to user part
-
-/***************************************************************************
-*                            Dolphin Smart Community Builder
-*                              -----------------
-*     begin                : Mon Mar 23 2006
-*     copyright            : (C) 2006 BoonEx Group
-*     website              : http://www.boonex.com/
-* This file is part of Dolphin - Smart Community Builder
-*
-* Dolphin is free software. This work is licensed under a Creative Commons Attribution 3.0 License.
-* http://creativecommons.org/licenses/by/3.0/
-*
-* Dolphin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
-* without even the implied warranty of  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-* See the Creative Commons Attribution 3.0 License for more details.
-* You should have received a copy of the Creative Commons Attribution 3.0 License along with Dolphin,
-* see license.txt file; if not, write to marketing@boonex.com
-***************************************************************************/
-
-require_once( '../inc/header.inc.php' );
-require_once( BX_DIRECTORY_PATH_INC . 'utils.inc.php' );
-
-if ( $_POST['post_data'] ) echo process_pass_data( $_POST['post_data'] );
-
-?>

+ 0 - 31
administration/phpinfo.php

@@ -1,31 +0,0 @@
-<?php
-
-// TODO: remake according to new design and principles, site setup part leave in admin and remake other functionality move to user part
-
-/***************************************************************************
-*                            Dolphin Smart Community Builder
-*                              -----------------
-*     begin                : Mon Mar 23 2006
-*     copyright            : (C) 2006 BoonEx Group
-*     website              : http://www.boonex.com/
-* This file is part of Dolphin - Smart Community Builder
-*
-* Dolphin is free software. This work is licensed under a Creative Commons Attribution 3.0 License.
-* http://creativecommons.org/licenses/by/3.0/
-*
-* Dolphin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
-* without even the implied warranty of  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-* See the Creative Commons Attribution 3.0 License for more details.
-* You should have received a copy of the Creative Commons Attribution 3.0 License along with Dolphin,
-* see license.txt file; if not, write to marketing@boonex.com
-***************************************************************************/
-
-require_once( '../inc/header.inc.php' );
-require_once( BX_DIRECTORY_PATH_INC . 'design.inc.php' );
-require_once( BX_DIRECTORY_PATH_INC . 'admin.inc.php' );
-
-$logged['admin'] = member_auth( 1, true, true );
-
-phpinfo();
-
-?>

+ 0 - 59
administration/settings.php

@@ -1,59 +0,0 @@
-<?php
-
-// TODO: remake according to new design and principles, site setup part leave in admin and remake other functionality move to user part
-
-/***************************************************************************
-*                            Dolphin Smart Community Builder
-*                              -----------------
-*     begin                : Mon Mar 23 2006
-*     copyright            : (C) 2006 BoonEx Group
-*     website              : http://www.boonex.com/
-* This file is part of Dolphin - Smart Community Builder
-*
-* Dolphin is free software. This work is licensed under a Creative Commons Attribution 3.0 License.
-* http://creativecommons.org/licenses/by/3.0/
-*
-* Dolphin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
-* without even the implied warranty of  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-* See the Creative Commons Attribution 3.0 License for more details.
-* You should have received a copy of the Creative Commons Attribution 3.0 License along with Dolphin,
-* see license.txt file; if not, write to marketing@boonex.com
-***************************************************************************/
-
-require_once( '../inc/header.inc.php' );
-require_once( BX_DIRECTORY_PATH_INC . 'profiles.inc.php' );
-require_once( BX_DIRECTORY_PATH_INC . 'design.inc.php' );
-require_once( BX_DIRECTORY_PATH_INC . 'admin_design.inc.php' );
-require_once( BX_DIRECTORY_PATH_INC . 'utils.inc.php' );
-bx_import('BxDolAdminSettings');
-
-$logged['admin'] = member_auth( 1, true, true );
-
-$mixedCategory = 0;
-if(bx_get('cat') !== false)
-    $mixedCategory = bx_get('cat');
-
-$oSettings = new BxDolAdminSettings($mixedCategory);
-
-//--- Process submit ---//
-$sResult = '';
-if(isset($_POST['save']) && isset($_POST['cat'])) {
-    $sResult = $oSettings->saveChanges($_POST);
-}
-
-$iNameIndex = 3;
-$_page = array(
-    'name_index' => $iNameIndex,
-    'css_name' => array('forms_adv.css', 'settings.css'),
-    'header' => _t('_adm_page_cpt_settings'),
-    'header_text' => $oSettings->getTitle()
-);
-$_page_cont[$iNameIndex]['page_result_code'] = $sResult;
-$_page_cont[$iNameIndex]['page_main_code'] = $oSettings->getForm();
-if (26 == $mixedCategory) {
-    define('BX_PROMO_CODE', adm_hosting_promo());
-}
-
-PageCodeAdmin();
-
-?>

+ 0 - 18
administration/templates/base/antispam_akismet.html

@@ -1,18 +0,0 @@
-<!-- TODO: remake according to new design and principles -->
-
-<div class="top_settings_block">
-    <div style="padding:5px 9px 0 9px; float:left;">
-        <span class="__status_class__">__status__</span>
-    </div>
-    <div style="padding:5px 9px 0 9px; float:right;">
-        <a href="javascript:void(0);" onclick="showPopupAnyHtml ('__admin_url__antispam.php?popup=akismet_log');"><bx_text:_sys_adm_btn_dnsbl_log /></a>
-        |
-        <a href="__admin_url__advanced_settings.php"><bx_text:_sys_adm_btn_dnsbl_settings /></a>
-    </div>
-    <div class="clear_both"></div>
-</div>
-
-<div style="text-align:center;" class="bx_sys_default_padding">
-    <span class="__key_status_class__">__key_status__</span>
-</div>
-

+ 0 - 5
administration/templates/base/antispam_dnsbl_help.html

@@ -1,5 +0,0 @@
-<!-- TODO: remake according to new design and principles -->
-
-<div class="bx_sys_default_padding" style="width:400px;">
-    __text__
-</div>

+ 0 - 40
administration/templates/base/antispam_dnsbl_recheck.html

@@ -1,40 +0,0 @@
-<!-- TODO: remake according to new design and principles -->
-
-<script type="text/javascript">
-    function bs_sys_adm_dbsbl_recheck(sTest) {
-        $('#sys-adm-dnsbl-check-table .sys-adm-dnsbl-check-status').each(function () {
-            $(this).html('');
-        });
-        $('#sys-adm-dnsbl-check-table .sys-adm-dnsbl-check-status').each(function () {
-            var m = $(this).attr('id').match(/(\d+)$/);
-            if (m && m[1]) {
-                var iId = m[1];
-                var eStatus = this;
-                $(this).html('Checking...');
-                $.post('__admin_url__antispam.php', {action: '__action__', id: iId, 'test': sTest}, function (sRet) {
-                    if ('LISTED' == sRet) {
-                        $(eStatus).html('__txt_listed__');
-                    }
-                    else if ('NOT LISTED' == sRet) {
-                        $(eStatus).html('__txt_not_listed__');
-                    } else {
-                        $(eStatus).html('__txt_failed__');
-                    }
-                });
-            }
-        });
-        return false;
-    }
-</script>
-<div class="bx_sys_default_padding">
-    __form__
-    <table style="width:100%;" id="sys-adm-dnsbl-check-table">
-        <bx_repeat:items>
-            <tr>
-                <td id="sys-adm-dnsbl-check-status-__id__">__chain__</td>
-                <td><a target="_blank" href="__url__">__zonedomain__</a></td>
-                <td><span class="sys-adm-dnsbl-check-status" id="sys-adm-dnsbl-check-status-__id__"></span></td>
-            </tr>
-        </bx_repeat:items>
-    </table>
-</div>

+ 0 - 18
administration/templates/base/antispam_log.html

@@ -1,18 +0,0 @@
-<!-- TODO: remake according to new design and principles -->
-
-    <div id="sys-adm-antispam-log" style="width:400px;">
-
-        <table style="width:100%;">
-        <bx_repeat:items>
-            <tr class="sys-adm-active-__active__">
-                <td>__ip__</td>
-                <td><a target="_blank" href="__member_url__">__member_nickname__</a></td>
-                <td>__ago__</td>
-                <td><img float_info="__extra__" src="<bx_icon_url:info.gif />" alt="info" class="info"></td>
-            </tr>
-        </bx_repeat:items>
-        </table>
-
-        __paginate__
-
-    </div>

+ 0 - 37
administration/templates/base/antispam_manage_dnsbl.html

@@ -1,37 +0,0 @@
-<!-- TODO: remake according to new design and principles -->
-
-<div class="top_settings_block">
-    <div style="padding:5px 9px 0 9px; float:left;">
-        <span class="__status_class__">__status__</span>
-    </div>
-    <div style="padding:5px 9px 0 9px; float:right;">
-        <a href="javascript:void(0);" onclick="showPopupAnyHtml ('__admin_url__antispam.php?popup=__mode___log');"><bx_text:_sys_adm_btn_dnsbl_log /></a>
-        |
-        <a href="javascript:void(0);" onclick="showPopupAnyHtml ('__admin_url__antispam.php?popup=__mode___recheck');"><bx_text:_sys_adm_btn_dnsbl_recheck /></a>
-        |
-        <a href="javascript:void(0);" onclick="showPopupAnyHtml ('__admin_url__antispam.php?popup=__mode___help');"><bx_text:_sys_adm_btn_dnsbl_help /></a>
-        |
-        <a href="__admin_url__advanced_settings.php"><bx_text:_sys_adm_btn_dnsbl_settings /></a>
-        |
-        <a href="javascript:void(0);" onclick="showPopupAnyHtml ('__admin_url__antispam.php?popup=__mode___add');"><bx_text:_sys_adm_btn_dnsbl_add /></a>
-    </div>
-    <div class="clear_both"></div>
-</div>
-<div style="text-align:center;">
-__global_message__
-</div>
-<form id="adm-dnsbl-form" name="adm-dnsbl-form" action="__admin_url__antispam.php?mode=__mode__" method="post">
-    <table style="width:100%;">
-        <bx_repeat:items>
-            <tr class="sys-adm-active-__active__">
-                <td><input type="checkbox" class="form_input_checkbox" id="adm-dnsbl-__id__" name="rules[]" value="__id__" /></td>
-                <td>__chain__</td>
-                <td><a target="_blank" href="__url__">__zonedomain__</a></td>
-                <td>__postvresp__</td>
-                <td><img float_info="__comment__" src="<bx_icon_url:info.gif />" alt="info" class="info"></td>
-            </tr>
-        </bx_repeat:items>
-
-    </table>
-    __controls__
-</form>

+ 0 - 11
administration/templates/base/categories.html

@@ -1,11 +0,0 @@
-<!-- TODO: remake according to new design and principles -->
-
-<div class="adm-category-items">
-    <bx_repeat:items>
-        <div class="adm-category-item">
-            <img src="__icon__" />
-            <div class="adm-ci-link"><a href="__link__" __onclick__>__title__</a></div>
-            <div class="adm-ci-description">__description__</div>
-        </div>
-    </bx_repeat:items>
-</div>

+ 0 - 13
administration/templates/base/categories_list.html

@@ -1,13 +0,0 @@
-<!-- TODO: remake according to new design and principles -->
-
-<form id="__form_name__" enctype="multipart/form-data" method="post" action="" class="form_advanced">
-    <div class="modules-items">
-        <bx_repeat:items>
-            <div class="modules-item">
-                <input type="checkbox" class="form_input_checkbox" id="__name__" name="pathes[]" value="__value__" />
-                <label for="pathes-__name__">__title__</label>
-            </div>
-        </bx_repeat:items>
-    </div>
-    __controls__
-</form>

+ 0 - 133
administration/templates/base/css/admin.css

@@ -1,133 +0,0 @@
-/* TODO: remove or remake according to new design */
-
-table#bx-admin-page-table {
-   border-collapse:collapse;
-}
-
-table#bx-admin-page-table td {
-    padding: 0;
-    vertical-align: top;
-}
-
-td.bx-adm-middle-menu {
-    width: 300px;
-
-    border: 0px;
-}
-
-td.bx-adm-middle-main {
-
-}
-
-h1#bx-adm-page-header {
-    padding: 0;
-    margin: 0;
-}
-
-
-/*--- Main Menu ---*/
-
-div.adm-menu-wrapper {
-    position: relative;
-}
-div.adm-menu-wrapper:first-child {
-    margin-top: 0px;
-}
-div.adm-menu-header,
-div.adm-menu-header-active,
-div.menu_categ_hover_header {
-    height: 44px;
-    padding-left: 44px;
-
-    z-index: 5;
-
-    border:1px solid #ddd;
-    background-color:#fff;
-
-    line-height: 44px;
-    font-size: 16px;
-    font-weight: bold;
-}
-div.adm-mmh-hover {
-    border:1px solid #999;
-}
-div.adm-mmh-active {
-    border:1px solid #ccc;
-}
-div.adm-mmh-opened {
-    border:1px solid #ccc;
-}
-
-img.adm-menu-icon {
-    top: -5px;
-    left: 7px;
-
-    position: absolute;
-    z-index: 10;
-}
-
-img.adm-menu-arrow {
-    top: 14px;
-    right: 11px;
-    width: 17px;
-    height: 17px;
-
-    position: absolute;
-    z-index: 5;
-
-    background-image: url(../images/mm_item_arrow_bg.png);
-    background-repeat: no-repeat;
-    background-position: 0px 0px;
-
-    cursor:pointer;
-}
-img.adm-mma-opened {
-    background-position: 0px -17px;
-}
-
-div.adm-menu-items-wrapper {
-    margin: 0px 2px;
-    padding: 5px 0px;
-
-    border: 1px solid #ccc;
-    border-top: none;
-    background-color: #f6f6f6;
-
-    position: relative;
-    z-index: 1;
-    display: none;
-
-
-    font-size: 13px;
-    color: black;
-}
-div.adm-mmi-opened {
-    display: block;
-}
-
-div.adm-menu-item-wrapper {
-    height: 26px;
-    padding-left: 33px;
-
-    position: relative;
-
-    line-height: 26px;
-}
-
-img.adm-menu-item-icon {
-    top: 5px;
-    left: 9px;
-    width: 16px;
-    height: 16px;
-
-    position: absolute;
-    z-index: 5;
-}
-
-/* --------------- boonex promo block */
-
-.bx-adm-boonex-promo {
-    background-color: #ffc;
-}
-
-

+ 0 - 20
administration/templates/base/css/anchor.css

@@ -1,20 +0,0 @@
-/* TODO: remove or remake according to new design */
-
-a, a:link {
-    color:#3333CC;
-    font-family:Verdana,Arial;
-}
-a:visited {
-    color:#000099;
-}
-
-a:hover, a:active {
-    color:#3333CC;
-}
-
-a, a:link, a:visited, a:active {
-    text-decoration:none;
-}
-a:hover {
-    text-decoration:underline;
-}

+ 0 - 3
administration/templates/base/css/default.css

@@ -1,3 +0,0 @@
-/* TODO: make static file for default values in admin part */
-
-@import url(../../../../templates/base/css/default.css);

+ 0 - 3
administration/templates/base/css/forms_adv.css

@@ -1,3 +0,0 @@
-/* TODO: remove or remake according to new design */
-
-@import url(../../../../templates/base/css/forms_adv.css);

+ 0 - 3
administration/templates/base/css/forms_extra.css

@@ -1,3 +0,0 @@
-/* TODO: remove or remake according to new design */
-
-@import url(../../../../templates/base/css/forms_extra.css);

+ 0 - 347
administration/templates/base/css/general.css

@@ -1,347 +0,0 @@
-/* TODO: remove or remake according to new design */
-
-@import url(../../../../templates/base/css/common.css);
-
-/*--- Body ---*/
-body {
-    background-color: #6d6d6d;
-}
-div#FloatDesc {
-    position:absolute;
-    display:none;
-    z-index:10000;
-    background-color:#ffffe0;
-    border:1px solid #000000;
-    padding:3px;
-    width:180px;
-}
-
-form, p {
-    margin:0px;
-    padding:0px;
-}
-
-a img {
-    border:none;
-}
-
-.err {
-    color: #FF0000;
-}
-
-/*--- Top Header ---*/
-div.adm-header {
-    height: 87px;
-
-    position: relative;
-
-    border-bottom: 1px solid #c8c8c8;
-    background-image: url(../images/header_bg.png);
-    background-repeat: repeat-x;
-    background-position: 0px 0px;
-}
-div.adm-header-content {
-    width: 500px;
-    margin: 0px auto;
-}
-
-img.adm-header-logo {
-    top: 0px;
-    left: 0px;
-    width: 105px;
-    height: 116px;
-
-    position:absolute;
-}
-div.adm-header-title {
-    padding: 25px 0px 25px 110px;
-
-    position: relative;
-    float: left;
-
-    line-height: 87px;
-    font-family: Copperplate Gothic Bold;
-    font-size: 48px;
-    font-weight: bold;
-    color: #333333;
-}
-div.adm-header-verion {
-    top: 20px;
-    left: 148px;
-    width: 60px;
-    height: 10px;
-    position: absolute;
-
-    line-height: 9px;
-    font-family: Verdana;
-    font-size:9px;
-}
-
-/*--- Top Menu ---*/
-div.adm-top-menu {
-    position: relative;
-    float: right;
-}
-div.adm-tm-item {
-    width: 100px;
-    height: 87px;
-
-    position: relative;
-    float: left;
-}
-div.adm-tm-item-active {
-    background-image: url(../images/tm_item_active_bg.png);
-    background-position: 0px 0px;
-    background-repeat: repeat-x;
-}
-div.adm-tm-item a {
-    width: 100px;
-    height: 87px;
-    margin: 0px;
-    padding: 0px;
-
-    display: block;
-
-    text-decoration: none;
-    color: #333333;
-}
-
-div.adm-tm-item-icon {
-    width: 32px;
-    height: 32px;
-    margin: 0px auto;
-    padding: 23px 0px 5px 0px;
-}
-div.adm-tm-item-icon img {
-    width: 32px;
-    height: 32px;
-}
-div.adm-tm-item-text {
-    text-align: center;
-    font-size: 9px;
-}
-
-/*--- Middle Part ---*/
-div.adm-middle {
-    padding: 30px 0px;
-    background-color: #ffffff;
-}
-table.adm-middle {
-    width: 900px;
-    margin: 0px auto;
-    padding: 0px;
-
-    border: 0px;
-}
-td.adm-middle-menu {
-    width: 214px;
-    padding: 0px;
-    margin: 0px;
-
-    border: 0px;
-
-    vertical-align: top;
-}
-td.adm-middle-main {
-    padding: 0px;
-    margin: 0px;
-
-    background-repeat: no-repeat;
-    background-position: 470px 0px;
-    vertical-align: top;
-}
-
-div.adm-page-header {
-    margin: 0px 0px 20px 34px;
-
-    font-weight: bold;
-    font-size: 30px;
-}
-div.adm-page-content {
-    margin: 0px 0px 0px 34px;
-}
-
-
-/*--- Footer Part ---*/
-div.adm-footer {
-    position:relative;
-    height: 73px;
-
-    background-color: #6e6e6e;
-    background-repeat: repeat-x;
-    background-image: url(../images/bottom_bord.gif);
-
-    font-size: 14px;
-    line-height: 20px;
-    color: #ffffff;
-}
-.adm-footer-logo {
-    position:absolute;
-    top:20px;
-    right:20px;
-}
-div.adm-footer-content {
-    padding: 20px 0px 0px 25px;
-}
-
-div.adm-footer a,
-div.adm-footer a:link,
-div.adm-footer a:visited,
-div.adm-footer a:hover,
-div.adm-footer a:active {
-    color:#ffffff;
-}
-
-
-/*--- DesignBox ---*/
-div.adm-design-box {
-    margin-bottom: 10px;
-
-    border: 1px solid #CCC;
-    background-image: url(../images/head_bg.gif);
-    background-repeat: repeat-x;
-    background-color: #fff;
-}
-div.adm-db-head {
-    height: 28px;
-    position: relative;
-    border-bottom: 1px solid #ccc;
-
-    line-height: 28px;
-    text-indent: 10px;
-    text-align: left;
-    text-transform: capitalize;
-
-    font-size: 12px;
-    font-weight: bold;
-    font-family: Verdana,Arial;
-    color: #333;
-}
-div.adm-db-content {
-    padding: 1px;
-    font-size: 11px;
-}
-div.adm-db-control-panel {
-    height: 30px;
-
-    background-color: #ededed;
-
-    line-height: 30px;
-    font-size: 11px;
-}
-div.adm-db-content-wrapper {
-    padding: 9px;
-    position: relative;
-}
-div.adm-design-box div.adm-db-head .dbTopMenu {
-    top: 0px;
-    right: 1px;
-
-    position: absolute;
-
-    text-transform: capitalize;
-    text-indent: 0px;
-    white-space: nowrap;
-
-    font-size: 11px;
-    font-weight: bold;
-    color: #333;
-}
-.dbTopMenu div.active,
-.dbTopMenu div.notActive {
-    float: left;
-    padding: 0px 5px;
-    border-left: 0px solid #ccc;
-    height: 28px;
-    line-height: 28px;
-    position: relative;
-    font-weight: normal;
-}
-.dbTopMenu div a,
-.dbTopMenu div a:link,
-.dbTopMenu div a:hover,
-.dbTopMenu div a:active,
-.dbTopMenu div a:visited {
-    color: #666;
-    font-family:Verdana,Arial;
-    font-size:11px;
-}
-.dbTopMenu div.active {
-    background:transparent url(../images/head_ti_left.gif) no-repeat scroll 0%;
-    cursor:pointer;
-    display:block;
-    float:left;
-    height:28px;
-    line-height:28px;
-    padding:0pt 0pt 0pt 5px;
-}
-.dbTopMenu .active span {
-    background:transparent url(../images/head_ti_right.gif) repeat-y scroll right top;
-    display:block;
-    float:left;
-    height:28px;
-    padding:0pt 5px 0pt 0px;
-}
-div.adm-db-head div.notActiveIcon {
-    background-position: 0px 5px;
-    background-repeat: no-repeat;
-    padding-left: 18px;
-}
-div.adm-design-box div.adm-db-close {
-    width: 28px;
-    height: 28px;
-    background-position: center;
-    background-repeat: no-repeat;
-}
-div.adm-design-box div.adm-db-close img {
-    width: 28px;
-    height: 28px;
-}
-table.popup_form_wrapper div.adm-design-box {
-    margin-bottom: 0px;
-}
-
-/* top settings */
-div.top_settings_block
-{
-    background-color:#EDEDED;
-    height:30px;
-    width:100%;
-    color:#666666;
-}
-
-div.top_settings_block div.ordered_block
-{
-    padding-top:5px;
-    padding-left:9px;
-    float:left;
-}
-
-div.top_settings_block div.per_page_block
-{
-    padding-top:5px;
-    float:right;
-    padding-right:9px;
-}
-
-/* RSS feed block */
-
-.adm-db-content > .RSSAggrCont > .rss_feed_wrapper
-{
-    margin: 9px;
-}
-
-.sys-adm-active-0 {
-    color:#999;
-}
-
-.sys-adm-enabled {
-    color:#fff;
-    background-color:#0b0;
-}
-
-.sys-adm-disabled {
-    color:#fff;
-    background-color:#d00;
-}
-

+ 0 - 71
administration/templates/base/css/index.css

@@ -1,71 +0,0 @@
-/* TODO: remove or remake according to new design */
-
-/*--- Items in Category ---*/
-div.adm-category-items {
-    padding: 10px;
-}
-div.adm-category-item {
-    position: relative;
-    margin-bottom: 10px;
-}
-div.adm-category-item img {
-    top: 3px;
-    left: 7px;
-    position: absolute;
-}
-div.adm-ci-link {
-    margin-left: 35px;
-
-    line-height: 20px;
-    font-size: 18px;
-    font-weight: bold;
-}
-div.adm-ci-description {
-    margin-left: 35px;
-
-    font-size: 13px;
-}
-
-/*--- Boonex News ---*/
-div.adm-news {
-    margin: 0px 2px;
-    width: 210px;
-}
-div.adm-news-header,
-div.adm-news-footer {}
-
-div.adm-news-items,
-div.adm-news-more {
-    padding: 15px 15px 0px 15px;
-    background-color: #ececec;
-}
-div.adm-news-item {
-    padding-bottom: 8px;
-}
-/*div.adm-ni-title {
-    font-size: 12px;
-    font-weight:bold;
-    color: #3333cc;
-}*/
-div.adm-ni-title a,
-div.adm-ni-title a:link,
-div.adm-ni-title a:visited,
-div.adm-ni-title a:hover,
-div.adm-ni-title a:active
-{
-    font-size:12px;
-    font-weight:bold;
-    color:#33c;
-}
-
-div.adm-ni-content{
-    font-size: 11px;
-    color: #333333;
-    text-align:justify;
-}
-span.adm-ni-date {
-    color: #999999;
-    display:block;
-    font-size:9px;
-}
-

+ 0 - 1
administration/templates/base/css/mobile.css

@@ -1 +0,0 @@
-@import url(../../../../templates/base/css/mobile.css);

+ 0 - 23
administration/templates/base/css/mobile_builder.css

@@ -1,23 +0,0 @@
-
-.bx-sortable-item {    
-    cursor:pointer;
-    height:30px;
-    margin-bottom:5px;
-}
-
-.bx-sortable-placeholder {
-    cursor:pointer;
-    height:30px;
-    margin-bottom:5px;
-    background-image:url(../images/ph_bg.gif);
-}
-
-.bx-sortable-container-wrapper {
-    width:300px; 
-    float:left;
-}
-
-.bx-sortable-container-divider {
-    width:10px; 
-    float:left;    
-}

+ 0 - 17
administration/templates/base/css/settings.css

@@ -1,17 +0,0 @@
-/* TODO: remove or remake according to new design */
-
-div.adm-settings-wrapper {
-    padding: 9px 9px 9px 9px;
-}
-.form_advanced_table td.caption {
-    white-space: normal;
-}
-
-/*--- Baseic Settings ---*/
-div.adm-bs-switcher {
-    width: 320px;
-    margin: 0px auto;
-}
-div.adm-bs-switcher div.input_wrapper_radio {
-    padding: 0px 5px;
-}

+ 0 - 4
administration/templates/base/default.html

@@ -1,4 +0,0 @@
-<bx_include_auto:_sub_header.html />
-    __page_main_code__
-    __promo_code__
-<bx_include_auto:_sub_footer.html />

+ 0 - 3
administration/templates/base/design_box_content.html

@@ -1,3 +0,0 @@
-<div class="adm-db-content-wrapper">
-    __content__
-</div>

+ 0 - 11
administration/templates/base/email_templates.html

@@ -1,11 +0,0 @@
-<!-- TODO: remake according to new design and principles -->
-
-<div class="adm-db-content-wrapper">
-    __content__
-    __loading__
-</div>
-<script type="text/javascript" language="javascript">
-<!--
-    var sAdminUrl = '__url_admin__';
--->
-</script>

BIN
administration/templates/base/images/arrow_down.gif


BIN
administration/templates/base/images/arrow_up.gif


BIN
administration/templates/base/images/block_header.gif


BIN
administration/templates/base/images/block_item_bg.gif


BIN
administration/templates/base/images/block_item_in_bg.gif


BIN
administration/templates/base/images/bn_footer.png


BIN
administration/templates/base/images/bn_header.png


BIN
administration/templates/base/images/boonex-logo-footer.png


BIN
administration/templates/base/images/bottom_bord.gif


BIN
administration/templates/base/images/bx-promo-cont.png


BIN
administration/templates/base/images/bx-promo-head.png


BIN
administration/templates/base/images/bx-promo-tail.png


BIN
administration/templates/base/images/close.gif


BIN
administration/templates/base/images/col_cont.gif


BIN
administration/templates/base/images/col_slider_bg.gif


BIN
administration/templates/base/images/custom_item_bg.gif


BIN
administration/templates/base/images/head_bg.gif


BIN
administration/templates/base/images/head_ti_left.gif


BIN
administration/templates/base/images/head_ti_right.gif


BIN
administration/templates/base/images/header_bg.png


BIN
administration/templates/base/images/icons/dashboard_admin.png


BIN
administration/templates/base/images/icons/dashboard_bx_400days.png


BIN
administration/templates/base/images/icons/dashboard_bx_90days.png


BIN
administration/templates/base/images/icons/dashboard_bx_premium.png


BIN
administration/templates/base/images/icons/dashboard_bx_prime.png


BIN
administration/templates/base/images/icons/dashboard_bx_unlim.png


BIN
administration/templates/base/images/icons/dashboard_cache.png


BIN
administration/templates/base/images/icons/dashboard_info.png


BIN
administration/templates/base/images/icons/dashboard_mails.png


BIN
administration/templates/base/images/icons/dashboard_users.png


BIN
administration/templates/base/images/icons/hosting_promo.png


BIN
administration/templates/base/images/icons/info.gif


BIN
administration/templates/base/images/icons/mm_builders.png


BIN
administration/templates/base/images/icons/mm_extensions.png


BIN
administration/templates/base/images/icons/mm_settings.png


BIN
administration/templates/base/images/icons/mm_tools.png


BIN
administration/templates/base/images/icons/mm_users.png


BIN
administration/templates/base/images/icons/mmi_admin_password.gif


BIN
administration/templates/base/images/icons/mmi_advanced_settings.gif


BIN
administration/templates/base/images/icons/mmi_antispam.png


BIN
administration/templates/base/images/icons/mmi_banners.gif


BIN
administration/templates/base/images/icons/mmi_basic_settings.gif


BIN
administration/templates/base/images/icons/mmi_categories_settings.gif


BIN
administration/templates/base/images/icons/mmi_css_styles.gif


BIN
administration/templates/base/images/icons/mmi_database_backup.gif


BIN
administration/templates/base/images/icons/mmi_database_prunning.gif


BIN
administration/templates/base/images/icons/mmi_email_templates.gif


BIN
administration/templates/base/images/icons/mmi_flash_apps.gif


BIN
administration/templates/base/images/icons/mmi_host_tools.gif


BIN
administration/templates/base/images/icons/mmi_ip_blacklist.gif


BIN
administration/templates/base/images/icons/mmi_languages_settings.gif


BIN
administration/templates/base/images/icons/mmi_mass_mailer.gif


BIN
administration/templates/base/images/icons/mmi_member_menu_builder.gif


BIN
administration/templates/base/images/icons/mmi_members.gif


BIN
administration/templates/base/images/icons/mmi_membership_levels.gif


BIN
administration/templates/base/images/icons/mmi_meta_tags.gif


BIN
administration/templates/base/images/icons/mmi_mobile_builder.png


BIN
administration/templates/base/images/icons/mmi_moderation_settings.gif


BIN
administration/templates/base/images/icons/mmi_modules.gif


BIN
administration/templates/base/images/icons/mmi_navigation_menu_builder.gif


BIN
administration/templates/base/images/icons/mmi_pages_blocks_builder.gif


BIN
administration/templates/base/images/icons/mmi_permalinks.gif


BIN
administration/templates/base/images/icons/mmi_predefined_values.gif


Some files were not shown because too many files changed in this diff