Файл: www/umnik/sis/core.php
Строк: 17
<?php
/**
* @author local
* @copyright Studio - Game
* @services Php,MySql,Design
* @contact 441998880
*/
include '../config.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 ;
}
?>