Ðàçðàáîòêà ñàéòà ïðåäïðèÿòèè
Îñîáåííîñòè ñîçäàíèÿ ñàéòà èíòåðíåò-ìàãàçèíà äëÿ ÷àñòíûõ ëèö è îðãàíèçàöèé. Àíàëèç ôèíàíñîâîé è òåõíèêî-ýêîíîìè÷åñêîé äåÿòåëüíîñòè ôèðìû. Ñîçäàíèå èíôîðìàöèîííîé ìîäåëè ñàéòà, åå áàçîâûå ýëåìåíòû. Âûáîð ïðîãðàììíîãî è àïïàðàòíîãî îáåñïå÷åíèÿ ñàéòà.
Ðóáðèêà | Ïðîãðàììèðîâàíèå, êîìïüþòåðû è êèáåðíåòèêà |
Âèä | äèïëîìíàÿ ðàáîòà |
ßçûê | ðóññêèé |
Äàòà äîáàâëåíèÿ | 08.12.2013 |
Ðàçìåð ôàéëà | 1,5 M |
Îòïðàâèòü ñâîþ õîðîøóþ ðàáîòó â áàçó çíàíèé ïðîñòî. Èñïîëüçóéòå ôîðìó, ðàñïîëîæåííóþ íèæå
Ñòóäåíòû, àñïèðàíòû, ìîëîäûå ó÷åíûå, èñïîëüçóþùèå áàçó çíàíèé â ñâîåé ó÷åáå è ðàáîòå, áóäóò âàì î÷åíü áëàãîäàðíû.
{
open_table(_NEWS);
if (ADMIN_HELP_ON)
{
?>
<div class=”help_block”>
<div onclick=”ShowOrHide(this, `hb_news');” class=”open_close”><?php echo _OPEN_CLOSE; ?></div>
<div id=”hb_news” style=”display: none;”><?php echo _HB_NEWS; ?></div>
</div>
<?php
}
if (mysql_num_rows($result) == 0)
{
echo 'Â áàçå äàííûõ íåò íîâîñòåé';
}
while ($line = mysql_fetch_array($result))
{
$href = “news/” . $line[`Id'];
echo `<div class=”list”>
<span class=”mark”>'.$line[`Id'].'. `.$line[`title'].' - (`.$line[`dt'].')</span>
<div class=”edit_del”>[ <a href=”'.$href.'”>'._VISIT.'</a> |
<a href=”admin/news/'.$line[`Id'].'”>'._EDIT.'</a> |
<a href=”javascript:void(0);” onclick=”confirm_and_go(\'admin/news/'.(((isset($_GET[`p'])) && (($l_p = intval($_GET[`p']))) && ($l_p > 1)) ? `p/'.$l_p.'/' : `').'delete/'.$line[`Id'].'\')”>'._DEL.'</a> ]</div>
</div>';
}
close_table();
admin_pager_pages();
}
}
if (isset($_GET[`id']))
{
$Id = intval($_GET[`id']);
if ((isset($_GET[`delete'])) && ($_GET[`delete'] == `1'))
{
mysql_query(“DELETE FROM `” . MYSQL_PREFIX . “news` WHERE `Id` = {$Id}”);
foreach ($addons as $cur_addon)
{
call_user_func(`addon__' . $cur_addon . `_admin_after_delete', $_GET[`page'], $Id);
}
ob_end_clean();
if ((isset($_GET[`p'])) && (($l_p = intval($_GET[`p']))) && ($l_p > 1) && ($result = mysql_query(“SELECT COUNT(*) FROM `” . MYSQL_PREFIX . “news`”)) && ($line = mysql_fetch_row($result)))
{
$l_c = ceil($line[0] / $admin_count_per_page);
if ($l_p > $l_c)
{
$l_p = $l_c;
}
header(`Location: ` . SITE_ROOT . `admin/news/p/' . $l_p);
}
else
{
header(`Location: ` . SITE_ROOT . `admin/news');
}
exit;
}
else
{
$category = `0';
$title = `';
$short = `';
$full = `';
$show_in_main_checked = `checked=”checked”';
$categories_options = `';
$show_in_main_checked = ((SHOW_IN_MAIN_ON == 1) ? `checked=”checked”' : `');
$news_auto_br = ((AUTO_BR_DEFAULT_ON == 1) ? `checked=”checked”' : `');
if (($result = mysql_query(“SELECT * FROM `” . MYSQL_PREFIX . “news` WHERE `Id` = {$Id}”)) && (($line = mysql_fetch_array($result))))
{
$category = $line[`category_id'];
$title = $line[`title'];
$short = $line[`short'];
$full = $line[`full'];
$show_in_main_checked = ($line[`show_in_main'] == `1') ? `checked=”checked”' : `';
$news_auto_br = (($line[`auto_br'] == `1') ? `checked=”checked”' : `');
}
else if ($Id != `0')
{
header(`Location: ` . SITE_ROOT);
exit;
}
if ($result = mysql_query(“SELECT * FROM `” . MYSQL_PREFIX . “categories` ORDER BY `id`”))
{
while ($line = mysql_fetch_array($result))
{
$categories_options .= `<option'.(($category == $line[`Id'])?' selected=”selected”':'').' Value=”'.$line[`Id'].'”>'.$line[`title'].'</option>';
}
}
open_table(_NEWS_EDIT_ADD);
if(ADMIN_HELP_ON)
{
?>
<div class=”help_block”>
<div onclick=”ShowOrHide(this, `hb_news_edit_add');” class=”open_close”><?php echo _OPEN_CLOSE; ?></div>
<div id=”hb_news_edit_add” style=”display: none;”><?php echo _HB_NEWS_EDIT_ADD; ?></div>
</div>
<?php
}
?>
<div id=”form_errors”></div>
<form action=”<?php echo $_SERVER[`REQUEST_URI']; ?>” method=”post” enctype=”multipart/form-data”>
<table class=”form_tab”>
<tr>
<td nowrap=”nowrap”><?php echo _TITLE; ?></td>
<td width=”100%”><input type=”text” name=”news_title” value=”<?php echo $title; ?>” class=”i_text” id=”ar_title”></td>
</tr>
<tr>
<td nowrap=”nowrap”><?php echo _NEWS_SECTION; ?></td>
<td>
<select name=”news_category”><?php echo $categories_options; ?></select>
<a href=”admin/categories/new”><?php echo _M_NEW_CATEGORY; ?></a>
</td>
</tr>
<tr>
<td colspan=”2”>
<label><?php echo _SHOW_IN_MAIN; ?> <input type=”checkbox” <?php echo $show_in_main_checked; ?> name=”news_show_in_main” value=”1”></label>
<label><?php echo _AUTO_BR; ?> <input type=”checkbox” <?php echo $news_auto_br; ?> name=”news_auto_br” value=”1” id=”auto_br_id” onclick=”aeditor_refresh();”></label>
<label><?php echo _LIVE_PREVIEW; ?> <input type=”checkbox” <?php echo $live_preview_on; ?> onchange=”show_hide(`live_preview');”><label>
</td>
</tr>
<tr>
<td colspan=”2”>
<div id=”ar_textblock1”>
<textarea name=”news_short” class=”i_textarea” id=”ar_textarea1”><?php echo $short; ?></textarea>
</div>
</td>
</tr>
<tr>
<td colspan=”2”>
<div id=”ar_textblock2”>
<textarea name=”news_full” class=”i_textarea” id=”ar_textarea2”><?php echo $full; ?></textarea>
</div>
</td>
</tr>
<?php
echo $include_in_admin_form;
?>
<tr>
<td colspan=”2”>
<input type=”submit” value=”<?php echo _SAVE; ?>” name=”save_news”>
<input value=”<?php echo _PREVIEW; ?>” type=”button” onclick=”show_html(`ar_title, ar_textarea1, ar_textarea2')”>
</td>
</tr>
</table>
</form>
<div id=”live_preview”><div class=”live_preview_title”><?php echo _LIVE_PREVIEW; ?></div>
<div id=”ar_result1”></div>
<div id=”ar_result2”></div>
</div>
<script type=”text/javascript”>
register_textarea(“ar_textarea1”, “ar_textblock1”, “ar_result1”);
register_textarea(“ar_textarea2”, “ar_textblock2”, “ar_result2”);
</script>
<?php
close_table();
}
}
break;
/*
#############################
# AdminCP - Çàãðóç÷èê ôàéëîâ
#############################
*/
case `fileupload':
open_table(_M_FILE_UPLOAD);
if(ADMIN_HELP_ON)
{
?>
<div class=”help_block”>
<div onclick=”ShowOrHide(this, `hb_file_upload');” class=”open_close”><?php echo _OPEN_CLOSE; ?></div>
<div id=”hb_file_upload” style=”display: none;”><?php echo _HB_FILE_UPLOAD; ?></div>
</div>
<?php
}
?>
<form action=”<?php echo $_SERVER[`REQUEST_URI']; ?>” enctype=”multipart/form-data” method=”post”>
<input name=”file_upload” type=”file” size=”60” style=”color: #000;”><br>
<input name=”file_upload_btn” type=”submit” value=”<?php echo _UPLOAD; ?>”>
</form>
<?php
if ((isset($_FILES[`file_upload'][`name'])) && (!empty($_FILES[`file_upload'][`name'])))
{
if (move_uploaded_file($_FILES[`file_upload'][`tmp_name'], FILE_UPLOAD_FOLDER . basename($_FILES[`file_upload'][`name'])))
{
echo `<input type=”text” class=”i_text” value=”<a href="' . FILE_UPLOAD_FOLDER . basename($_FILES[`file_upload'][`name']) . `">' . basename($_FILES[`file_upload'][`name']) . `</a>”>' .
`<br><br><a href=”' . FILE_UPLOAD_FOLDER . basename($_FILES[`file_upload'][`name']) . `”>' . _LINK . `</a>';
}
else
{
echo _FILE_UPLOAD_ERROR;
}
}
close_table();
break;
}
foreach ($addons as $cur_addon)
{
call_user_func(`addon__' . $cur_addon . `_admin_end');
}
if (count($errors) > 0)
{
process_errors($errors);
$errors = array();
}
admin_footer($js);
ob_end_flush();
}
}
else
{
check_login(false);
switch ($_GET[`page'])
{
/*
#############################
# Ñàéò - Íîâîñòè
#############################
*/
case `news';
if (isset($_GET[`id']))
{
require_once `templates/site.tpl';
$Id = intval($_GET[`id']);
$sql = “SELECT n.*, c.`title` AS `news_category` FROM `” . MYSQL_PREFIX . “news` n INNER JOIN `” . MYSQL_PREFIX . “categories` c ON n.`category_id` = c.`Id` WHERE n.`Id` = {$Id}”;
if (($result = mysql_query($sql)) && ($line = mysql_fetch_array($result)))
{
if (isset($line[`news_category']))
{
$title_news_category = ` - ` . $line[`news_category'];
}
else
{
$title_news_category = `';
}
if (isset($line[`title']))
{
$title_news_title = ` - ` . $line[`title'];
}
else
{
$title_news_title = `';
}
site_header($title_news_category, $title_news_title);
if ($line[`auto_br'] == `1')
{
$line[`short'] = nl2br($line[`short']);
$line[`full'] = nl2br($line[`full']);
}
$admin_edit_link = ($admin_logged_in === true) ? `
<div class=”admin_edit_link”>[ <a href=”admin/news/'.$line[`Id'].'”>'._EDIT.'</a> |
<a href=”javascript:void(0);” onclick=”confirm_and_go(\'admin/news/delete/'.$line[`Id'].'\')”>'._DEL.'</a> ]</div>
site_full_news($line[`category_id'], $line[`news_category'], $line[`Id'], $line[`title'], todate($line[`dt']), $line[`short'], $line[`full'], $admin_edit_link);
foreach ($addons as $cur_addon)
{
call_user_func(`addon__' . $cur_addon . `_site_full_news', $line[`category_id'], $line[`news_category'], $line[`Id'], $line[`title'], todate($line[`dt']), $line[`short'], $line[`full'], $admin_edit_link);
}
site_footer($js);
ob_end_flush();
}
else
{
ob_end_clean();
header(`Location: ` . SITE_ROOT);
exit;
}
}
else if ((isset($_GET[`p'])) && (isset($_GET[`category'])))
{
$news_category = intval($_GET[`category']);
$sql = “SELECT * FROM `” . MYSQL_PREFIX . “categories` WHERE `Id` = `{$news_category}'
$tpl_file = `site.tpl';
if (($result = mysql_query($sql)) && ($line = mysql_fetch_array($result)))
{
if ((strlen($line[`category_template']) > 0) && (file_exists(`./templates/' . $line[`category_template'])))
{
$tpl_file = $line[`category_template'];
}
}
else if ($news_category > 0)
{
header(`Location: ` . SITE_ROOT);
exit;
}
if (isset($line[`title']))
{
$title_news_category = ` - ` . $line[`title'];
}
else
{
$title_news_category = `';
}
require_once `templates/' . $tpl_file;
$sql = “SELECT n.*, c.`title` AS `news_category` FROM `” . MYSQL_PREFIX . “news` n INNER JOIN `” . MYSQL_PREFIX . “categories` c ON n.`category_id` = c.`Id`”;
if ($news_category > 0)
{
$sql .= “ WHERE n.`category_id` = {$news_category}”;
}
else
{
$sql .= “ WHERE n.`show_in_main` = 1”;
}
$n = mysql_num_rows(mysql_query($sql));
$apager = new apager($n, $news_count_per_page, $pages_count_per_page);
$limit_start = $apager->getPageFirstItemNumber();
$last = ($n < $news_count_per_page) ? $n : $news_count_per_page;
$sql .= “ ORDER BY `dt` DESC LIMIT {$limit_start}, {$news_count_per_page}”;
if ($result = mysql_query($sql))
{
site_header($title_news_category);
while ($line = mysql_fetch_array($result))
{
if ($line[`auto_br'] == `1')
{
$line[`short'] = nl2br($line[`short']);
}
$admin_edit_link = ($admin_logged_in === true) ? `<div class=”admin_edit_link”>[ <a href=”admin/news/'.$line[`Id'].'”>'._EDIT.'</a> |
<a href=”javascript:void(0);” onclick=”confirm_and_go(\'admin/news/delete/'.$line[`Id'].'\')”>'._DEL.'</a> ]</div>'
site_news($line[`category_id'], $line[`news_category'], $line[`Id'], $line[`title'], todate($line[`dt']), $line[`short'], $line[`full'], (!empty($line[`full'])), “news/” . $line[`Id'], $admin_edit_link);
}
pager_pages();
site_footer($js);
ob_end_flush();
}
else
{
ob_end_clean();
header(`Location: ` . SITE_ROOT);
exit;
}
}
else
{
ob_end_clean();
header(`Location: ` . SITE_ROOT);
exit;
}
break;
/*
#############################
# Ñàéò - Ñòðàíèöû
#############################
*/
case `pages':
if (isset($_GET[`id']))
{
$Id = intval($_GET[`id']);
$sql = “SELECT * FROM `” . MYSQL_PREFIX . “pages` WHERE `id` = {$Id}”;
if (($result = mysql_query($sql)) && ($line = mysql_fetch_array($result)))
{
$tpl_file = `site.tpl';
if ((strlen($line[`page_template']) > 0) && (file_exists(`./templates/' . $line[`page_template'])))
{
$tpl_file = $line[`page_template'];
}
require_once `templates/' . $tpl_file;
$admin_edit_link = ($admin_logged_in === true) ? `
<div class=”admin_edit_link”>[ <a href=”admin/pages/'.$line[`Id'].'”>'._EDIT.'</a> |
<a href=”javascript:void(0);” onclick=”confirm_and_go(\'admin/pages/delete/'.$line[`Id'].'\')”>'._DEL.'</a> ]</div>'
if (isset($line[`title']))
{
$title_news_category = ` - ` . $line[`title'];
}
else
{
$title_news_category = `';
}
site_header($title_news_category);
$content = process_php($line[`content']);
if ($line[`auto_br'] == `1')
{
$content = nl2br($content);
}
$content_arr = explode(`{listing}', $content);
$apager = new apager(count($content_arr), 1, $pages_count_per_page);
$limit_start = $apager->getPageFirstItemNumber();
$page_p = intval($_GET[`p']) - 1;
$content = $content_arr[$page_p];
site_page($Id, $line[`title'], $content, $admin_edit_link);
pager_pages();
site_footer($js);
ob_end_flush();
}
else
{
ob_end_clean();
header(`Location: ` . SITE_ROOT);
exit;
}
}
else
{
ob_end_clean();
header(`Location: ` . SITE_ROOT);
exit;
}
break;
/*
#############################
# Ñàéò - Ïåðâàÿ ñòðàíèöà
#############################
*/
case `main':
ob_end_clean();
header(`Location: ` . MAIN_PAGE);
break;
}
}
/*
# Ôóíêöèÿ âûâîäà áëîêîâ
*/
function echo_block($block_title)
{
global $admin_logged_in;
if (($blocks_result = mysql_query(“SELECT * FROM `” . MYSQL_PREFIX . “blocks` WHERE `title` = `{$block_title}'”)) && ($blocks_line = mysql_fetch_array($blocks_result)))
{
echo process_php($blocks_line[`content']);
if ($admin_logged_in === true)
{
echo `<br clear=”all”><div class=”admin_block_edit_link”>[ <a href=”'. SITE_ROOT .'admin/blocks/'.$blocks_line[`Id'] . `”>'. _EDIT .'</a> ]</div>';
}
}
}
function process_php($php)
{
return preg_replace_callback(“/(\<\?php)([\d\D]+)(\?\>)/”, create_function(`$matches', `return compile($matches[2]);'), $php);
}
function compile($code)
{
ob_start();
eval($code);
return ob_get_clean();
}
/*
# Ôóíêöèÿ ëåíòû íîâîñòåé
*/
function site_newsline($category_id)
{
global $admin_logged_in, $news_count_in_newsline;
$category_id = intval($category_id);
$sql = “SELECT n.*, c.`title` AS `news_category` FROM `” . MYSQL_PREFIX . “news` n INNER JOIN `” . MYSQL_PREFIX . “categories` c ON n.`category_id` = c.`Id` WHERE c.`Id` = {$category_id} ORDER BY `dt` DESC LIMIT {$news_count_in_newsline}”;
if ($result = mysql_query($sql))
{
while ($line = mysql_fetch_array($result))
{
if ($line[`auto_br'] == `1')
{
$line[`short'] = nl2br($line[`short']);
}
$admin_edit_link = ($admin_logged_in === true) ? `<div class=”admin_edit_link”>[ <a href=”admin/news/'.$line[`Id'].'”>'._EDIT.'</a> |
<a href=”javascript:void(0);” onclick=”confirm_and_go(\'admin/news/delete/'.$line[`Id'].'\')”>'._DEL.'</a> ]</div>'
site_newsline_news($line[`category_id'], $line[`news_category'], $line[`Id'], $line[`title'], todate($line[`dt']), $line[`short'], (!empty($line[`full'])), “news/” . $line[`Id'], $admin_edit_link);
}
}
else
{
header(`Location: ` . SITE_ROOT);
exit;
}
}
function todate($l_date)
{
global $date_format;
list($date, $time) = explode(` `, $l_date);
list($year, $month, $day) = explode(`-`, $date);
list($hour, $min, $sec) = explode(`:', $time);
return date($date_format, strtotime(“{$year}-{$month}-{$day} {$hour}:{$min}:{$sec} GMT”));
}
/*
# Ïðîâåðêà Ïàðîëÿ
*/
function check_login($generate_form = true)
{
global $admin_logged_in;
$admin_logged_in = false;
if ((!isset($_SESSION[`admin_password'])) && (!isset($_POST[`admin_password'])) && (!isset($_COOKIE[`bc_saved_pw'])))
{
if ($generate_form == true)
{
if ((isset($_GET[`lf'])) && ($_GET[`lf'] == `1'))
{
admin_login_form();
ob_end_flush();
}
else
{
header(`Location: ` . SITE_ROOT . `admin');
}
exit;
}
}
else if (isset($_POST[`admin_password']))
{
ob_end_clean();
$_SESSION[`admin_password'] = md5($_POST[`admin_password']);
if ((isset($_POST[`admin_save_password'])) && ($_POST[`admin_save_password'] == `1') && ($_SESSION[`admin_password'] == ADMIN_PASSWORD))
{
$password_cookie = (SAVE_PASSWORD_LOCK_TO_IP == 0) ? md5($_SESSION[`admin_password'] . SALT) : md5($_SESSION[`admin_password'] . SALT . $_SERVER[`REMOTE_ADDR']);
setcookie(`bc_saved_pw', $password_cookie, time() + 30 * 24 * 3600, `/');
}
header(`Location: `.SITE_ROOT.'admin');
exit;
}
else if (isset($_SESSION[`admin_password']))
{
if ($_SESSION[`admin_password'] == ADMIN_PASSWORD)
{
$admin_logged_in = true;
}
else
{
if ($generate_form == true)
{
echo _INVALID_ADMIN_PASSWORD;
echo `<br><a href=”admin”>'._BACK.'</a>';
}
ob_end_flush();
session_destroy();
exit;
}
}
else if ((isset($_COOKIE[`bc_saved_pw'])) && (!empty($_COOKIE[`bc_saved_pw'])))
{
if ( ((SAVE_PASSWORD_LOCK_TO_IP == 0) && (md5(ADMIN_PASSWORD . SALT) == $_COOKIE[`bc_saved_pw'])) || (md5(ADMIN_PASSWORD . SALT . $_SERVER[`REMOTE_ADDR']) == $_COOKIE[`bc_saved_pw']) )
{
$admin_logged_in = true;
}
else
{
setcookie(`bc_saved_pw', `', null, `/');
if ($generate_form == true)
{
echo _INVALID_ADMIN_PASSWORD;
echo `<br><a href=”admin”>'._BACK.'</a>';
}
ob_end_flush();
session_destroy();
exit;
}
}
return ($admin_logged_in === true);
}
/*
# Ëèñòèíã
*/
class apager
{
var $_limit_start;
var $_this_page;
var $_uri;
var $_get_var;
var $_number_of_records;
var $_max_links_count_on_one_page;
var $_items_count_on_one_page;
var $_is_error = false;
var $_links = array();
function apager($number_of_records, $items_count_on_one_page = 10, $max_links_count_on_one_page = 10, $get_var = “p”)
{
if (
(!is_numeric($items_count_on_one_page)) || ($items_count_on_one_page < 1) ||
(!is_string($get_var)) || (strlen($get_var) < 1) ||
(!is_numeric($number_of_records)) || ($number_of_records < 0) ||
(!is_numeric($max_links_count_on_one_page)) || ($max_links_count_on_one_page < 1)
{
$this->_is_error = true;
}
else
{
$this->_uri = $_SERVER[`REQUEST_URI'];
$this->_get_var = $get_var;
$this->_number_of_records = $number_of_records;
$this->_max_links_count_on_one_page = $max_links_count_on_one_page;
$this->_items_count_on_one_page = $items_count_on_one_page;
$this->_this_page = ( (!isset($_GET[$get_var])) || (!is_numeric($_GET[$get_var])) || ($_GET[$get_var] < 1) ) ? 1 : $_GET[$get_var];
$this->_limit_start = ( $this->_this_page * $this->_items_count_on_one_page ) - $this->_items_count_on_one_page;
while ( ($this->_this_page > 0) && ( (($this->_this_page * $this->_items_count_on_one_page) - $this->_items_count_on_one_page) >= $this->_number_of_records ) )
{
$this->_this_page--;
}
}
}
function getPageFirstItemNumber()
{
return $this->_limit_start;
}
function getNextLink()
{
return ( ($this->_this_page * $this->_items_count_on_one_page) < $this->_number_of_records ) ? $this->__generateLink($this->_this_page + 1) : “#”;
}
function getPrevLink()
{
return ($this->_this_page > 1) ? $this->__generateLink($this->_this_page - 1)
}
function getFirstLink()
{
return ($this->_this_page > 1) ? $this->__generateLink(1) : “#”;
}
function getLastLink()
{
$l_p = ceil($this->_number_of_records / $this->_items_count_on_one_page);
return ($this->_this_page != $l_p) ? $this->__generateLink($l_p) : “#”;
}
function isError()
{
return $this->_is_error;
}
function generateLinks()
{
$max_pages_count = ceil($this->_number_of_records / $this->_items_count_on_one_page);
while ( ($this->_max_links_count_on_one_page > 0) && ($this->_number_of_records <= (($this->_max_links_count_on_one_page - 1) * $this->_items_count_on_one_page)) )
{
$this->_max_links_count_on_one_page--;
}
$start = $this->_this_page - ($this->_max_links_count_on_one_page >> 1);
if ($start < 1)
{
$start = 1;
}
$end = $start + $this->_max_links_count_on_one_page - 1;
while ($end > $max_pages_count)
{
$end--; $start--;
}
for ($j = 0, $i = $start; $i <= $end; $j++, $i++)
{
$this->_links[$j][`page'] = $i;
$this->_links[$j][`link'] = ($i == $this->_this_page) ? “#” : $this->__generateLink($i);
}
return $this->_links;
}
function __generateLink($p = 1)
{
if (preg_match(`/\/\d+\/{0,1}$/', $this->_uri))
{
$link = preg_replace(`/\/\d+\/{0,1}$/', `/'.$p, $this->_uri);
}
else if (preg_match(`/\/$/', $this->_uri))
{
$link = $this->_uri.$this->_get_var.'/'.$p;
}
else
{
$link = $this->_uri.'/'.$this->_get_var.'/'.$p;
}
return $link;
}
}
function process_errors($errors, $alert = false)
{
global $js;
$form_errors = `';
foreach ($errors as $error_id => $error)
{
if ($error != `')
{
$form_errors .= $error;
$form_errors .= ($alert) ? `\n' : `<br>';
}
$js .= “try { document.getElementById(`{$error_id}').style.borderColor='#BCF202'; } catch (e) { }”;
}
foreach ($_POST as $post_indx => $post_value)
{
if (trops($post_indx, `pass') !== false) continue;
$post_value = stripslashes($post_value);
if (is_array($_POST[$post_indx]))
{
foreach ($_POST[$post_indx] as $post_value)
{
$post_indx_arr = $post_indx . “[]”;
$js .= “set_formel_val(`{$post_indx_arr}', `{$post_value}');”;
}
}
else
{
$js .= “set_formel_val(`{$post_indx}', `{$post_value}');”;
}
}
if ($alert)
{
$js .= “window.alert(`{$form_errors}');”;
}
else
{
$js .= “document.getElementById(`form_errors').innerHTML = `{$form_errors}';”;
$js .= “document.getElementById(`form_errors').style.display = `';”;
}
}
function check_latin($l_text)
{
return !preg_match(`/[^a-z0-9\.\-\_\@]/I', $l_text);
}
?>
ÏÐÈËÎÆÅÍÈÅ Â
Ìîäóëü «bc_etc.php»
<?php
/*
# CSS ôàéë Ïàíåëè Óïðàâëåíèÿ
*/
if ((isset($_GET[`css'])) && ($_GET[`css'] == `1'))
{
header(`Content-type: text/css');
?>
html, body { height: 100%; }
img { border: none; }
body, div, p, input, textarea, form, select, h1, h2, h3, h4, h5, h6
{
margin: 0;
padding: 0;
font-size: 12px;
font-weight: normal;
font-family: Verdana, sans-serif;
}
body
{
background-color: #333;
color: #CCE1CA;
min-width: 770px;
line-height: 1.3;
}
input, textarea, select
{
border: 1px solid #1A1919;
background-color: #3A3A3A;
color: #EBF6EA;
padding: 2px;
margin: 1px;
}
a
{
color: #FF3100;
text-decoration: none;
}
a:hover
{
color: #FF3100;
text-decoration: underline;
}
#bc_xx1
{
min-height: 100%;
position: relative;
background: url(`bc_etc.php?img=bc_left.gif') 0 0 repeat-y;
}
#bc_xx2
{
overflow: hidden;
padding-bottom: 49px;
}
#bc_logo
{
height: 70px;
width: 232px;
display: block;
position: absolute;
top: 0;
left: 0;
}
#bc_top_menu
{
position: absolute;
top: 0;
right: 15px;
}
#bc_top_menu a
{
height: 20px;
line-height: 18px;
display: block;
background-color: #474747;
border: 1px solid #242323;
border-top: none;
padding: 0 13px;
margin: 0 1px;
float: left;
font-size: 10px;
color: #CCE1CA;
text-decoration: none;
}
#bc_top_menu a:hover
{
height: 21px;
line-height: 20px;
color: #CCE1CA;
text-decoration: none;
}
#bc_footer
{
width: 229px;
background-color: #1F1E1E;
border-top: 1px solid #3A393A;
position: absolute;
bottom: 0;
left: 0;
}
#bc_footer .bc_p
{
padding: 10px;
font-size: 10px;
}
#bc_xbody
{
overflow: hidden;
margin-top: 70px;
}
#bc_xbody #bc_left-side
{
float: left;
width: 230px;
padding-top: 10px;
}
#bc_xbody #bc_right-side
{
margin-left: 230px;
}
#bc_left-side .bc_xblock
{
margin-bottom: 10px;
overflow: hidden;
}
#bc_left-side .bc_xblock h1
{
height: 26px;
line-height: 26px;
background-color: #424142;
border-left: 5px solid #BCF202;
border-right: 1px solid #4E4D4E;
padding-left: 15px;
font-weight: bold;
}
#bc_left-side .bc_xblock .bc_p
{
padding: 10px;
background-color: #333;
border-right: 1px solid #403F40;
}
#bc_left-side .bc_xblock #bc_menu ul
{
list-style-type: none;
margin: 0;
padding: 0;
}
#bc_left-side .bc_xblock #bc_menu ul li
{
margin: 0;
padding: 0 13px;
background: url(`bc_etc.php?img=bc_li.gif') 0 50% no-repeat;
line-height: 18px;
}
#bc_left-side .bc_xblock #bc_menu ul .li2
{
margin-left: 13px;
}
#bc_left-side .bc_xblock #bc_menu a
{
text-decoration: none;
color: #CCE1CA;
}
#bc_left-side .bc_xblock #bc_menu a:hover
{
text-decoration: none;
color: #FFF;
}
#bc_right-side .bc_xblock
{
margin-bottom: 10px;
overflow: hidden;
border: 1px solid #1F1E1E;
border-right: none;
background-color: #303030;
margin-left: 15px;
}
#bc_right-side .bc_xblock h1
{
font-size: 14px;
font-weight: bold;
padding: 5px 10px 0 10px;
}
#bc_right-side .bc_xblock .bc_p
{
padding: 15px;
}
mark
{
color: #B3E605;
}
list
{
padding: 3px 1px;
}
edit_del
{
padding-left: 15px;
margin-left: 10px;
background: url(`bc_etc.php?img=bc_li.gif') 0 50% no-repeat;
}
i_text
{
width: 300px;
}
i_textarea
{
width: 99%;
height: 300px;
}
form_tab
{
width: 100%;
border-collapse: collapse;
}
form_tab td
{
padding: 1px;
}
listing
{
list-style-type: none;
margin: 5px;
text-align: center;
}
listing li
{
background: none;
padding: 0;
display: inline;
}
listing a
{
color: #CCE1CA;
text-decoration: none;
background-color: #303030;
border: 1px solid #1F1E1E;
padding: 2px 5px;
margin: 0 1px;
}
listing a:hover
{
color: #E0F0DE;
text-decoration: none;
background-color: #1C1C1C;
border: 1px solid #100F0F;
}
listing .active
{
color: #EAF8E9;
text-decoration: none;
background-color: #121212;
border: 1px solid #080707;
padding: 2px 5px;
margin: 0 1px;
}
#bc_right-side .help_block
{
border: 1px solid #232222;
background: #F6F6F6;
color: #333333;
padding: 15px;
margin-bottom: 15px;
position: relative;
}
#bc_right-side .help_block .mark
{
color: #333;
font-weight: bold;
}
#bc_right-side .help_block ul
{
list-style-type: none;
margin: 0;
padding: 0;
}
#bc_right-side .help_block ul li
{
margin: 0;
padding: 2px 13px;
background: url(`bc_etc.php?img=bc_li2.gif') 0 8px no-repeat;
line-height: 18px;
}
#bc_right-side .help_block .open_close
{
height: 12px;
line-height: 10px;
background-color: #474747;
border: 1px solid #242323;
border-top: none;
padding: 0 13px;
display: block;
float: left;
font-size: 10px;
color: #CCE1CA;
position: absolute;
top: 0;
right: 20px;
cursor: pointer;
}
#bc_right-side .help_block .open_close:hover
{
height: 13px;
line-height: 11px;
}
span.aeditor_toolbox
{
position: relative;
}
span.aeditor_toolbox input
{
width: 22px;
height: 22px;
border: none;
color: #CCE1CA;
padding: 0;
margin: 1px;
}
span.aeditor_toolbox select
{
border: none;
background-color: #454545;
color: #CCE1CA;
padding: 0;
margin: 1px;
}
span.aeditor_toolbox input:hover
{
border: 1px solid #232222;
}
span.aeditor_textarea
{
position: relative;
}
#live_preview
{
border-top: 1px solid #BCF202;
margin-top: 15px;
padding: 15px;
position: relative;
}
#live_preview .live_preview_title
{
height: 14px;
line-height: 14px;
background-color: #BCF202;
color: #303030;
position: absolute;
top: -19px;
right: 0;
text-transform: uppercase;
font-size: 10px;
padding: 2px 5px;
}
#form_errors
{
font-weight: bold;
color: #BCF202;
margin-bottom: 15px;
}
* html #bc_xx1 { height: 100%; }
* html #bc_right-side .bc_xblock { zoom: 1; }
* html #bc_right-side .help_block .open_close { top: 1px; }
* html #live_preview .live_preview_title { top: -18px; right: 14px; }
<?php
exit;
}
/*
# arnix HTML Editor
*/
if ((isset($_GET[`aeditor_js'])) && ($_GET[`aeditor_js'] == `1'))
{
header(`Content-type: text/javascript');
?>
/*
Coded by arnix [arnix.at@gmail.com]
Copyright I Ruster [ruster@bk.ru]
*/
var _AUTO_BR = `auto_br_id';
var _TYPE_BUTTON = 0x01;
var _TYPE_SELECT = 0x02;
var _TYPE_NOP = 0x80;
var aeditor_toolbox_button_types = [
_TYPE_BUTTON,
_TYPE_BUTTON,
_TYPE_BUTTON,
_TYPE_BUTTON,
_TYPE_BUTTON,
_TYPE_BUTTON,
_TYPE_BUTTON,
_TYPE_BUTTON,
_TYPE_BUTTON,
_TYPE_BUTTON,
_TYPE_BUTTON,
_TYPE_BUTTON,
_TYPE_SELECT,
_TYPE_SELECT,
_TYPE_BUTTON,
_TYPE_BUTTON,
_TYPE_BUTTON,
_TYPE_NOP
]
var aeditor_toolbox_buttons = [
`<input type=”button” value=”” style=”background: url(\'bc_etc.php?img=ar_b.gif\') 50% 50% no-repeat;” title=”Æèðíûé”>',
`<input type=”button” value=”” style=”background: url(\'bc_etc.php?img=ar_i.gif\') 50% 50% no-repeat;” title=”Íàêëîííûé”>',
`<input type=”button” value=”” style=”background: url(\'bc_etc.php?img=ar_ins.gif\') 50% 50% no-repeat;” title=”Ïîä÷åðêíóòûé”>',
`<input type=”button” value=”” style=”background: url(\'bc_etc.php?img=ar_del.gif\') 50% 50% no-repeat;” title=”Çà÷åðêíóòûé”>',
`<input type=”button” value=”” style=”background: url(\'bc_etc.php?img=ar_sup.gif\') 50% 50% no-repeat;” title=”Íàäñòðî÷íûé”>',
`<input type=”button” value=”” style=”background: url(\'bc_etc.php?img=ar_sub.gif\') 50% 50% no-repeat;” title=”Ïîäñòðî÷íûé”>',
`<input type=”button” value=”” style=”background: url(\'bc_etc.php?img=ar_nbsp.gif\') 50% 50% no-repeat;” title=”Ïðîáåë”>',
`<input type=”button” value=”” style=”background: url(\'bc_etc.php?img=ar_blockquote.gif\') 50% 50% no-repeat;” title=”Öèòàòà”>',
`<input type=”button” value=”” style=”background: url(\'bc_etc.php?img=ar_left.gif\') 50% 50% no-repeat;” title=”Ïî ëåâîìó êðàþ”>',
`<input type=”button” value=”” style=”background: url(\'bc_etc.php?img=ar_center.gif\') 50% 50% no-repeat;” title=”Ïî öåíòðó”>',
`<input type=”button” value=”” style=”background: url(\'bc_etc.php?img=ar_right.gif\') 50% 50% no-repeat;” title=”Ïî ïðàâîìó êðàþ”>',
`<input type=”button” value=”” style=”background: url(\'bc_etc.php?img=ar_justify.gif\') 50% 50% no-repeat;” title=”Ïî øèðèíå”>',
`<select onchange=”select_changed(this, \'{TID}\', {N}, {I});”><option value=””>Öâåò òåêñòà</option><option style=”background-color: darkred; color: white;” value=”darkred”>Ò¸ìíî-êðàñíûé</option><option style=”background-color: red; color: white;” value=”red”>Êðàñíûé</option><option style=”background-color: orange; color: white;” value=”orange”>Îðàíæåâûé</option><option style=”background-color: brown; color: white;” value=”brown”>Êîðè÷íåâûé</option><option style=”background-color: yellow; color: black;” value=”yellow”>Ƹëòûé</option><option style=”background-color: green; color: white;” value=”green”>Çåë¸íûé</option><option style=”background-color: olive; color: white;” value=”olive”>Îëèâêîâûé</option><option style=”background-color: cyan; color: black;” value=”cyan”>Ãîëóáîé</option><option style=”background-color: blue; color: white;” value=”blue”>Ñèíèé</option><option style=”background-color: darkblue; color: white;” value=”darkblue”>Ò¸ìíî-ñèíèé</option><option style=”background-color: indigo; color: white;” value=”indigo”>Èíäèãî</option><option style=”background-color: violet; color: black;” value=”violet”>Ôèîëåòîâûé</option><option style=”background-color: white; color: black;” value=”white”>Áåëûé</option><option style=”background-color: black; color: white;” value=”black”>׸ðíûé</option></select>',
`<select onchange=”select_changed(this, \'{TID}\', {N}, {I});”><option value=””>Ðàçìåð</option><option value=”10”>10px</option><option value=”12”>12px</option><option value=”14”>14px</option><option value=”16”>16px</option><option value=”20”>20px</option><option value=”24”>24px</option><option value=”30”>30px</option><option value=”36”>36px</option><option value=”48”>48px</option></select>',
`<input type=”button” value=”” style=”background: url(\'bc_etc.php?img=ar_url.gif\') 50% 50% no-repeat;” title=”Âñòàâèòü ññûëêó”>',
`<input type=”button” value=”” style=”background: url(\'bc_etc.php?img=ar_email.gif\') 50% 50% no-repeat;” title=”Âñòàâèòü ýë. Ïî÷òó”>',
`<input type=”button” value=”” style=”background: url(\'bc_etc.php?img=ar_img.gif\') 50% 50% no-repeat;” title=”Âñòàâèòü êàðòèíêó”>',
`<input type=”button” value=”” onclick=”close_all_tags(\'{TID}\', {N});” style=”background: url(\'bc_etc.php?img=ar_close.gif\') 50% 50% no-repeat;” title=”Çàêðûòü âñå òåãè”>'
]
var aeditor_toolbox_not_selected_mode = [
[`<b>', `</b>'],
[`<i>', `</i>'],
[`<ins>', `</ins>'],
[`<del>', `</del>'],
[`<sup>', `</sup>'],
[`<sub>', `</sub>'],
[` ', `'],
[`<blockquote>', `</blockquote>'],
[`<div style=”text-align: left !important;”>', `</div>'],
[`<div style=”text-align: center !important;”>', `</div>'],
[`<div style=”text-align: right !important;”>', `</div>'],
[`<div style=”text-align: justify !important;”>', `</div>'],
[],
[],
[`<a href=”{INPUT_1}”>{INPUT_2}</a>', `', `Àäðåñ ññûëêè', `http://', `Íàçâàíèå ññûëêè', `Ññûëêà'],
[`<a href=”mailto:{INPUT_1}”>{INPUT_1}</a>', `', `Àäðåñ ýë. Ïî÷òû', `',],
[`<img src=»{INPUT_1}» alt=»»>', `', `Ññûëêà íà êàðòèíêó', `http://'],
[]
]
var aeditor_toolbox_selected_mode = [
[`<b>{SELECTED_TEXT}</b>'],
[`<i>{SELECTED_TEXT}</i>'],
[`<ins>{SELECTED_TEXT}</ins>'],
[`<del>{SELECTED_TEXT}</del>'],
[`<sup>{SELECTED_TEXT}</sup>'],
[`<sub>{SELECTED_TEXT}</sub>'],
[`{SELECTED_TEXT}'],
[`<blockquote>{SELECTED_TEXT}</blockquote>'],
[`<div style=”text-align: left !important;”>{SELECTED_TEXT}</div>'],
[`<div style=”text-align: center !important;”>{SELECTED_TEXT}</div>'],
[`<div style=”text-align: right !important;”>{SELECTED_TEXT}</div>'],
[`<div style=”text-align: justify !important;”>{SELECTED_TEXT}</div>'],
[`<span style=”color: {VALUE} !important;”>{SELECTED_TEXT}</span>'],
[`<span style=”font-size: {VALUE}px !important;”>{SELECTED_TEXT}</span>'],
[`<a href=”{SELECTED_TEXT}”>{SELECTED_TEXT}</a>'],
[`<a href=”mailto:{SELECTED_TEXT}”>{SELECTED_TEXT}</a>'],
[`<img src=”{SELECTED_TEXT}” alt=””>'],
[]
]
var open_tag_n = 1;
var tags = [];
var results = [];
var ta_ids = [];
var aed_count = 0;
var inside_select_changing = [];
function register_textarea(textarea_id, div_id, result_id)
{
var container = document.getElementById(div_id);
var toolbox_container = document.createElement(“span”);
var textarea_container = document.createElement(“span”);
var textarea_ob = document.getElementById(textarea_id);
results[aed_count] = result_id;
toolbox_container.className = `aeditor_toolbox';
textarea_container.className = `aeditor_textarea';
tags[aed_count] = [];
for (var I = 0; I < aeditor_toolbox_buttons.length; i++)
{
var temp_span = document.createElement(“span”);
temp_span.id = `tb_but_sp__' + aed_count + `__' + I;
if (aeditor_toolbox_button_types[i] == _TYPE_BUTTON)
{
temp_span.onclick = function()
{
eval(`aeditor_tb_button_clicked(this, “' + textarea_id + `”);');
};
}
var btn_html = aeditor_toolbox_buttons[i];
btn_html = btn_html.replace(/\{N\}/, `' + aed_count);
btn_html = btn_html.replace(/\{TID\}/, textarea_id);
btn_html = btn_html.replace(/\{I\}/, i);
temp_span.innerHTML = btn_html;
toolbox_container.appendChild(temp_span);
tags[aed_count][i] = 0;
}
var temp_c = aed_count;
textarea_ob.onchange = function()
{
eval(`ta_changed(“' + textarea_id + `”, ` + temp_c + `);');
};
textarea_ob.onchange();
textarea_ob.onkeyup = textarea_ob.onchange;
textarea_container.appendChild(textarea_ob);
container.appendChild(toolbox_container);
container.appendChild(document.createElement(“br”));
container.appendChild(textarea_container);
ta_ids.push(textarea_id);
aed_count++;
}
function select_changed(l_ob, l_textarea_id, l_n, l_i)
{
if (!inside_select_changing[l_ob])
{
inside_select_changing[l_ob] = false;
}
if (inside_select_changing[l_ob] == false)
{
inside_select_changing[l_ob] = true;
if (l_ob.selectedIndex > 0)
{
aeditor_tb_button_clicked(document.getElementById(`tb_but_sp__' + l_n + `__' + l_i), l_textarea_id, l_ob.value);
l_ob.selectedIndex = 0;
}
inside_select_changing[l_ob] = false;
}
}
function close_all_tags(l_textarea_id, l_n)
{
var l_needs;
var l_needs_val;
for (;;)
{
l_needs = -1;
l_needs_val = -1;
for (var I = 0; I < tags[l_n].length; i++)
{
if (tags[l_n][i] > 0)
{
if (tags[l_n][i] > l_needs_val)
{
l_needs = I;
l_needs_val = tags[l_n][i];
}
}
}
if (l_needs > -1)
{
document.getElementById(`tb_but_sp__' + l_n + `__' + l_needs).onclick();
}
else
{
break;
}
}
document.getElementById(l_textarea_id).focus();
}
function ta_changed(l_textarea_id, l_n)
{
document.getElementById(results[l_n]).innerHTML = ((document.getElementById(_AUTO_BR)) && (document.getElementById(_AUTO_BR).checked)) ? document.getElementById(l_textarea_id).value.replace(/\r\n/g, `<br>').replace(/\n\r/g, `<br>').replace(/\n/g, `<br>').replace(/\r/g, `<br>') : document.getElementById(l_textarea_id).value;
//document.getElementById(results[l_n]).innerHTML = document.getElementById(l_textarea_id).value;
}
function aeditor_tb_button_clicked(l_self, l_textarea_id, l_select)
{
var l_btn_info = l_self.id.split(`__');
var l_tb_but_id = l_btn_info.pop();
var l_tb_ta_id = l_btn_info.pop();
var l_ta_ob = document.getElementById(l_textarea_id);
textare_process_selection(l_ta_ob);
if (l_ta_ob.sel_text == `')
{
if (l_select) return;
var indx = (tags[l_tb_ta_id][l_tb_but_id] > 0) ? 1 : 0;
var txt = aeditor_toolbox_not_selected_mode[l_tb_but_id][indx];
for (var I = 1; ; i++)
{
var r = new RegExp(`\{INPUT_' + I + `\}', `g');
if (r.test(txt))
{
var tzt = window.prompt(aeditor_toolbox_not_selected_mode[l_tb_but_id][2 * i], aeditor_toolbox_not_selected_mode[l_tb_but_id][(2 * i) + 1]);
if (tzt)
{
txt = txt.replace(r, tzt)
}
else
{
return
}
}
else
{
break;
}
}
insert_code(l_textarea_id, txt);
if (aeditor_toolbox_not_selected_mode[l_tb_but_id][1] != `')
{
tags[l_tb_ta_id][l_tb_but_id] = (tags[l_tb_ta_id][l_tb_but_id] > 0) ? 0 : ++open_tag_n;
}
}
else
{
var txt = aeditor_toolbox_selected_mode[l_tb_but_id][0];
for (var I = 1; ; i++)
{
var r = new RegExp(`\{INPUT_' + I + `\}', `g');
if (r.test(txt))
{
var tzt = window.prompt(aeditor_toolbox_selected_mode[l_tb_but_id][(2 * i) - 1], aeditor_toolbox_selected_mode[l_tb_but_id][2 * i]);
if (tzt)
{
txt = txt.replace(r, tzt)
}
else
{
return
}
}
else
{
break;
}
}
var r = new RegExp(`\{SELECTED_TEXT\}', `g');
if (r.test(txt))
{
txt = txt.replace(r, l_ta_ob.sel_text);
}
var r = new RegExp(`\{VALUE\}');
if (l_select)
{
txt = txt.replace(r, l_select);
}
insert_code(l_textarea_id, txt);
}
l_ta_ob.onkeyup();
}
function prepare_ta(l_textarea_id)
{
var l_ta_ob = document.getElementById(l_textarea_id);
l_ta_ob.focus();
if (!document.selection)
{
return false;
}
var l_selecton = document.selection;
var l_range = l_selecton.createRange();
if ((l_range != null) && (((l_selecton.type == “Text”) || (l_selecton.type == “None”))))
{
text = l_range.text;
}
if (l_range != null && l_ta_ob.createTextRange)
{
l_ta_ob.caretPos = l_range.duplicate();
}
}
function insert_code(l_textarea_id, l_code)
{
prepare_ta(l_textarea_id);
var l_ta_ob = document.getElementById(l_textarea_id);
if ((typeof(l_ta_ob.createTextRange) != “undefined”) && (l_ta_ob.caretPos))
{
var caret_pos = l_ta_ob.caretPos;
caret_pos.text = caret_pos.text.charAt(caret_pos.text.length - 1) == ` ` ? l_code + ` ` : l_code;
caret_pos.select();
}
else if (l_ta_ob.selectionStart || l_ta_ob.selectionStart == `0')
{
var start_selection = l_ta_ob.selectionStart;
var end_selection = l_ta_ob.selectionEnd;
var start = (l_ta_ob.value).substring(0, start_selection);
var middle = l_code;
var end = (l_ta_ob.value).substring(end_selection, l_ta_ob.textLength);
l_ta_ob.value = start + middle + end;
l_ta_ob.focus();
l_ta_ob.selectionStart = end_selection + middle.length;
l_ta_ob.selectionEnd = start_selection + middle.length;
return;
}
else
{
l_ta_ob.value += l_code;
}
l_ta_ob.focus();
}
function textare_process_selection(textarea)
{
textarea.sel_text = `';
if (typeof(textarea.selectionStart) == `number')
{
textarea.sel_start = textarea.selectionStart;
textarea.sel_end = textarea.selectionEnd;
textarea.sel_text = textarea.value.substring(textarea.sel_start, textarea.sel_end);
textarea.sel_text_pre = textarea.value.substring(0, textarea.sel_start);
textarea.sel_text_post = textarea.value.substring(textarea.sel_end, textarea.value.length);
}
else if (document.selection)
{
var range = document.selection.createRange();
if (range.parentElement().id == textarea.id)
{
var range_all = document.body.createTextRange();
range_all.moveToElementText(textarea);
for (var sel_start = 0; range_all.compareEndPoints(`StartToStart', range) < 0; sel_start++)
{
range_all.moveStart(`character', 1);
}
for (var I = 0; I <= sel_start; I ++)
{
if (textarea.value.charAt(i) == `\n')
{
sel_start++;
}
}
textarea.sel_start = sel_start;
var range_all = document.body.createTextRange();
range_all.moveToElementText(textarea);
for (var sel_end = 0; range_all.compareEndPoints(`StartToEnd', range) < 0; sel_end++)
{
range_all.moveStart(`character', 1);
}
for (var I = 0; I <= sel_end; i++)
{
if (textarea.value.charAt(i) == `\n')
{
sel_end++;
}
}
textarea.sel_end = sel_end;
textarea.sel_text = range.text;
textarea.sel_text_pre = textarea.value.substring(0, textarea.sel_start);
textarea.sel_text_post = textarea.value.substring(textarea.sel_end, textarea.value.length);
}
}
}
function show_html(l_ob_ids)
{
var l_abr = ((document.getElementById(_AUTO_BR)) && (document.getElementById(_AUTO_BR).checked))
l_ob_ids = l_ob_ids.replace(/ /g, `').split(`,');;
var l_win = window.open(`', `l_win', `width=800,height=500');
l_win.document.open(`text/html', `replace');
l_win.document.write(`<html><head><title>Preview</title></head><body>');
for (var I = 0; I < l_ob_ids.length; i++)
{
var l_ob = document.getElementById(l_ob_ids[i]);
if (l_ob)
{
with (l_win.document)
{
var l_code = (l_abr) ? l_ob.value.replace(/\r\n/g, `<br>').replace(/\n\r/g, `<br>').replace(/\n/g, `<br>').replace(/\r/g, `<br>') : l_ob.value;
l_win.document.write(l_code + `<br><br>');
}
}
}
l_win.document.write(`</body></html>');
l_win.document.close();
}
function aeditor_refresh()
{
for (var I = 0; I < ta_ids.length; i++)
{
document.getElementById(ta_ids[i]).onchange();
}
}
function show_hide(l_ob_id)
{
var l_ob = document.getElementById(l_ob_id);
l_ob.style.display = (l_ob.style.display == `none') ? '' : 'none';
}
<?php
exit;
}
/*
# JS äëÿ Ïàíåëè Óïðàâëåíèÿ
*/
if ((isset($_GET[`admin_js'])) && ($_GET[`admin_js'] == `1'))
{
header(`Content-type: text/javascript');
?>
function confirm_and_go(l_url)
{
if (window.confirm(“Âû óâåðåíû?”))
{
document.location = l_url;
}
}
function ShowOrHide(d1, d2)
{
if (d1 != `') DoDiv(d1);
if (d2 != `') DoDiv(d2);
}
function DoDiv(id)
{
var item = null;
if (document.getElementById)
{
item = document.getElementById(id);
}
else if (document.all)
{
item = document.all[id];
}
else if (document.layers)
{
item = document.layers[id];
}
if (!item)
{
}
else if (item.style)
{
if (item.style.display == “none”)
{
item.style.display = “”;
}
else
{
item.style.display = “none”;
}
}
else
{
item.visibility = “show”;
}
}
function set_formel_val(l_post_indx, l_post_value)
{
try
{
if ((document.getElementById(l_post_indx).type == `text') || (document.getElementById(l_post_indx).type == `textarea'))
{
document.getElementById(l_post_indx).value = l_post_value;
}
else if (document.getElementById(l_post_indx).type == `select-one')
{
for (var I = 0; I < document.getElementById(l_post_indx).length; i++)
{
if (document.getElementById(l_post_indx).options[i].value == l_post_value)
{
document.getElementById(l_post_indx).selectedIndex = I;
break;
}
}
}
}
catch (e)
{
}
var els = document.getElementsByName(l_post_indx);
if (els.length > 0)
{
if (els[0].type == `radio')
{
for (var I = 0; I < els.length; i++)
{
if (els[i].value == l_post_value)
{
els[i].checked = true;
if (els[i].onclick)
{
els[i].onclick();
}
}
}
}
else if (els[0].type == `checkbox')
{
for (var I = 0; I < els.length; i++)
{
if (els[i].value == l_post_value)
{
els[i].checked = true;
if (els[i].onclick)
{
els[i].onclick();
}
}
}
}
}
}
<?php
exit;
}
/*
# Êàðòèíêè
*/
if ((isset($_GET[`img'])) && (!empty($_GET[`img'])))
{
$images = array();
# Êíîïêè äëÿ arnix HTML Editor
$images[`ar_b.gif']='R0lGODlhCQAJAIABAPb29v///yH5BAEAAAEALAAAAAAJAAkAAAIQhG8Rp8ybnkMJghbrvJayAgA7';
$images[`ar_blockquote.gif']='R0lGODlhDgAKAIABAPb29v///yH5BAEAAAEALAAAAAAOAAoAAAIVRGKnm7lsgHsoToqz3kdW7XlgtzUFADs=';
$images[`ar_center.gif']='R0lGODlhDgALAIABAPb29v///yH5BAEAAAEALAAAAAAOAAsAAAIUhI8Yy+2R0pssWkDpNXlu2TnfUgAAOw==';
$images[`ar_close.gif']='R0lGODlhCgAKAIABALzyAv///yH5BAEAAAEALAAAAAAKAAoAAAIUBIJpm8HsjFqy0YaupSfXV3nQVgAAOw==';
$images[`ar_del.gif']='R0lGODlhCwALAIABAPb29v///yH5BAEAAAEALAAAAAALAAsAAAIXjIEQasveYHvu0Rpr2jdli0RUOIGi1hQAOw==';
$images[`ar_email.gif']='R0lGODlhDgAJAIABAPb29v///yH5BAEAAAEALAAAAAAOAAkAAAIWhI8Zy73mGoTxgUCVvHXb41Ddl5RAAQA7';
$images[`ar_i.gif']='R0lGODlhCQAJAIABAPb29v///yH5BAEAAAEALAAAAAAJAAkAAAIQjAOZZ8sNHorSMXtpfkqdAgA7';
$images[`ar_img.gif']='R0lGODlhDgAFAIABAPb29v///yH5BAEAAAEALAAAAAAOAAUAAAIQhAOhaZfImFpURkTrari2AgA7';
$images[`ar_ins.gif']='R0lGODlhCQALAIABAPb29v///yH5BAEAAAEALAAAAAAJAAsAAAIUhBGHFs2JXHxQtooxfercfoVhpxQAOw==';
$images[`ar_justify.gif']='R0lGODlhDgALAIABAPb29v///yH5BAEAAAEALAAAAAAOAAsAAAIThI8Yy90Jj5ssRkotxFMn7nhIAQA7';
$images[`ar_left.gif']='R0lGODlhDgALAIABAPb29v///yH5BAEAAAEALAAAAAAOAAsAAAIThI8Yy92ZnJywgkntxVxH/mhNAQA7';
$images[`ar_nbsp.gif']='R0lGODlhDgADAIABAPb29v///yH5BAEAAAEALAAAAAAOAAMAAAIJRI55YOoMowQFADs=';
$images[`ar_right.gif']='R0lGODlhDgALAIABAPb29v///yH5BAEAAAEALAAAAAAOAAsAAAIUhI8Yy+2c0pshWkBzvVhDrngPWAAAOw==';
$images[`ar_sub.gif']='R0lGODlhCgAJAIABAPb29v///yH5BAEAAAEALAAAAAAKAAkAAAISBBKGa7p8HmoRzuMk05MnnxgFADs=';
$images[`ar_sup.gif']='R0lGODlhCgAKAIABAPb29v///yH5BAEAAAEALAAAAAAKAAoAAAITjB8AyNm2XpRKwXlt06ziFHFBAQA7';
$images[`ar_url.gif']='R0lGODlhDgAFAIABAPb29v///yH5BAEAAAEALAAAAAAOAAUAAAIQRGKgZ+ydDnoqumkbqhPXAgA7';
# Ãðàôèêè äëÿ ìåíþ àäìèíèñòðàòîðà íà ñàéòå
$images['bc_admin_menu1.png']='iVBORw0KGgoAAAANSUhEUgAAAAoAAAAZCAYAAAAIcL+IAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAKtJREFUeNrMk90KwjAMhU/WMvzBG8EL36ApvEf0vl6LniaSQuimG8OLBQ6h7ZfTtLQEgERRdBSdRdeU0oAmIiaCmbEa7Law/r/1JFhK2bxjzvm14cPwEkc2lTlHhfS0z1+vp0Kqh4B3hb2CvXCyIh1HijpJTt6xgnAFJA43a+si2qOBgi3uRAf7Q5r7zy6NW2dw76QGgVwbHq791gxqbmHUb52jL39pNP8WYAAw406j45HeCgAAAABJRU5ErkJggg==';
$images['bc_admin_menu2.png']='iVBORw0KGgoAAAANSUhEUgAAAAEAAAAZCAYAAADwkER/AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADpJREFUeNpi0NDQOM/0//9/BgjBAARI3H///mGw3r9//xerBIKFSjADzbwKIlhBxH8Q8RdkDyNAgAEA7eI62R+gUgkAAAAASUVORK5CYII=';
$images['bc_admin_menu3.png']='iVBORw0KGgoAAAANSUhEUgAAAAoAAAAZCAYAAAAIcL+IAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAKpJREFUeNrUk00KAjEMRlupW8/RK3gnD+cdBLduewN31oV/lDbxq6QSh4F24UIDj8wwj6+ZDGO99wczqRDCBu0ItuAKsmNmM1LD4sIM1vePdkT084kxxvLHL8MjiSQi9xIzKD3xDJKIb3lO3IG7yDQnRrDH/Rb9olJfggVrmSlJUpVu4KFndfITtXmSIsvRpiWu5LrIg9Y/VlTFpVowT/bHOtH2vkqtpwADALKSdnkf2uTlAAAAAElFTkSuQmCC';
# Ãðàôèêè Ïàíåëè Óïðàâëåíèè
$images['bc_left.gif']='R0lGODlh5gABAIAAADo5OiwrLCH5BAAAAAAALAAAAADmAAEAAAINjI+py+0Po5y02osvKAA7';
$images['bc_li.gif']='R0lGODlhBwAHAIABAMzhyv///yH5BAEAAAEALAAAAAAHAAcAAAIKjGGpmxjumDypAAA7';
$images['bc_li2.gif']='R0lGODlhBwAHAIABADMzM////yH5BAEAAAEALAAAAAAHAAcAAAIKjGGpmxjumDypAAA7';
$images['bc_logo.png']='iVBORw0KGgoAAAANSUhEUgAAAOgAAABGCAMAAADxYSjUAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAwBQTFRFQkBBiawMpdIJgqITNzY3Oj4omsMNKykqPj0+ODY3JzEBhaUSTGICLTUOREorZH0NtekEsOIFhqYWRE0lWHEBdpITOTg5AAAAue4DZXoacYkZlLsQQT9AaX8ce5sLbYUZsuQFOjg5KscohqgSnskJOj0xcZEBu/ACeZYVboYXocwLJiQmXGkqfZoUGSAAqdgIr+ICPkQlkLURmsUFS1kZmcAPMTIrgaAXIycXP0Mwrd4GRUk1NTsbYHUVlsICYHMdQUYuIiEiirEBgJ4Ti64QjrYGZIEBFRQUHh0dptQEY3QkkrcPk7oKl74PKioqqNcHNTcpWmofSVQkMkEBjrISEhERuOwES1MrCwoLUVwnJCMkWGYmfp0VghkZjbAQaoISh6kVe5cXSFoKXW4eNzophKMVaoEaX3EepNMDfqIClbwMNjcyLi4rPEoLPEEnUmAhjrMPdY0ep9UIISgIGB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ShKM+wQjKYm7snjx0HXr1v2BjDt37uAv8PpixfclTVk18jwM+M+T7luMl9yZdvWlJe+8+9vUOXPmzJ8//5ln8Jw/Z+rU3959F65OhetwJRlu/wC4/w8//AP+M2/egAFXrlzBQRkwYN4PEY39/vVtbxwWuP8kKjC6+4x73DxmknA98u+4uL8Om3ShS5f/DqJ0d91oPrcIbvxIfOvxDSf3adG5c83CFecWLTpPxiLrv+FDYh2TP97c87sAAwCDQ4t1F/RizwAAAABJRU5ErkJggg==';
Ïîäîáíûå äîêóìåíòû
Âûáîð èíñòðóìåíòàëüíûõ è ïðîãðàììíûõ ñðåäñòâ äëÿ ñîçäàíèÿ ñàéòà. Ñòðóêòóðà ïðîãðàììíîãî ïðîäóêòà. Ñîçäàíèå ñàéòà ïðè ïîìîùè ïðîãðàììû WordPress. Òåñòèðîâàíèå ðàçðàáîòàííîé ïðîãðàììû. Ðàçðàáîòêà ñòðóêòóðû è äèçàéíà ñàéòà. Íàïîëíåíèå ñàéòà êîíòåíòîì.
êóðñîâàÿ ðàáîòà [1,0 M], äîáàâëåí 09.01.2014Ìåòîäû ñîçäàíèÿ ñàéòà; âûáîð è ñðàâíåíèå ïðîãðàììíûõ ïëàòôîðì. Ðàçðàáîòêà ñòðóêòóðû è äèçàéíà ñàéòà. Óñòàíîâêà Joomla!, íàñòðîéêà ðàñøèðåíèé è âûáîð õîñòèíãà. Àïïàðàòíî-ïðîãðàììíûå ñïîñîáû è ñðåäñòâà îáåñïå÷åíèÿ èíôîðìàöèîííîé áåçîïàñíîñòè âåá-ñàéòà.
äèïëîìíàÿ ðàáîòà [3,6 M], äîáàâëåí 08.04.2014Ñîçäàíèå àäìèíèñòðàòèâíîé ÷àñòè ñàéòà. Äèçàéí âåá-ñàéòà. Óñòàíîâêà øàáëîíà Joomla. Ñèñòåìà àäìèíèñòðèðîâàíèÿ. Îïðåäåëåíèå ïðèáûëè è ñâîáîäíîé îòïóñêíîé öåíû ïðîãðàììíîãî ñðåäñòâà. Îáîñíîâàíèå ýêîíîìè÷åñêîé öåëåñîîáðàçíîñòè ïðîâåäåíèÿ ìåðîïðèÿòèÿ.
äèïëîìíàÿ ðàáîòà [1,2 M], äîáàâëåí 02.09.2016Ïðîåêòèðîâàíèå web-ñàéòà. Ïîëüçîâàòåëüñêèå ïåðñîíàæè, äåòàëüíàÿ êîíöåïöèÿ ñàéòà. Ðàçðàáîòêà ñêåëåòíîé ñõåìû ñòðàíèö, èíôîðìàöèîííîé àðõèòåêòóðû. Ñîçäàíèå ïðîòîòèïà web-ñàéòà. Âûáîð ñðåäû ðàçðàáîòêè. CMS ñèñòåìû è èõ àíàëèç. Ñòàäèè ïðîåêòèðîâàíèÿ ñàéòà.
êóðñîâàÿ ðàáîòà [346,7 K], äîáàâëåí 18.09.2016Îáçîð ïðîãðàììíîãî îáåñïå÷åíèÿ ýëåêòðîííîãî ìàãàçèíà, èñïîëüçîâàíèå ÿçûêà ïðîãðàììèðîâàíèÿ VbScript. Ìîäåëüíàÿ è ôèçè÷åñêàÿ ñòðóêòóðà, ðàçðàáîòêà ðåãèñòðàöèîííîé ôîðìû Web-ñàéòà, ïîäêëþ÷åíèå åãî ê áàçå äàííûõ. Îñîáåííîñòè ñîçäàíèÿ ñòðàíèöû ïîëüçîâàòåëÿ.
êóðñîâàÿ ðàáîòà [2,2 M], äîáàâëåí 03.04.2013Ïðèìåíåíèå ñåðâåðíîé ïëàòôîðìû Denwer è ñ CMS Opencart ïðè ñîçäàíèè ñàéòà èíòåðíåò-ìàãàçèíà ýëåêòðîíèêè. Óñòàíîâêà è íàñòðîéêà Denwer è Opencart. Ðóñèôèêàöèÿ ñàéòà íà Opencart, ñîçäàíèå ñèñòåìû îòîáðàæåíèÿ öåí â ðóáëÿõ. Ðàçðàáîòêà ôóíêöèîíàëà ñàéòà.
ïðàêòè÷åñêàÿ ðàáîòà [985,3 K], äîáàâëåí 04.08.2015Ïîíÿòèå web-ñàéòà è èõ òèïû. Ïðîãðàììû äëÿ ñîçäàíèÿ web-ñàéòà. Îïèñàíèå ñòðóêòóðû ïðîåêòà. Àëãîðèòì ñîçäàíèÿ ñàéòà. Îïèñàíèå êîíñòðóêòîðà Jimdo. ßçûêè ïðîãðàììèðîâàíèÿ ñåðâåðíîãî âûïîëíåíèÿ. Ñîçäàíèå ïîëíîôóíêöèîíàëüíîãî âåá-ñàéòà äëÿ ÎÀÎ "ÊÓËÇ".
êóðñîâàÿ ðàáîòà [3,5 M], äîáàâëåí 05.06.2015Ïîíÿòèå ñàéòà êàê Èíòåðíåò-ðåñóðñà. Ñïåöèôè÷åñêèå îñîáåííîñòè ñàéòîâ ó÷åáíûõ çàâåäåíèé. Âèäèìîñòü ñàéòà â ïîèñêîâûõ âûäà÷àõ. Àíàëèç ñàéòà ó÷åáíîãî çàâåäåíèÿ íà ïðèìåðå ñàéòà Òèðàñïîëüñêîãî ìåæðåãèîíàëüíîãî óíèâåðñèòåòà. Ñîñòàâëÿþùèå (ðóáðèêè) ñàéòà.
êóðñîâàÿ ðàáîòà [403,8 K], äîáàâëåí 27.04.2013Ñîçäàíèå ñîâðåìåííîãî êîíêóðåíòîñïîñîáíîãî ñàéòà êîìïàíèè. Âûáîð áàçîâîé ñèñòåìû ïðîãðàììíîãî îáåñïå÷åíèÿ. Îïèñàíèå ðàáîòû ñàéòà è ïîëüçîâàòåëüñêîãî èíòåðôåéñà. Ðàñ÷åò ýêîíîìè÷åñêîé ýôôåêòèâíîñòè ïðîåêòà. Èçó÷åíèå ìåðîïðèÿòèé ïî áåçîïàñíîé ýêñïëóàòàöèè.
êóðñîâàÿ ðàáîòà [3,7 M], äîáàâëåí 20.05.2013Ðàçðàáîòêà ñàéòà â ïðèëîæåíèè FrontPage. Ïðîãðàììíûå ñðåäñòâà è òåõíîëîãèè, èñïîëüçóåìûå ïðè ðàçðàáîòêå ñàéòà. Îñíîâíàÿ ñòðóêòóðà ñàéòà è ðàçìåùåíèå èñõîäíûõ ôàéëîâ. Ñîçäàíèå ãðàôè÷åñêèõ ñòðàíèö, ýëåìåíòîâ è ðèñóíêîâ. Ðàçìåùåíèå ñàéòà â ñåòè Internet.
êóðñîâàÿ ðàáîòà [1,6 M], äîáàâëåí 13.06.2013