Файл: users/umnik/sis/core.php
Строк: 14
<?require_once ("../core/cuctema/core.php"); #################################
#Обьявляем переменные
$id = isset( $_REQUEST['id'] ) ? abs( intval( $_REQUEST['id'] ) ) : false ;
$var = isset( $_GET['var'] ) ? abs( intval( $_GET['var'] ) ) : false ;
$act = isset( $_GET['act'] ) ? trim( $_GET['act'] ) : '' ;
$name = isset( $_POST['name'] ) ? trim( $_POST['name'] ) : '' ;
$opis = isset( $_POST['opis'] ) ? trim( $_POST['opis'] ) : '' ;
#################################
#Функции
function inl( $text )
{
$text = htmlspecialchars( $text ) ;
$text = str_replace( "rn", "<br />", $text ) ;
$text = str_replace( "n", "<br />", $text ) ;
$text = mysql_real_escape_string( $text ) ;
return $text ;
}
?>