Пример #1
0
 *
 *
 *   ABOUT THIS PAGE -----
 *   Used For:     Frequently Asked Questions Page
 *   Last edited:  19/12/2012
 *
 *************************************************************************************************************/
define('cfih', 'faq');
require './inc/cfih.php';
// check to see if this page has been hidden (set in the admin panel), if so then send user to the index/home page
if (!$settings['SET_HIDE_FAQ']) {
    header('Location: index.php');
    exit;
}
// cache faq page once every 32 days
cache_cheack('faq', 60 * 60 * 24 * 32);
// header page var
$pageSet['id'] = 'faq_page';
$pageSet['title'] = ' - ' . _T("site_faq_title");
$pageSet['description'] = _T("site_faq_title") . ' for ' . $settings['SET_TITLE'] . ', Image Hosting website';
$pageSet['keywords'] = $settings['SET_TITLE'] . ', images, photos, photo hosting,  image hosting';
// load header
require CFROOTPATH . 'header.php';
?>
		<div class="contentBox">
			<div id="faq">
				<h2><?php 
echo _T("site_faq_title");
?>
</h2>
					<div class="faq_box">
Пример #2
0
 *
 *   ABOUT THIS PAGE -----
 *   Used For:     Web Site Map
 *   Last edited:  19/12/2012
 *
 *************************************************************************************************************/
define('cfih', 'sitemap');
require './inc/cfih.php';
if (!$settings['SET_HIDE_SITEMAP']) {
    header('Location: index.php');
    exit;
}
header("Content-type: text/xml");
echo '<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">';
// cache sitemap once a day
cache_cheack('sitemap', 60 * 60 * 24);
// list pages
echo '<url><loc>' . $settings['SET_SITEURL'] . '</loc></url>';
// Home page
if ($settings['SET_HIDE_GALLERY']) {
    echo '<url><loc>' . $settings['SET_SITEURL'] . '/gallery.php</loc></url>';
}
// Gallery
if ($settings['SET_HIDE_TOS']) {
    echo '<url><loc>' . $settings['SET_SITEURL'] . '/tos.php</loc></url>';
}
// TOS
if ($settings['SET_HIDE_FAQ']) {
    echo '<url><loc>' . $settings['SET_SITEURL'] . '/faq.php</loc></url>';
}
// FAQ
Пример #3
0
 *
 *
 *   ABOUT THIS PAGE -----
 *   Used For:     Terms of Service Page
 *   Last edited:  19/12/2012
 *
 *************************************************************************************************************/
define('cfih', 'tos');
require './inc/cfih.php';
// check to see if this page has been hidden (set in the admin panel), if so then send user to the index/home page
if (!$settings['SET_HIDE_TOS']) {
    header('Location: index.php');
    exit;
}
// cache faq page once every 32 days
cache_cheack('tos', 60 * 60 * 24 * 32);
// header page var
$pageSet['id'] = 'tos_page';
$pageSet['title'] = ' - ' . _T("site_tos_title");
$pageSet['description'] = _T("site_tos_title") . ' page for ' . $settings['SET_TITLE'];
$pageSet['keywords'] = '';
// load header
require CFROOTPATH . 'header.php';
?>
		<div class="contentBox">
			<div id="tos">
				<h2><?php 
echo _T("site_tos_title");
?>
</h2>
				<ul>
Пример #4
0
 *
 *   ABOUT THIS PAGE -----
 *   Used For:     RSS Feed page
 *   Last edited:  19/12/2012
 *
 *************************************************************************************************************/
define('cfih', 'feed');
require './inc/cfih.php';
if (!$settings['SET_HIDE_FEED']) {
    header('Location: index.php');
    exit;
}
header('Content-type: text/xml');
echo '<?xml version="1.0" encoding="utf-8"?>';
// cache feed page once a hour
cache_cheack('feed', 60 * 60);
?>
<feed xmlns="http://www.w3.org/2005/Atom"
  xmlns:xh="http://www.w3.org/1999/xhtml">
			<title><?php 
echo $settings['SET_TITLE'];
?>
</title>
			<link><?php 
echo $settings['SET_SITEURL'];
?>
</link>
			<description><?php 
echo _T("feed_description");
?>
</description>
Пример #5
0
 }
 //see if image exists
 if (!($image = db_get_image($img_id))) {
     //	user_feedback('error',_T("site_index_thumbs_page_err"),'thumbs_page');
     $countThumb++;
     continue;
 }
 //only count image if not on upload page
 if (!isset($delete_id)) {
     db_imageCounterSave($image, 4);
 }
 // check for cache
 if (!isset($delete_id)) {
     // && !checklogin()){
     unset($_SESSION['upload']);
     cache_cheack($img_id . '_thumb' . ($showImage ? '_small' : ''), 60 * 60 * 24 * 30);
 }
 // hold thumbnail page html
 if (!isset($thumbHtml)) {
     $thumbHtml = '';
 }
 // Thumbnail page variables
 $thumb_link = imageAddress(3, $image, 'pt');
 $thumb_url = imageAddress(3, $image, 'dt');
 $thumb_mid_link = imageAddress(2, $image, 'pm');
 $thumb_mid_url = imageAddress(2, $image, 'dm');
 $imgurl = imageAddress(1, $image, 'di');
 $alt = $image['alt'];
 $shorturl = $image['shorturl'];
 $thumb_show = $showImage ? $thumb_url : $thumb_mid_url;
 // make image links