Merhaba arkadaşlar,

Php sürümü yükseltilmiş ve kategorilerde linkler bozuluyor.

Deprecated: Function session_register() is deprecated in


Warning: session_register() expects at least 1 parameter, 0 given in

Hataları alıyorum. adminFunc.php dosyasını aşağıya kopyaladım. Bilgisi olanlar yardımcı olabilir mi acaba?



<?php
if(!defined('security')){
        exit;
}
function str2url($convertStr){
    $search     = array('ç','Ç','ğ','Ğ','ı','İ', 'ö', 'Ö','ş', 'Ş','ü','Ü'); 
    $replace    = array('c','c','g','G','i','i', 'o', 'o','s', 's','u','U');
    $convertStr = str_replace( $search , $replace , $convertStr );

    $find = array('é', 'è', 'ë', 'ê', 'É', 'È', 'Ë', 'Ê');
    $convertStr = str_replace ($find, 'e', $convertStr);

    $find = array('í', 'ý', 'ì', 'î', 'ï', 'I', 'Ý', 'Í', 'Ì', 'Î', 'Ï');
    $convertStr = str_replace ($find, 'i', $convertStr);
    
    $find = array('ó', 'ò', 'ô', 'Ó', 'Ò', 'Ô');
    $convertStr = str_replace ($find, 'o', $convertStr);

    $find = array('á', 'ä', 'â', 'à', 'â', 'Ä', 'Â', 'Á', 'À', 'Â');
    $convertStr = str_replace ($find, 'a', $convertStr);

    $find = array('ú', 'ù', 'û', 'Ú', 'Ù', 'Û');
    $convertStr = str_replace ($find, 'u', $convertStr);

    $find = array('þ', 'Þ');
    $convertStr = str_replace ($find, 's', $convertStr);

    $find = array('ð', 'Ð');
    $convertStr = str_replace ($find, 'g', $convertStr);


    $convertStr = strtolower( $convertStr );
    $convertStr = ereg_replace( '[^a-zA-Z0-9[:space:]]' , '' , $convertStr );
    $convertStr = ereg_replace( '[[:space:]]{1,}' , ' ' , $convertStr );    
    $convertStr = str_replace(' ' , '-' , $convertStr );
    return $convertStr;
}
function wordCount($convertStr){
    $convertStr = str_replace( "\n" , " " , $convertStr );
    $convertStr = ereg_replace( "[^A-Za-z0-9[:space:]çÇğĞıİöÖşŞüÜ]" , "" , $convertStr );
    $convertStr = preg_replace( '/\s\s+/' , ' ' , $convertStr );
    $convertStr = explode (" ",$convertStr);
    for($i=0; $i< count($convertStr); $i++){
        $keyword[ $convertStr[$i] ] = $keyword[ $convertStr[$i] ] + 1;
    }
    arsort($keyword);
    foreach ($keyword as $key => $value){
        $newArray[] = $key;
    }
    return $newArray;
}
function clearFileName($string){
    // uzantının küçük harfe dönüştürülmeside düzeltildi
    $fileExt = strrchr($string,'.');
    $fileExt = strtolower($fileExt);
    $string = basename($string, $fileExt );
    $string = str2url($string);
    return $string . $fileExt;
}
function imageThumb( $srcPic , $destPic , $maxW , $maxH ){
    global $sysConf;
    // Image tekrar boyutland?rmak i?in fonksiyon
    // Kullan?m? kaynakresim, hedef resim, max geni?lik, max y?kseklik
    // Thumb resim olu?turmak i?inde kullan?lacak
        $info       = getimagesize( $srcPic );
        $width      = $info[0];
        $height     = $info[1];
        $percentW   = $maxW / $width;
        $percentH   = $maxH / $height;
        $percent1   = trim( $percentW * $width );
        $percent2   = trim( $percentW * $height );
        
        if( ( $maxW >= $percent1 ) AND ( $maxH >= $percent2 ) ){
            $percent = $percentW;
        }
        
        $percent1   = trim( $percentH * $width );
        $percent2   = trim( $percentH * $height );
                        
        if( ( $maxW >= $percent1 ) AND ( $maxH >= $percent2 ) ){
            $percent = $percentH;
        }
                    
        $newWidth  = $width * $percent;
        $newHeight = $height * $percent;
                    
        $imageP = imagecreatetruecolor( $newWidth, $newHeight );
        
        switch( strtolower(strrchr($srcPic,'.')) ){
            case ".jpg":
                $image = imagecreatefromjpeg($srcPic);
                break;
            case ".jpeg":
                $image = imagecreatefromjpeg($srcPic);
                break;
            case ".png":
                $image = imagecreatefrompng($srcPic);
                break;
            case ".bmp":
                $image = imagecreatefromwbmp($srcPic);
                break;
            case ".gif":
                $image = imagecreatefromgif($srcPic);
                break;
        }
        
        imagecopyresampled($imageP, $image, 0, 0, 0, 0, $newWidth, $newHeight, $width, $height);
        
        switch( strtolower(strrchr($destPic,'.')) ){
            case ".jpg":
                imagejpeg($imageP, $destPic, 100);
                break;
            case ".jpeg":
                imagejpeg($imageP, $destPic, 100);
                break;
            case ".png":
                imagepng($imageP, $destPic, 100);
                break;
            case ".bmp":
                imagewbmp($imageP, $destPic);
                break;
            case ".gif":
                imagegif($imageP, $destPic);
                break;
        }
}
function uploadFile($field , $dest){
    global $_FILES,$sysConf;
    move_uploaded_file($_FILES[$field]['tmp_name'], $dest );    
}
function copyFile($source , $dest){
    copy($source, $dest);
}
function unlinkFile($file){
    unlink($file);
}
function allMakeDir($dirName){
        $dirName = explode('/',$dirName);
        for($i=0; $i<count($dirName); $i++){
            if($i==0){
                    $mkDirPath = $dirName[$i];
            }else{
                    $mkDirPath .='/'.$dirName[$i];
            }
                    @mkdir($mkDirPath);
                    @chmod($mkDirPath,0777);
        }
}
function clearFolder(){
    
}
function getSubStr($text, $openingMarker, $closingMarker) {
    $openingMarkerLength = strlen($openingMarker);
    $closingMarkerLength = strlen($closingMarker);

    $result = array();
    $position = 0;
    while (($position = strpos($text, $openingMarker, $position)) !== false) {
      $position += $openingMarkerLength;
      if (($closingMarkerPosition = strpos($text, $closingMarker, $position)) !== false) {
        $result[] = substr($text, $position, $closingMarkerPosition - $position);
        $position = $closingMarkerPosition + $closingMarkerLength;
      }
    }
    return $result[0];
}
?>