Диплом: Автоматизация подсистемы учета статистических данных и формирование отчетности по работе интернет магазина "Доктор-техно"

Внимание! Если размещение файла нарушает Ваши авторские права, то обязательно сообщите нам
106
106
ПРИЛОЖЕНИЕ 1
Пример использования токена в форме авторизации пользователя
<inputtype="hidden" name="form_build_id" id="form-
<?phpprintwordpress_get_token('user_login_block'); ?>" value="form-
<?phpprintwordpress_get_token('user_login_block'); ?>" />
107
107
ПРИЛОЖЕНИЕ 2
Проверка корректности введенных данных
functionuser_register_form_validate($form, &$form_state)
{
$template = iconv("UTF-8","windows-1251","/^[a-zA-Zа-яА-Я][a-zA-Zа-яА-
Я0-9_]*$/"); // проверка логина
$login = iconv("UTF-8","windows-1251",$form_state['values']['name']);
$template = iconv("UTF-8","windows-1251","/^([\w\.\-])+@([\w\.\-]+\\.)+[a-
z]{2,4}$/i"); // проверка e-mail
$mail = iconv("UTF-8","windows-1251",$form_state['values']['mail']);
if(!preg_match($template,$mail))
form_set_error('mail', t("Неверно введен
".$form['account']['mail']['#title']."."));
$template = iconv("UTF-8","windows-1251","/^[а-яА-Я]+$/"); // проверка
Ф.И.О.
$surname = iconv("UTF-8","windows-
1251",$form_state['values']['profile_surname']);
$name = iconv("UTF-8","windows-
1251",$form_state['values']['profile_name']);
$family = iconv("UTF-8","windows-
1251",$form_state['values']['profile_family']);
if(!preg_match($template,$surname))
form_set_error('profile_surname', t("Поле ".$form['Личные
данные']['profile_surname']['#title']." может содержать только буквы русского
алфавита."));
if(!preg_match($template,$name))
form_set_error('profile_name', t("Поле ".$form['Личные
данные']['profile_name']['#title']." может содержать только буквы русского
алфавита."));
if(!preg_match($template,$family))
form_set_error('profile_family', t("Поле ".$form['Личные
данные']['profile_family']['#title']." может содержать только буквы русского
108
108
алфавита."));
if($form_state['values']['profile_city'] == 0)
form_set_error('profile_city', t("Не выбран
".$form['Адрес']['profile_city']['#title']."."));
$template = iconv("UTF-8","windows-1251","/^\d*$/"); //шаблон проверки
почтового индекса
$index = iconv("UTF-8","windows-
1251",$form_state['values']['profile_index']);
if(!preg_match($template,$index))
form_set_error('profile_index', t("Поле
".$form['Контакты']['profile_index']['#title']." может содержать только цифры."));
$template = iconv("UTF-8","windows-1251","/^((\([0-9]{3}\)){0,1}[0-
9]+){0,1}$/"); // проверка номера телефона
$telephone = iconv("UTF-8","windows-
1251",$form_state['values']['profile_telephone']);
if(!preg_match($template,$telephone))
form_set_error('profile_telephone', t("<Поле
".$form['Контакты']['profile_telephone']['#title']." может содержать только цифры
или иметь следующий формат: (код города)телефон."));}
109
109
ПРИЛОЖЕНИЕ 3
Программный код главной страницы
<!DOCTYPE html>
<!--[if IE 8]>
<html xmlns="http://www.w3.org/1999/xhtml" class="ie8 wp-toolbar" lang="ru-RU">
<![endif]-->
<!--[if !(IE 8) ]><!-->
<html xmlns="http://www.w3.org/1999/xhtml" class="wp-toolbar" lang="ru-RU">
<!--<![endif]-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Консоль &lsaquo; Наша компания &#8212; WordPress</title>
<script type="text/javascript">
addLoadEvent = function(func){if(typeof
jQuery!="undefined")jQuery(document).ready(func);else if(typeof
wpOnload!='function'){wpOnload=func;}else{var
oldonload=wpOnload;wpOnload=function(){oldonload();func();}}};
var ajaxurl = '/wp-admin/admin-ajax.php',
pagenow = 'dashboard',
typenow = '',
adminpage = 'index-php',
thousandsSeparator = ' ',
decimalPoint = ',',
isRtl = 0;
</script>
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel='stylesheet' href='http://localhost/wp-admin/load-
styles.php?c=0&amp;dir=ltr&amp;load=dashicons,admin-bar,wp-admin,buttons,wp-auth-
check&amp;ver=3.9' type='text/css' media='all' />
<link rel='stylesheet' id='yarppWidgetCss-css' href='http://localhost/wp-content/plugins/yet-
110
110
another-related-posts-plugin/style/widget.css?ver=3.9' type='text/css' media='all' />
<link rel='stylesheet' id='open-sans-css'
href='//fonts.googleapis.com/css?family=Open+Sans%3A300italic%2C400italic%2C600itali
c%2C300%2C400%2C600&#038;subset=latin%2Clatin-ext%2Ccyrillic%2Ccyrillic-
ext&#038;ver=3.9' type='text/css' media='all' />
<link rel='stylesheet' id='thickbox-css' href='http://localhost/wp-
includes/js/thickbox/thickbox.css?ver=20131201' type='text/css' media='all' />
<!--[if lte IE 7]>
<link rel='stylesheet' id='ie-css' href='http://localhost/wp-admin/css/ie.min.css?ver=3.9'
type='text/css' media='all' />
<![endif]-->
<link rel='stylesheet' id='smush-css-css' href='http://localhost/wp-content/plugins/wp-
optimize/css/smush-3-0-14.min.css?ver=3.0.14' type='text/css' media='all' />
<link rel='stylesheet' id='itsec_notice_css-css' href='http://localhost/wp-
content/plugins/better-wp-security/core/css/itsec_notice.css?ver=3.9' type='text/css'
media='all' />
<link rel='stylesheet' id='ithemes-icon-font-css' href='http://localhost/wp-
content/plugins/better-wp-security/lib/icon-fonts/icon-fonts.css?ver=3.9' type='text/css'
media='all' />
<link rel='stylesheet' id='bws-admin-css-css' href='http://localhost/wp-
content/plugins/captcha/bws_menu/css/general_style.css?ver=3.9' type='text/css' media='all'
/>
<link rel='stylesheet' id='woocommerce_admin_menu_styles-css' href='http://localhost/wp-
content/plugins/woocommerce/assets/css/menu.css?ver=2.1.7' type='text/css' media='all' />
<link rel='stylesheet' id='woocommerce_admin_dashboard_styles-css'
href='http://localhost/wp-content/plugins/woocommerce/assets/css/dashboard.css?ver=2.1.7'
type='text/css' media='all' />
<link rel='stylesheet' id='woocommerce-activation-css' href='http://localhost/wp-
content/plugins/woocommerce/assets/css/activation.css?ver=3.9' type='text/css' media='all' />
<script type='text/javascript'>
/* <![CDATA[ */
var wposmush = {"all_images_compressed":"No uncompressed images were
111
111
found.","error_unexpected_response":"An unexpected response was received from the
server. More information has been logged in the browser
console.","compress_single_image_dialog":"Please wait: compressing the selected
image.","error_try_again_later":"Please try again later.","server_check":"Connecting to the
Smush API server, please wait","please_wait":"Please wait while the request is being
processed","server_error":"There was an error connecting to the image compression server.
This could mean either the server is temporarily unavailable or there are connectivity issues
with your internet connection. Please try later.","please_select_images":"Please select the
images you want compressed from the \"Uncompressed images\" panel
first","please_updating_images_info":"Please wait: updating information about the selected
image.","please_select_compressed_images":"Please select the images you want to mark as
already compressed from the \"Uncompressed images\" panel first","view_image":"View
Image","delete_image_backup_confirm":"Do you really want to delete all backup images
now? This action is irreversible.","mark_all_images_uncompressed":"Do you really want to
mark all the images as uncompressed? This action is
irreversible.","restore_images_from_backup":"Do you want to restore the original images
from the backup (where they exist?)","ajaxurl":"http:\/\/localhost\/wp-admin\/admin-
ajax.php","features":{"nitrosmush":{"max_filesize":104857600,"lossy_compression":true,"pr
eserve_exif":false},"resmushit":{"max_filesize":5242880,"lossy_compression":false,"preserv
e_exif":true}},"smush_ajax_nonce":"00c2ffe370"};
/* ]]> */
</script>
<script type='text/javascript'>
/* <![CDATA[ */
var itsec_file_change_warning = {"nonce":"18723f0cf9","url":"http:\/\/localhost\/wp-
admin\/admin.php?page=toplevel_page_itsec_logs"};
/* ]]> */
</script>
<script type='text/javascript'>
/* <![CDATA[ */
var strong_password_error_text = {"text":"Sorry, but you must enter a strong password."};
/* ]]> */
</script>
112
112
<script type='text/javascript'>
/* <![CDATA[ */
var userSettings = {"url":"\/","uid":"16","time":"1576168049"};/* ]]> */
</script>
<script type='text/javascript' src='http://localhost/wp-admin/load-
scripts.php?c=0&amp;load%5B%5D=jquery-core,jquery-migrate,utils,jquery-ui-
core,json2,jquery-ui-datepicker&amp;ver=3.9'></script>
<script type='text/javascript' src='http://localhost/wp-content/plugins/wp-
optimize/js/jquery.blockUI.min.js?ver=3.0.14'></script>
<script type='text/javascript' src='http://localhost/wp-content/plugins/wp-
optimize/js/wposmush-3-0-14.min.js?ver=3.0.14'></script>
<script type='text/javascript' src='http://localhost/wp-content/plugins/better-wp-
security/modules/free/file-change/js/admin-file-change-warning.js?ver=4028'></script>
<script type='text/javascript' src='http://localhost/wp-content/plugins/better-wp-
security/modules/free/strong-passwords/js/strong-passwords.js?ver=4028'></script>
<script type='text/javascript' src='http://localhost/wp-
content/plugins/captcha/bws_menu/js/general_script.js?ver=3.9'></script>
<script type='text/javascript' src='http://localhost/wp-
content/plugins/woocommerce/assets/js/admin/reports.min.js?ver=2.1.7'></script>
<script type='text/javascript' src='http://localhost/wp-
content/plugins/woocommerce/assets/js/admin/jquery.flot.min.js?ver=2.1.7'></script>
<script type='text/javascript' src='http://localhost/wp-
content/plugins/woocommerce/assets/js/admin/jquery.flot.resize.min.js?ver=2.1.7'></script>
<script type='text/javascript' src='http://localhost/wp-
content/plugins/woocommerce/assets/js/admin/jquery.flot.time.min.js?ver=2.1.7'></script>
<script type='text/javascript' src='http://localhost/wp-
content/plugins/woocommerce/assets/js/admin/jquery.flot.pie.min.js?ver=2.1.7'></script>
<script type='text/javascript' src='http://localhost/wp-
content/plugins/woocommerce/assets/js/admin/jquery.flot.stack.min.js?ver=2.1.7'></script>
<style type="text/css">
/* @font-face { font-family: "Rubl Sign"; src: url(http://localhost/wp-
content/plugins/saphali-woocommerce-lite/ruble.eot); } */
113
113
@font-face { font-family: "rub-arial-regular"; src: url("http://localhost/wp-
content/plugins/saphali-woocommerce-lite/ruble-simb.woff"), url("http://localhost/wp-
content/plugins/saphali-woocommerce-lite/ruble-simb.ttf");
}
span.rur {
font-family: rub-arial-regular;
text-transform: uppercase;
}
span.rur span { display: none; }
/* span.rur { font-family: "Rubl Sign"; text-transform: uppercase;}
span.rur:before {top: 0.06em;left: 0.55em;content: '\2013'; position: relative;} */
</style>
<style type="text/css">
/*<![CDATA[*/
.wc-badge:before {
font-family: WooCommerce !important;
content: "\e03d";
color: #fff;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-size: 80px;
font-weight: normal;
width: 165px;
height: 165px;
line-height: 165px;
text-align: center;
position: absolute;
top: 0;
left: 0;
margin: 0;
114
114
vertical-align: middle;
}
.wc-badge {
position: relative;;
background: #9c5d90;
text-rendering: optimizeLegibility;
padding-top: 150px;
height: 52px;
width: 165px;
font-weight: 600;
font-size: 14px;
text-align: center;
color: #ddc8d9;
margin: 5px 0 0 0;
-webkit-box-shadow: 0 1px 3px rgba(0,0,0,.2);
box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.about-wrap .wc-badge {
position: absolute;
top: 0;
right: 0;
}
.about-wrap .wc-feature {
overflow: visible !important;
*zoom:1;
}
.about-wrap .wc-feature:before,
.about-wrap .wc-feature:after {
content: " ";
display: table;
115
115
}
.about-wrap .wc-feature:after {
clear: both;
}
.about-wrap .feature-rest div {
width: 50% !important;
padding-right: 100px;
-moz-box-sizing: border-box;
box-sizing: border-box;
margin: 0 !important;
}
.about-wrap .feature-rest div.last-feature {
padding-left: 100px;
padding-right: 0;
}
.about-wrap div.icon {
width: 0 !important;
padding: 0;
margin: 0;
}
.about-wrap .feature-rest div.icon:before {
font-family: WooCommerce !important;
font-weight: normal;
width: 100%;
font-size: 170px;
line-height: 125px;
color: #9c5d90;
display: inline-block;
position: relative;
text-align: center;

Смотрите также:

"Автоматизация обработки заявок ООО "Проектно-Строительная Компания"
"Автоматизация процесса аттестации персонала для ООО "Нэт Бай Нэт Холдинг"
"Анализ интернет-активности конкурентов ( на примере конкурентов "Газпром нефть")
"Бухгалтерский учёт и аудит расчётов с подотчётними лицами в организации на примере ООО "ЛОЦ 10""
«Психологическое сопровождение персонала в организации на примере ООО «Крокус»
Cовершенствование деловой оценки персонала в организации (на примере ООО "Даймонд кейтеринг развитие")
IPO - инструмент финансирования деятельности организации. На примере ПАО «Нефтяная компания «Лукойл»
PR как средство продвижения организации (на примере ПАО "Тамбовский завод "Комсомолец им. Н.С. Артемова")
PR-коммуникации в сфере общественного питания (на примере кафе-кондитерской «Cream Cheese»)
SMM как средство повышения эффективности работы учреждений социокультурной сферы (на примере Малого театра)