Ejemplo n.º 1
0
//цвета
$colors=array('red', 'green', 'blue', 'orange', 'brown', 'magenta', 'darkblue');

//Если вход не выполнен
if(!isset($_SESSION['user'])){
	echo login_form();
	exit;
}

//Подключаемся к базе данных
db_connect();

//Чистим uri
uri_clean('add_position', 'add_document', 'edit_document', 'delete_document', 'save_document', 'show_originals', 'delete_file', 'edit_file',
			'show_histories', 'search_document', 'search_string', 'show_contragents', 'show_positions', 'edit_position', 'add_position', 'delete_position',
			'add_tag');

//Html всей страницы
$html="";

//Подключаем шапку
$html.=template_get('header');

//Подключаем верхнее меню
$html.= menu_top();

//Выполняем действия
$action=$_GET['action'];
$dir=$_SERVER['computer_ROOT']."actions";
$dp = opendir($dir);
Ejemplo n.º 2
0
function uriclean($uri)
{
    return uri_clean($uri);
}