1. PHP / Говнокод #68

    +22.9

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
    15. 15
    16. 16
    17. 17
    18. 18
    19. 19
    20. 20
    21. 21
    22. 22
    23. 23
    24. 24
    25. 25
    26. 26
    27. 27
    28. 28
    29. 29
    30. 30
    31. 31
    32. 32
    33. 33
    34. 34
    35. 35
    36. 36
    37. 37
    $result = mysql_query("SELECT * FROM `Wallpapers` WHERE `Title` = '".$Title."'");
    $row = mysql_fetch_assoc($result);
    $wID=$row['ID'];
    $Wallpaper1=$row['Wallpaper1'];
    $Wallpaper2=$row['Wallpaper2'];
    $Wallpaper3=$row['Wallpaper3'];
    $Wallpaper4=$row['Wallpaper4'];
    $Wallpaper5=$row['Wallpaper5'];
    
    if ( $_SESSION['userid'] )
    	{ 
    	if ($Wallpaper1 != NULL) {
    		$size='';
    		$size=getimagesize("images/wallpapers/".$Wallpaper1);
    		$dHTML .= '<a class="preview" href="'.$image_path.'show/'.$Title.'/?w=1" style="text-decoration: underline;" onClick="alerts('.$wID.'); countIp();">'.$size[0].'x'.$size[1].'</a> ';
    	}
    	if ($Wallpaper2 != NULL) {
    		$size='';
    		$size=getimagesize("images/wallpapers/".$Wallpaper2);
    		$dHTML .= '<a class="preview" href="'.$image_path.'show/'.$Title.'/?w=2" style="text-decoration: underline;" onClick="alerts('.$wID.'); countIp();">'.$size[0].'x'.$size[1].'</a> ';
    	}
    	if ($Wallpaper3 != NULL) {
    		$size='';
    		$size=getimagesize("images/wallpapers/".$Wallpaper3);
    		$dHTML .= '<a class="preview" href="'.$image_path.'show/'.$Title.'/?w=3" style="text-decoration: underline;" onClick="alerts('.$wID.'); countIp();">'.$size[0].'x'.$size[1].'</a> ';
    	}
    	if ($Wallpaper4 != NULL) {
    		$size='';
    		$size=getimagesize("images/wallpapers/".$Wallpaper4);
    		$dHTML .= '<a class="preview" href="'.$image_path.'show/'.$Title.'/?w=4" style="text-decoration: underline;" onClick="alerts('.$wID.'); countIp();">'.$size[0].'x'.$size[1].'</a> ';
    	}
    	if ($Wallpaper5 != NULL) {
    		$size='';
    		$size=getimagesize("images/wallpapers/".$Wallpaper5);
    		$dHTML .= '<a class="preview" href="'.$image_path.'show/'.$Title.'/?w=5" style="text-decoration: underline;" onClick="alerts('.$wID.'); countIp();">'.$size[0].'x'.$size[1].'</a> ';
    	}
    	}

    Запостил: guest, 08 Декабря 2008

    Комментарии (4) RSS

    Добавить комментарий