Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions admin/category.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,22 @@
include_once '../sys/boot.php';
include_once ROOT . '/admin/inc/adm_boot.php';



// If for menu
switch($_GET['mod']) {
case 'foto':
$_GET['m'] = 'foto';
break;
case 'loads':
$_GET['m'] = 'loads';
break;
case 'news':
$_GET['m'] = 'news';
break;
case 'stat':
$_GET['m'] = 'stat';
break;
}


/**
* Return current module which we editing
Expand Down
6 changes: 5 additions & 1 deletion admin/comments_list.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,15 @@ public function index($module)

foreach ($materials as $mat) {
$output .= '<div class="setting-item"><div class="left">';

$output .= '<div class="rights">' . $mat->getParent_entity()->getId() . '</div>';

$output .= '<a style="font-weight:bold; margin-bottom:5px;" href="'
. get_url('/admin/materials_list.php?m=' . $module . '&ac=edit&id=' . $mat->getParent_entity()->getId()) . '">'
. h($mat->getParent_entity()->getTitle()) . '</a><br>';
$output .= __('Author') . ': ';



if (is_object($mat->getAuthor())) {
$output .= '<a style="font-weight:bold; margin-bottom:5px;" href="' . get_url('/admin/users_list.php?ac=ank&id=' . $mat->getAuthor()->getId()) . '">';
$output .= h($mat->getAuthor()->getName());
Expand Down
3 changes: 3 additions & 0 deletions admin/forum_cat.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
$pageTitle = __('Forum');
$ACL = $Register['ACL'];

// If for menu
$_GET['m'] = "forum";

// For all popup's(edit & add). Their must be in main wrapper
$popups_content = '';

Expand Down
3 changes: 2 additions & 1 deletion admin/forum_repair.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
include_once '../sys/boot.php';
include_once ROOT . '/admin/inc/adm_boot.php';


// If for menu
$_GET['m'] = "forum";


$forums = $FpsDB->select('forums', DB_ALL, array());
Expand Down
18 changes: 10 additions & 8 deletions admin/js/drunya.lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,18 +182,21 @@ function addWin(prefix) {

function subMenu(id) {
menu_item_over = true;
//console.log($('#' + id));
if ($('.li-sub-opener #' + id).is(':visible')) {
$('.li-sub-opener #' + id).slideDown();
return;
}

hideAll();

if (!$('#'+id).is(':visible')) {
$('#'+id).slideDown();
if (!$('#' + id).is(':visible')) {
$('#' + id).slideDown();
} else {
$('#'+id).slideUp();
$('#' + id).slideUp();
}


}


function save(prefix) {

var inp = document.getElementById(prefix + '_inp').value;
Expand Down Expand Up @@ -287,8 +290,7 @@ function hideAll() {
$(this).slideUp('fast');
});


$('.side-menu > ul > li .sub').each(function(){
$('.side-menu > ul > li#not-sub .sub').each(function(){
$(this).slideUp('fast');
});

Expand Down
3 changes: 3 additions & 0 deletions admin/page.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
include_once ROOT . '/admin/inc/adm_boot.php';


// If for menu
$_GET['m'] = 'pages';


class PagesAdminController {

Expand Down
4 changes: 4 additions & 0 deletions admin/statistic.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
include_once '../sys/boot.php';
include_once ROOT . '/admin/inc/adm_boot.php';

// If for menu
$_GET['m'] = 'statistics';



$date = (!empty($_GET['date'])) ? $_GET['date'] : time();
$_date = date("Y-m-d", $date);
Expand Down
11 changes: 11 additions & 0 deletions admin/template/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,13 @@ table.side-separator, table.side-separator tr td {vertical-align:top; min-height
.side-menu li div.sub ul li {width:auto; min-height:25px; padding:0px 10px 0px 60px;}
.side-menu li div.sub ul li a {display:block; color:#96c703; padding-top:5px; font-size:13px; text-transform:none; -moz-text-shadow:0px -1px 1px #000; -webkit-text-shadow:0px -1px 1px #000; text-shadow:0px -1px 1px #000; text-decoration:underline; max-width: 170px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden;}
.side-menu li div.sub ul li:hover a {text-shadow:0px 0px 2px #96c703;}
.side-menu li#pot-sub {}

.li-sub-opener {display:block; width:235px; min-height:35px; background:url('../img/sidemenu-point-bg.png') 209px -70px no-repeat; position:relative; border-top:1px solid #272728; border-bottom:1px solid #646363;}
.li-sub-opener #subloads, .li-sub-opener #subchat, .li-sub-opener #subforum, .li-sub-opener #subfoto, .li-sub-opener #subsearch, .li-sub-opener #substat, .li-sub-opener #subnews, .li-sub-opener #subpages, .li-sub-opener #subusers, .li-sub-opener #substatistics, .li-sub-opener #subshop {display: block;}

/* Side menu .li-sub-opener */
.li-sub-opener.chat_a, .li-sub-opener.forum_a, .li-sub-opener.foto_a, .li-sub-opener.search_a, .li-sub-opener.loads_a, .li-sub-opener.stat_a, .li-sub-opener.news_a, .li-sub-opener.pages_a, .li-sub-opener.users_a, .li-sub-opener.statistics_a, .li-sub-opener.shop_a {background-position:209px -70px;}

/* Side menu icons */
.side-menu li div.icon.users {background-position:0px 6px;}
Expand All @@ -107,6 +114,9 @@ table.side-separator, table.side-separator tr td {vertical-align:top; min-height
.side-menu li div.icon.forum {background-position:0px -420px;}





/* Content */
.crumbs, .rcrumbs {height:17px; width:45%; padding:17px 20px; color:#a1a1a1; font-style:italic; font-size:12px;}
.crumbs a, .rcrumbs a {color:#a1a1a1; font-style:italic; text-decoration:underline; font-size:12px;}
Expand Down Expand Up @@ -172,6 +182,7 @@ table.side-separator, table.side-separator tr td {vertical-align:top; min-height
.list > .level1 > .items > .setting-item {color:#3a3a3a; font-size:13px; text-shadow:0px 0px 1px #777; position:relative;}
.list > .level1 > .items > .setting-item .left, .list > .level1 > .items > .setting-item .right {padding:13px;}
.list > .level1 > .items > .setting-item .left {width:23%; float:left; border-right:1px solid #e1e1e1; padding:20px;}
.list > .level1 > .items > .setting-item .left .rights {width:23%; color:#3a3a3a; position:absolute; text-align:right; }

.list > .level1 > .items .comment2 {color:#939393; padding:0px 5px; font-size:11px; font-style:italic; -moz-text-shadow:none; -webkit-text-shadow:none; text-shadow:none;}
.list > .level1 > .items > .setting-item .right {float:left; border-left:1px solid #e1e1e1; margin-left:-1px; vertical-align:center;}
Expand Down
14 changes: 9 additions & 5 deletions admin/template/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,10 @@ function setMenuPosition() {
foreach ($nsmods as $mk => $mv):
?>

<li>
<li id="not-sub">
<div class="icon new-module"></div>
<div class="sub-opener" onClick="subMenu('sub<?php echo $mk; ?>')"></div>
<a href="#"><?php echo $mk; ?></a>
<div class="sub-opener" onClick="subMenu('sub<?php echo $mk; ?>')"></div>
<a href="#"><?php echo $mk; ?></a>
<div class="clear"></div>
<div id="sub<?php echo $mk; ?>" class="sub">
<div class="shadow">
Expand All @@ -187,11 +187,15 @@ function setMenuPosition() {

foreach ($modules as $modKey => $modData):
if (!empty($nsmods) && array_key_exists($modKey, $nsmods)) continue;

?>

<li>
<li <?php if (isset($_GET['m']) && $modKey == $_GET['m']) { ?>
class="li-sub-opener <?php echo $modKey . '_a' ?>" <?php } else { ?> id="not-sub" <?php } ?>>
<div class="icon <?php echo $modKey ?>"></div>
<div class="sub-opener" onClick="subMenu('sub<?php echo $modKey ?>')"></div>

<div class="sub-opener" onClick="subMenu('sub<?php echo $modKey ?>')"></div>

<a href="<?php echo $modData['url']; ?>"><?php echo $modData['ankor']; ?></a>
<div class="clear"></div>
<div id="sub<?php echo $modKey ?>" class="sub">
Expand Down
Binary file modified admin/template/img/sidemenu-point-bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 4 additions & 1 deletion admin/users_groups.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*---------------------------------------------\
| |
| Author: Andrey Brykin (Drunya) |
| Version: 1.1 |
| Version: 1.2 |
| Project: CMS |
| package CMS AtomX |
| subpackege Admin Panel module |
Expand All @@ -23,6 +23,9 @@
include_once '../sys/boot.php';
include_once ROOT . '/admin/inc/adm_boot.php';

// If for menu
$_GET['m'] = 'users';


$pageTitle = __('Users');
$pageNav = $pageTitle;
Expand Down
7 changes: 5 additions & 2 deletions admin/users_list.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*-----------------------------------------------\
| |
| Author: Andrey Brykin (Drunya) |
| Version: 1.2.3 |
| Version: 1.3 |
| Project: CMS |
| package CMS AtomX |
| subpackege Admin Panel module |
Expand All @@ -25,7 +25,10 @@
include_once '../sys/boot.php';
include_once ROOT . '/admin/inc/adm_boot.php';


// If for menu
$_GET['m'] = 'users';


$pageTitle = __('Users');


Expand Down
43 changes: 22 additions & 21 deletions admin/users_rating.php
Original file line number Diff line number Diff line change
@@ -1,29 +1,30 @@
<?php
##################################################
## ##
## Author: Andrey Brykin (Drunya) ##
## Version: 1.2 ##
## Project: CMS ##
## package CMS AtomX ##
## subpackege Admin Panel module ##
## copyright ©Andrey Brykin 2010-2011 ##
##################################################


##################################################
## ##
## any partial or not partial extension ##
## CMS AtomX,without the consent of the ##
## author, is illegal ##
##################################################
## Любое распространение ##
## CMS AtomX или ее частей, ##
## без согласия автора, является не законным ##
##################################################
/*---------------------------------------------\
| |
| Author: Andrey Brykin (Drunya) |
| Version: 1.5 |
| Project: CMS |
| package CMS AtomX |
| subpackege Admin Panel module |
| copyright Andrey Brykin 2010-2016 |
|----------------------------------------------|
| |
| any partial or not partial extension |
| CMS AtomX,without the consent of the |
| author, is illegal |
|----------------------------------------------|
| Любое распространение |
| CMS AtomX или ее частей, |
| без согласия автора, является не законным |
\---------------------------------------------*/


include_once '../sys/boot.php';
include_once ROOT . '/admin/inc/adm_boot.php';

// If for menu
$_GET['m'] = 'users';


if (isset($_POST['send'])) {
$errors = array();
Expand Down
2 changes: 1 addition & 1 deletion admin/users_reg_rules.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php#################################################### #### Author: Andrey Brykin (Drunya) #### Version: 1.0 #### Project: CMS #### package CMS AtomX #### subpackege Admin Panel module #### copyright ©Andrey Brykin 2010-2011 ######################################################################################################## #### any partial or not partial extension #### CMS AtomX,without the consent of the #### author, is illegal ###################################################### Любое распространение #### CMS AtomX или ее частей, #### без согласия автора, является не законным ####################################################include_once '../sys/boot.php';include_once ROOT . '/admin/inc/adm_boot.php';$pageTitle = __('Registration rules');$pageNav = $pageTitle;$pageNavr = '';include_once ROOT . '/admin/template/header.php'; if (isset($_POST['send'])) { if (!empty($_POST['message'])) { $check = $FpsDB->select('users_settings', DB_COUNT, array('cond' => array('type' => 'reg_rules'))); if ($check > 0) { $FpsDB->save('users_settings', array( 'values' => $_POST['message'], ), array( 'type' => 'reg_rules', ) ); } else { $FpsDB->save('users_settings', array( 'values' => $_POST['message'], 'type' => 'reg_rules', ) ); } } else { echo '<span style="color:red;">' . __('Fill in rules') . '</span>'; }}$query = $FpsDB->select('users_settings', DB_FIRST, array('cond' => array('type' => 'reg_rules')));if (count($query) > 0) { $current_rules = $query[0]['values'];}?><div class="warning"> <?php echo __('Fill in registration rules on the your site. Users will be duty to read their.') ?></div><div class="list"> <div class="title"><?php echo __('Registration rules') ?></div> <table style="width:100%;" cellspacing="0" class="grid"> <form action="" method="POST"> <tr> <td> <textarea name="message" style="width:99%; height:400px;"><?php echo (!empty($current_rules)) ? $current_rules : ''; ?></textarea> </td> </tr> <tr> <td align="center"> <input class="save-button" type="submit" name="send" value="<?php echo __('Save') ?>" /> </td> </tr> </form> </table></div><?phpinclude_once 'template/footer.php';?>
<?php/*---------------------------------------------\| || Author: Andrey Brykin (Drunya) || Version: 1.1 || Project: CMS || package CMS AtomX || subpackege Admin Panel module || copyright Andrey Brykin 2010-2016 ||----------------------------------------------|| || any partial or not partial extension || CMS AtomX,without the consent of the || author, is illegal ||----------------------------------------------|| Любое распространение || CMS AtomX или ее частей, || без согласия автора, является не законным |\---------------------------------------------*/include_once '../sys/boot.php';include_once ROOT . '/admin/inc/adm_boot.php';// If for menu$_GET['m'] = 'users'; $pageTitle = __('Registration rules');$pageNav = $pageTitle;$pageNavr = '';include_once ROOT . '/admin/template/header.php'; if (isset($_POST['send'])) { if (!empty($_POST['message'])) { $check = $FpsDB->select('users_settings', DB_COUNT, array('cond' => array('type' => 'reg_rules'))); if ($check > 0) { $FpsDB->save('users_settings', array( 'values' => $_POST['message'], ), array( 'type' => 'reg_rules', ) ); } else { $FpsDB->save('users_settings', array( 'values' => $_POST['message'], 'type' => 'reg_rules', ) ); } } else { echo '<span style="color:red;">' . __('Fill in rules') . '</span>'; }}$query = $FpsDB->select('users_settings', DB_FIRST, array('cond' => array('type' => 'reg_rules')));if (count($query) > 0) { $current_rules = $query[0]['values'];}?><div class="warning"> <?php echo __('Fill in registration rules on the your site. Users will be duty to read their.') ?></div><div class="list"> <div class="title"><?php echo __('Registration rules') ?></div> <table style="width:100%;" cellspacing="0" class="grid"> <form action="" method="POST"> <tr> <td> <textarea name="message" style="width:99%; height:400px;"><?php echo (!empty($current_rules)) ? $current_rules : ''; ?></textarea> </td> </tr> <tr> <td align="center"> <input class="save-button" type="submit" name="send" value="<?php echo __('Save') ?>" /> </td> </tr> </form> </table></div><?phpinclude_once 'template/footer.php';?>
Expand Down
43 changes: 22 additions & 21 deletions admin/users_rules.php
Original file line number Diff line number Diff line change
@@ -1,29 +1,30 @@
<?php
##################################################
## ##
## Author: Andrey Brykin (Drunya) ##
## Version: 1.4 ##
## Project: CMS ##
## package CMS AtomX ##
## subpackege Admin Panel module ##
## copyright ©Andrey Brykin 2010-2017 ##
##################################################


##################################################
## ##
## any partial or not partial extension ##
## CMS AtomX,without the consent of the ##
## author, is illegal ##
##################################################
## Любое распространение ##
## CMS AtomX или ее частей, ##
## без согласия автора, является не законным ##
##################################################
/*---------------------------------------------\
| |
| Author: Andrey Brykin (Drunya) |
| Version: 1.5 |
| Project: CMS |
| package CMS AtomX |
| subpackege Admin Panel module |
| copyright Andrey Brykin 2010-2016 |
|----------------------------------------------|
| |
| any partial or not partial extension |
| CMS AtomX,without the consent of the |
| author, is illegal |
|----------------------------------------------|
| Любое распространение |
| CMS AtomX или ее частей, |
| без согласия автора, является не законным |
\---------------------------------------------*/


include_once '../sys/boot.php';
include_once ROOT . '/admin/inc/adm_boot.php';

// If for menu
$_GET['m'] = 'users';


function prepareConfToSave ($conf) {
$result = array();
Expand Down
43 changes: 20 additions & 23 deletions admin/users_sendmail.php
Original file line number Diff line number Diff line change
@@ -1,32 +1,29 @@
<?php
/*---------------------------------------------\
| |
| Author: Andrey Brykin (Drunya) |
| Version: 1.5 |
| Project: CMS |
| package CMS AtomX |
| subpackege Admin Panel module |
| copyright Andrey Brykin 2010-2016 |
|----------------------------------------------|
| |
| any partial or not partial extension |
| CMS AtomX,without the consent of the |
| author, is illegal |
|----------------------------------------------|
| Любое распространение |
| CMS AtomX или ее частей, |
| без согласия автора, является не законным |
\---------------------------------------------*/

##################################################
## ##
## Author: Andrey Brykin (Drunya) ##
## Version: 1.2 ##
## Project: CMS ##
## package CMS AtomX ##
## subpackege Admin Panel module ##
## copyright ©Andrey Brykin ##
## last mod. 2014/03/04 ##
##################################################


##################################################
## ##
## any partial or not partial extension ##
## CMS AtomX,without the consent of the ##
## author, is illegal ##
##################################################
## Любое распространение ##
## CMS AtomX или ее частей, ##
## без согласия автора, является не законным ##
##################################################

include_once '../sys/boot.php';
include_once ROOT . '/admin/inc/adm_boot.php';


// If for menu
$_GET['m'] = 'users';


$pageTitle = __('Mass mailing');
Expand Down
2 changes: 1 addition & 1 deletion changes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ v2.8 Beta *☢☠
50. Фикс поиска.
51. Пользователь использует $this->showInfoMessage() а не redirect().
52. Фикс faq.php.

53. Фикс телефон.


Новое
Expand Down
Loading