1
Templates & Styles (Requests & Discussions) / Re: русские сюда памагите""!!!
« on: December 26, 2007, 09:00:32 PM »delete:спасибо, (Thanks)Code: [Select]$site_db = new Db($db_host, $db_user, $db_password, $db_name);
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
delete:спасибо, (Thanks)Code: [Select]$site_db = new Db($db_host, $db_user, $db_password, $db_name);
ob_start();
include("../sait.ru/random_more_pics.php");
$script = ob_get_contents();
ob_end_clean();
$content .= $script;
<?php
if (!defined('BLOCK_FILE')) {
Header("Location: ../index.php");
exit;
}
$content = "<link rel=\"stylesheet\" href=\"http://prikolki.ru/templates/ald_vopus/style.css\" type=\"text/css\">";
$content = "<p align=\"center\">";
ob_start();
include("../gallery.prikolki.ru/random_more_pics.php");
$script = ob_get_contents();
ob_end_clean();
$content .= $script;
?>
Fatal error: Cannot redeclare class db in /home/removed.by.Nicky/data/www/removed.by.Nicky/includes/db_mysql.php on line 28
<?php
if (!defined('BLOCK_FILE')) {
Header("Location: ../index.php");
exit;
}
$content = "<link rel=\"stylesheet\" href=\"http://prikolki.ru/templates/ald_vopus/style.css\" type=\"text/css\">";
$content = "<p align=\"center\">";
ob_start();
include("../gallery.prikolki.ru/new_pics_center.php");
$script = ob_get_contents();
ob_end_clean();
$content .= $script;
?>
<?php
define('ROOT_PATH', '/home/&#1090;&#1099;&#1097;/&#1087;&#1099;&#1094;/sait.ru/');
include(ROOT_PATH.'config.php');
include(ROOT_PATH.'includes/db_mysql.php');
include(ROOT_PATH.'includes/constants.php');
$site_db = new Db($db_host, $db_user, $db_password, $db_name);
function is_remote($file_name) {
return (preg_match('#^https?\\:\\/\\/[a-z0-9\-]+\.([a-z0-9\-]+\.)?[a-z]+#i', $file_name)) ? 1 : 0;
}
$num_images = 5;
$sql = "SELECT a.image_id, a.cat_id, a.image_name, a.image_active, a.image_thumb_file, a.image_comments, a.image_date
FROM ".IMAGES_TABLE." a, ".CATEGORIES_TABLE." b
WHERE a.image_active=1
AND a.cat_id = b.cat_id
AND b.auth_viewcat=".AUTH_ALL."
AND b.auth_viewimage=".AUTH_ALL."
ORDER BY a.image_date DESC
LIMIT $num_images";
$result = $site_db->query($sql);
while ($row = $site_db->fetch_array($result)){
$image_id = $row['image_id'];
$cat_id = $row['cat_id'];
$image_name = $row['image_name'];
$image_comments = $row['image_comments'];
$thumb_src = (is_remote($row['image_thumb_file'])) ? $row['image_thumb_file'] : "http://sait.ru/data/thumbnails/".$cat_id."/".$row['image_thumb_file'];
echo "<p align=\"left\"><a href=\"http://sait.ru/details.php?image_id=$image_id\"><img src=\"".$thumb_src."\" border=\"0\" alt=\"$image_name\"></a><br>\n";
echo "<b>$image_name</b><br>\n";
echo "&#1050;&#1086;&#1084;&#1084;&#1077;&#1085;&#1090;&#1072;&#1088;&#1080;&#1080;: $image_comments\n";
}
?>
<?php
define('ROOT_PATH', '/home/тыщ/пыц/sait.ru/');
include(ROOT_PATH.'config.php');
include(ROOT_PATH.'includes/db_mysql.php');
include(ROOT_PATH.'includes/constants.php');
$site_db = new Db($db_host, $db_user, $db_password, $db_name);
function is_remote($file_name) {
return (preg_match('#^https?\\:\\/\\/[a-z0-9\-]+\.([a-z0-9\-]+\.)?[a-z]+#i', $file_name)) ? 1 : 0;
}
$num_images = 5;
$sql = "SELECT a.image_id, a.cat_id, a.image_name, a.image_active, a.image_thumb_file, a.image_comments, a.image_date
FROM ".IMAGES_TABLE." a, ".CATEGORIES_TABLE." b
WHERE a.image_active=1
AND a.cat_id = b.cat_id
AND b.auth_viewcat=".AUTH_ALL."
AND b.auth_viewimage=".AUTH_ALL."
ORDER BY a.image_date DESC
LIMIT $num_images";
$result = $site_db->query($sql);
while ($row = $site_db->fetch_array($result)){
$image_id = $row['image_id'];
$cat_id = $row['cat_id'];
$image_name = $row['image_name'];
$image_comments = $row['image_comments'];
$thumb_src = (is_remote($row['image_thumb_file'])) ? $row['image_thumb_file'] : "http://sait.ru/data/thumbnails/".$cat_id."/".$row['image_thumb_file'];
echo "<p align=\"left\"><a href=\"http://sait.ru/details.php?image_id=$image_id\"><img src=\"".$thumb_src."\" border=\"0\" alt=\"$image_name\"></a><br>\n";
echo "<b>$image_name</b><br>\n";
echo "Комментарии: $image_comments\n";
}
?>
ob_start();
include("../sait.ru/random_more_pics.php");
$script = ob_get_contents();
ob_end_clean();
$content .= $script;