Exemplo n.º 1
0
        $headers .= 'Content-Type: multipart/mixed; boundary="' . $boundary . '"' . $ent . $ent;
        $message = '--' . $boundary . $ent;
        $message .= 'Content-Type: text/plain; charset="utf-8"' . $ent;
        $message .= 'Content-Transfer-Encoding: base64' . $ent . $ent;
        $message .= chunk_split(base64_encode($comment));
        ini_set('sendmail_from', $email);
        mail($settings['SET_CONTACT'], 'Email from contact form on ' . $settings['SET_TITLE'], strip_tags(html_entity_decode($message)), $headers);
        $emailSent = true;
    }
}
// header page var
$pageSet['id'] = 'contact_page';
$pageSet['title'] = ' - ' . _T("site_menu_contact");
$pageSet['description'] = _T("site_menu_contact") . ' page for  ' . $settings['SET_TITLE'];
$pageSet['keywords'] = '';
$captcha_light = theme_setting('captcha_light') ? '&bg' : '';
// load header
require CFROOTPATH . 'header.php';
?>
		<div class="contentBox">
			<div id="contact">
				<h2><?php 
echo _T("site_menu_contact");
?>
</h2>
				<div class="contact_box">
<?php 
if ($emailSent) {
    // if email is sent say thanks
    ?>
				<p class="teaser"><?php 
Exemplo n.º 2
0
 *   ABOUT THIS PAGE -----
 *   Used For:     Site ajax php
 *   Last edited:  08/01/2013
 *
 *************************************************************************************************************/
define('cfih', 'ajax');
require './inc/cfih.php';
// check for ajax call
if (empty($_SERVER['HTTP_X_REQUESTED_WITH']) || strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) != 'xmlhttprequest') {
    header('Location: ' . $settings['SET_SITEURL'] . 'index.php?err=404');
    exit;
}
////////////////////////////////////////////////
// Image Widgit
if (isset($_POST['widgit']) && check_set('SET_IMAGE_WIDGIT')) {
    $widgetHtml = ImageWidget(theme_setting('widgit_row', 4), false);
    echo $widgetHtml;
    exit;
}
////////////////////////////////////////////////
// Image report
if (isset($_POST['report']) && check_set('SET_ALLOW_REPORT')) {
    if (!report_img(cl($_POST['report']))) {
        echo json_encode(array('status' => 0, 'error' => show_feedback(false)));
        exit;
    }
    echo json_encode(array('status' => 1, 'suc' => show_feedback(false)));
    exit;
}
////////////////////////////////////////////////
// admin only code below
Exemplo n.º 3
0
         } elseif (!empty($_POST['new_width'][$i]) && empty($_POST['new_height'][$i])) {
             $imgUp->resizeImage($_POST['new_width'][$i], $imgUp->info['width'], 'landscape');
         } elseif (empty($_POST['new_width'][$i]) && !empty($_POST['new_height'][$i])) {
             $imgUp->resizeImage($imgUp->info['height'], $_POST['new_height'][$i], 'portrait');
         }
         $imgUp->saveImage($imgUp->info['address'], 100, null, true);
         $imgUp->info['size'] = filesize($imgUp->info['address']);
         // get new image file size
         $imgUp->stretchSmallImages(false);
         // set it back to false
     }
 }
 // check for theme Settings
 $THUMB_OPTION = theme_setting('thumb_option', $THUMB_OPTION);
 $THUMB_MAX_WIDTH = theme_setting('thumb_max_width', $THUMB_MAX_WIDTH);
 $THUMB_MAX_HEIGHT = theme_setting('thumb_max_height', $THUMB_MAX_HEIGHT);
 // make thumb
 $thumb_mid_address = CFTHUMBPATH . $imgUp->info['new'];
 $imgUp->resizeImage($THUMB_MID_MAX_WIDTH, $THUMB_MID_MAX_HEIGHT, $THUMB_MID_OPTION);
 $imgUp->saveImage($thumb_mid_address, $imgUp->info['ext'] == 'png' ? $PNG_QUALITY : $JPG_QUALITY);
 // make small thumb
 $thumb_address = CFSMALLTHUMBPATH . $imgUp->info['new'];
 $imgUp->resizeImage($THUMB_MAX_WIDTH, $THUMB_MAX_HEIGHT, $THUMB_OPTION);
 $imgUp->saveImage($thumb_address, $imgUp->info['ext'] == 'png' ? $PNG_QUALITY : $JPG_QUALITY);
 $image = $imgUp->info;
 $imgUp->destroyImage();
 $image['alt'] = removeSymbols(cl(!empty($_POST['alt'][$i]) ? $_POST['alt'][$i] : $image['name']));
 //see if thumb's got made
 if (!file_exists($thumb_address) || !file_exists($thumb_mid_address)) {
     @unlink($image['address']);
     @unlink($thumb_address);
Exemplo n.º 4
0
</span></a></div>
		<?php 
}
?>
		<div class="sp"></div>
		<p><?php 
echo _T("admin_footer_powered_by");
?>
 <a href="http://codefuture.co.uk/projects/imagehost/" title="Free PHP Image Hosting Script">CF Image Hosting script</a> | Design By <a href="<?php 
echo theme_setting('url', 'http://codefuture.co.uk');
?>
" title="<?php 
echo theme_setting('linktitle', 'codefuture.co.uk - online webmaster tools,code Generators');
?>
"><?php 
echo theme_setting('designby', 'codefuture.co.uk');
?>
</a></p>
	</div>
</div>

<?php 
if (getSettings('SET_GOOGLE_ANALYTICS')) {
    ?>
<script type="text/javascript">
	var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
	document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
	try {
		var pageTracker = _gat._getTracker("<?php 
    echo $settings['SET_GOOGLE_ANALYTICS'];
    ?>
Exemplo n.º 5
0
			google_ad_format = "300x250_as";
			google_ad_type = "text";
			google_color_link = "' . $ads['thumb_lc'] . '";
			google_color_text = "' . $ads['thumb_tc'] . '";
			google_color_url = "' . $ads['thumb_uc'] . '";
			google_color_bg = "' . $ads['thumb_bg'] . '";
			google_color_border = "' . $ads['thumb_bg'] . '";
			google_ui_features = "rc:0";
		//-->
	</script>
	<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>';
//Gallery Inline AdSense Code
$ads['gallery_bg'] = theme_setting('ads_gallery_bg', 'ffffff');
$ads['gallery_lc'] = theme_setting('ads_gallery_link_color', '0066CC');
$ads['gallery_tc'] = theme_setting('ads_gallery_text_color', '888888');
$ads['gallery_uc'] = theme_setting('ads_gallery_url_color', '7F7F7F');
$ads['gallery'] = '
	<script type="text/javascript">
		<!--
			' . $g_client . '
			' . $g_channel . '
			/* 728x90 */
			google_ad_width = 728;
			google_ad_height = 90;
			google_ad_format = "728x90_as";
			google_ad_type = "text_image";
			google_color_link = "' . $ads['gallery_lc'] . '";
			google_color_text = "' . $ads['gallery_tc'] . '";
			google_color_url = "' . $ads['gallery_uc'] . '";
			google_color_bg = "' . $ads['gallery_bg'] . '";
			google_color_border = "' . $ads['gallery_bg'] . '";
Exemplo n.º 6
0
            echo _T("site_gallery_report_this");
            ?>
','<?php 
            echo $image['id'];
            ?>
')">
							<?php 
            echo _T("site_gallery_report");
            ?>
						</a>
					</div>
				<?php 
        }
        ?>
			</li>
<?php 
        echo !(($k + 1) % $imgOnGalleryRow) ? '</ul>' : '';
        // end row
        if ($k + 1 == $imgOnGalleryRow) {
            get_ad('gallery', 'gallery_ad');
        }
    }
    // endfor
    // end row if it was not a full row of images
    if (($k + 1) % $imgOnGalleryRow) {
        echo '</ul>';
    }
    echo $gallery->pagination(theme_setting('pagination_link_no'));
}
// load footer
require CFROOTPATH . 'footer.php';
Exemplo n.º 7
0
?>
"><?php 
get_site('title');
?>
</a></h1>
			<h2><?php 
get_site('slogan');
?>
</h2>
		</div>

<?php 
if ($listLanguages = listLanguages()) {
    ?>
		<div class="languages"<?php 
    if (theme_setting('list_languages_over', true)) {
        ?>
 onMouseOver="document.getElementById('language').style.display='block'" onMouseOut="document.getElementById('language').style.display='none'"<?php 
    }
    ?>
>
			<div class="lan_on"><span><?php 
    echo _T("site_language");
    ?>
</span><img src="<?php 
    echo get_url('languages/', false) . CFUSERLANG;
    ?>
.png" width="23" height="15" alt="<?php 
    echo CFUSERLANG;
    ?>
" title="<?php