, , , id , "" ? if($level_nik=='admin') echo 'zapreweno'; ><><><><><><><><><><><><><><><>< $priv = $user['priv']; if($post['to'] != 0) echo "<b>[P!]</b>"; echo "<a href=\"addto.php?id=$id&amp;password=$password&amp;ver=wml&amp;rid=$rid&amp;nocache=$nocache&amp;uid=".$post['aid']."\">".$post['nickname']."</a> [".$post['time']."]<br/>\n"; $post['msg'] = stripslashes($post['msg']); if($smiles == 0) $post['msg'] = preg_replace("|<img[^>]+>|isU", "*smile*", $post['msg']); echo $post['msg']."<br/>\n"; , , , , " " , . !" |--------------------------------| ...? .htaccess>>RewriteRule . readfile($filepath) ><><><><><><><><><><><><><><><>< download.php : <? if(isset($_GET['file'])) { if(preg_match('/[^a-z0-9_.-]/i',$_GET['file'])) { echo ' !'; } else { if(file_exists(($path='/path/to/file/'.$_GET['file']))) { $types=array('gif'=>'image/gif','jpeg'=>'image/jpeg','jpg'=>'image/jpeg','png'=>'image/png'); header('Content-Type: '.((isset($types[($ext=pathinfo($path,PATHINFO_EXTENSION))]))?$types[$ext]:'application/octet-stream')); header('Content-Length: '.filesize($path)); readfile($path); // , : //mysql_query("UPDATE files SET downloaded+=1 WHERE filename='".$_GET['file']."'") or die(mysql_error()); } else { echo ' !'; } } } ?> .htaccess : RewriteEngine on RewriteBase / RewriteRule ^files/(.+)$ /download.php?file=$1 P.S. " ", , . ><><><><><><><><><><><><><><><>< , `accoun` `id_file` "" "SELECT (*) FROM `accoun` WHERE `id_file`=$id" $id id . |--------------------------------| . $fp=fopen("papka/file.txt","w"); fclose($fp); $fp=fopen("papka/file.txt","w"); fputs($fp,''); fclose($fp); |--------------------------------| . .htaccess php_value mbstring.internal_encoding UTF-8 ----------------------------- php $txt = " "; $text = mb_substr($txt, 0, 100); echo "$text <- 100" |--------------------------------| $text? <
далее
перейти
в начало
В библиотеку

на главную



..
(c) xika.ru