Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Trofimov committed Apr 8, 2013
1 parent 6fca786 commit d6343f6
Show file tree
Hide file tree
Showing 3,454 changed files with 241,846 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
33 changes: 33 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
Options -MultiViews -Indexes

# TODO: clean it as much as possible
# TODO: get rid of blogs and ads rewrite code

<IfModule mod_php4.c>
php_flag register_globals Off
</IfModule>
<IfModule mod_php5.c>
php_flag allow_url_include Off
php_flag register_globals Off
</IfModule>

<IfModule mod_rewrite.c>
RewriteEngine on

RewriteRule ^search/tag/([^/.]+)/{0,1}$ search.php?Tags=$1 [QSA,L]

RewriteRule ^m/(.*)$ modules/index.php?r=$1 [QSA,L]

RewriteRule ^page/(.*)$ page.php?i=$1 [QSA,L]

RewriteRule ^storage/([a-zA-Z0-9]+)/([a-zA-Z0-9\.]+) storage.php?o=$1&f=$2 [QSA,L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule .+ - [L]
RewriteRule ^([^/]+)$ profile.php?ID=$1 [QSA,L]

</IfModule>

AddType application/vnd.adobe.air-application-installer-package+zip .air
AddType application/x-shockwave-flash .swf
16 changes: 16 additions & 0 deletions 404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!-- TODO: remove this file -->

<html>

<body>

<div style="padding:20px; margin:100px; border:1px solid red; text-align:center; font-size:20px; font-family:Arial;">

404. Page Not Found

</div>

</body>

</html>

3 changes: 3 additions & 0 deletions administration/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<IfModule mod_rewrite.c>
RewriteEngine off
</IfModule>
46 changes: 46 additions & 0 deletions administration/admin_tools.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<?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();

?>
56 changes: 56 additions & 0 deletions administration/advanced_settings.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<?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 [email protected]
***************************************************************************/

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();

?>
Loading

0 comments on commit d6343f6

Please sign in to comment.