1
Discussion & Troubleshooting / Re: deleting error images
« on: January 15, 2009, 03:34:45 PM »
can anyone help me plz
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.
An unexpected error occured. Please try again later.
An unexpected error occured. Please try again later.
An unexpected error occured. Please try again later.
An unexpected error occured. Please try again later.
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/content/l/o/v/lovd/html/lovd059784fdg/gallery/includes/db_mysql.php on line 116
Warning: getimagesize(): Read error! in /home/content/l/o/v/lovd/html/lovd059784fdg/gallery/admin/thumbnailer.php on line 115
Warning: move_uploaded_file(): SAFE MODE Restriction in effect. The script whose uid is 1082 is not allowed to access /usr/home/tamilshotz/domains/tamilshotz.com/public_html/4images/data/media/4 owned by uid 1004 in /usr/home/tamilshotz/domains/tamilshotz.com/public_html/4images/includes/upload.php on line 113
End tag 'head' does not match the start tag 'link'. Error processing resource 'http://www.tamilsoulja.com/gallery/rss.php'. Line 8, Position 3
</head>
--^
/*************************************************
* RSS Feed for 4images *
* beta 0.1 *
* Email:
*/
//------------ CONFIG ----------------------------
$num_new_images = 10;
/*
u can uncomment this, if you want to use config variables from 4images config
$num_new_images = $config['image_cells'];
*/
//because we have no session here, we have to hardcode this values
define('SCRIPT_URL', 'http://www.tamilsoulja.com/gallery'); //no trailing slash
define('LANGUAGE', 'DE');
define('ROOT_PATH', './');
//----- END CONFIG--------------------------------------------
include(ROOT_PATH.'global.php');
$main_template = 'rss';
$sql = "SELECT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, c.cat_name
FROM ".IMAGES_TABLE." i, ".CATEGORIES_TABLE." c
WHERE i.image_active = 1 AND c.cat_id = i.cat_id
ORDER BY i.image_date DESC
LIMIT $num_new_images";
$result = $site_db->query($sql);
$num_rows = $site_db->get_numrows($result);
$format="Y-m-d\TH:i:s+00:00"; //the time format for rss date
while($image_row = $site_db->fetch_array($result)){
$site_template->register_vars(array(
"title" => $image_row["image_name"],
"description" => $image_row["image_description"],
"category_domain" => SCRIPT_URL."/categories.php?cat_id=".$image_row["cat_id"],
"category" => $image_row["cat_name"],
"link" => SCRIPT_URL."/details.php?image_id=".$image_row["image_id"],
"date" => format_date($format,$image_row["image_date"]),
));
$new_images.=$site_template->parse_template("rssitem");
}
//-----------------------------------------------------
//--- Print Out ---------------------------------------
//-----------------------------------------------------
$site_template->register_vars(
array(
"ctitle" => $config['site_name'],
"clink" => SCRIPT_URL,
"cdescription" => $config['site_name']." RSS Feed",
"language" =>LANGUAGE,
"ititle" =>"",
"iurl" => SCRIPT_URL."/".TEMPLATE_PATH."/images/header_logo.gif",
"ilink" => SCRIPT_URL,
"items" => $new_images,
)
);
header("Content-type: text/xml");
$site_template->print_template('<?xml version="1.0" encoding="ISO-8859-1"?>'.$site_template->parse_template($main_template));;
?>