Пример #1
0
<?php

/**
 *  OpenLSS - Lighter Smarter Simpler
 *
 *	This file is part of OpenLSS.
 *
 *	OpenLSS is free software: you can redistribute it and/or modify
 *	it under the terms of the GNU Lesser General Public License as
 *	published by the Free Software Foundation, either version 3 of
 *	the License, or (at your option) any later version.
 *
 *	OpenLSS 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
 *	GNU Lesser General Public License for more details.
 *
 *	You should have received a copy of the 
 *	GNU Lesser General Public License along with OpenLSS.
 *	If not, see <http://www.gnu.org/licenses/>.
 */
use LSS\Url;
//register Url::home() if not already
if (!Url::_isCallable('home')) {
    Url::_register('home', '/index.php');
}
Url::_register('client', Url::home() . '?act=client');
Url::_register('profile', Url::client() . '&do=profile');
Url::_register('login', Url::client() . '&do=login');
Url::_register('logout', Url::client() . '&do=logout');