Location: PHPKode > scripts > WH Social > wh_social/pack.php
<?php

    require('framework/session.php');

    error_reporting(E_ALL ^ E_NOTICE);

    define('INCLUDE_CHECK',1);
    define('MYSQL_CHECK',1);

    require('framework/config.php');
    require('framework/mysql.php');
    require('framework/constants.php');
    require('framework/language.php');

    include_once('framework/class/cache_class.php'); no_cache();

    include('framework/templates/root.php');
    include('framework/functions/online.php');

    require('framework/ready.php');

?>
<!DOCTYPE HTML>
<html>

<head>
    <title><?php echo $title; ?></title>

    <meta charset="ISO-8859-1" />
    <meta name="robots" content="INDEX,FOLLOW" />

    <link href="style/css/design.css" rel="stylesheet" />
    <link href="style/images/favicon.ico" rel="shortcut icon" />

    <noscript><span class="noscript"><?php echo $lang['no_java']; ?></span></noscript>
</head>

<body>

<?php

    echo '<h1 class="p_space">' . $lang['packstation'] . '</h1>';

    $id = (int)$_SESSION['id'];

    $sql = "SELECT * FROM photos WHERE id2 = " . $id;

	$result = mysql_query($sql) OR die(mysql_error());

	if(!$result) {

	echo '<p class="false">' . $lang['no_photos'] . '</p>' . mysql_error();

		}else{

		if(intval(mysql_num_rows($result)) == 0) {

		echo '<p class="false">' . $lang['no_photos'] . '</p>';

	}else{

    require_once('framework/class/photo_class.php');

    $gallery = $PHOTOS['album']->getAll("SELECT * FROM photos WHERE id2 = '" . $id . "' ORDER BY date DESC");

    echo '<table width="100%" cellpadding="5" cellspacing="0" class="guestbook">
    <tr>
    <td width="5%" align="center"><span class="blue_span">' . $lang['blank_download'] . '</span></td>
    <td width="15%" align="center"><span class="blue_span">' . $lang['type'] . '</span></td>
    <td width="30%"><span class="blue_span">' . $lang['pack_name'] . '</span></td>
    <td width="50%"><span class="blue_span">' . $lang['blank_description'] . '</span></td>
    </tr>';

    foreach($gallery as $key => $row) {

        $show_photos .= '<tr>
        <td align="center"><a href="' . htmlentities($row['tag']) . '"><img src="style/images/download.png" border="0" alt="Download"></a></td>
        <td align="center"><img src="' . htmlentities($row['tag']) . '" width="46" height="30" border="0" id="' . (int)$row['id'] . '"></td>
        <td>' . htmlentities($row['title'], ENT_QUOTES) . '</td>
        <td>' . htmlentities($row['description'], ENT_QUOTES) . '</td>
        </tr>';
        
        $tag_photos .= htmlentities($row['tag']);
        }

    echo $show_photos;

    echo '</table>';
    }
    }

?>

</body>
</html>
<?php include_once('framework/work/end.php'); ?>
Return current item: WH Social