コード例 #1
0
ファイル: shorturl.php プロジェクト: JJaicmkmy/Chevereto
 (<?php 
show_image_dimentions();
?>
)</title>
<meta name="description" content="<?php 
echo chevereto_config('meta_description');
?>
" />
<meta name="generator" content="Chevereto <?php 
show_chevereto_version();
?>
" />
<meta content="width = device-width, initial-scale = 1.0, maximum-scale = 1.0, minimum-scale = 1.0, user-scalable = no" name="viewport">
<link href="<?php 
show_theme_url();
echo conditional_minify('style.css');
?>
" rel="stylesheet" type="text/css" />
<link href="<?php 
show_theme_url();
?>
favicon.ico" rel="shortcut icon" type="image/x-icon" />

<meta name="twitter:card" content="photo">
<meta name="twitter:image" content="<?php 
show_img_url();
?>
">

<script type="text/javascript" src="<?php 
show_jquery();
コード例 #2
0
ファイル: login.php プロジェクト: JJaicmkmy/Chevereto
" />
<link href="<?php 
echo __CHV_URL_THEME__;
?>
favicon.ico" rel="shortcut icon" type="image/x-icon" />
<meta name="description" content="<?php 
echo chevereto_config('site_name');
?>
 File Manager - Powered by Chevereto Image Hosting script" />
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/>
<script type="text/javascript" language="javascript" src="<?php 
echo absolute_to_relative(__CHV_PATH_SYSTEM_JS__) . conditional_minify('jquery.js');
?>
"></script>
<script type="text/javascript" language="javascript" src="<?php 
echo absolute_to_relative(__CHV_PATH_SYSTEM_JS__) . conditional_minify('functions.js');
?>
"></script>
<script type="text/javascript" language="javascript">
	var config = {
		error_reporting : true
	}
	var lang = <?php 
echo get_chevereto_safe_lang();
?>
;
	var admin_url = "<?php 
echo __CHV_ADMIN_URL__;
?>
";
	var admin_json = admin_url+"json";
コード例 #3
0
ファイル: header.php プロジェクト: JJaicmkmy/Chevereto
favicon.ico" rel="shortcut icon" type="image/x-icon" />

<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/>

<script type="text/javascript" language="javascript" src="<?php 
show_jquery();
?>
"></script>
<script type="text/javascript" language="javascript" src="<?php 
echo absolute_to_relative(__CHV_PATH_SYSTEM_JS__);
echo conditional_minify('functions.js');
?>
"></script>
<script type="text/javascript" language="javascript" src="<?php 
echo absolute_to_relative(__CHV_PATH_ADMIN_SYSTEM_JS__);
echo conditional_minify('admin.js');
?>
"></script>

<script type="text/javascript" language="javascript">
	var admin_url = "<?php 
echo __CHV_ADMIN_URL__;
?>
";
	var admin_json = admin_url+"json";

	var config = {
		thumb_width : "<?php 
echo chevereto_config('thumb_width');
?>
",
コード例 #4
0
function show_chevereto_header()
{
    $doctitle = check_value(get_doctitle()) ? get_doctitle() . ' - ' : '';
    $html = '<script type="text/javascript" src="' . __CHV_URL_SYSTEM_JS__ . conditional_minify('jquery.js') . '"></script>
<script type="text/javascript" src="' . __CHV_URL_SYSTEM_JS__ . conditional_minify('jquery.uploadify-3.1_chevereto.js') . '"></script>
<script type="text/javascript" src="' . __CHV_URL_SYSTEM_JS__ . conditional_minify('functions.js') . '"></script>
<script type="text/javascript" src="' . __CHV_URL_SYSTEM_JS__ . conditional_minify('chevereto.js') . '"></script>
<script type="text/javascript" src="' . __CHV_URL_THEME__ . conditional_minify('theme.js') . '"></script>

<link type="text/css" href="' . __CHV_URL_THEME__ . conditional_minify('style.css') . '" rel="stylesheet" />
<link type="text/css" href="' . __CHV_URL_THEME__ . conditional_minify('uploadify.css') . '" rel="stylesheet" />
<link type="image/x-icon" href="' . __CHV_URL_THEME__ . 'favicon.ico" rel="shortcut icon"  />

<meta name="generator" content="Chevereto ' . get_chevereto_version() . '" />

<meta name="description" content="' . chevereto_config('meta_description') . '" />
<meta name="keywords" content="' . chevereto_config('meta_keywords') . '" />

<title>' . $doctitle . chevereto_config('doctitle') . '</title>

<script type="text/javascript">
	var base_url = "' . __CHV_BASE_URL__ . '";
	var base_url_js = "' . __CHV_URL_SYSTEM_JS__ . '";
	var uploadify_swf = "' . absolute_to_relative(__CHV_PATH_SYSTEM_JS__) . 'uploadify.swf";
	var uploader_file = "' . __CHV_RELATIVE_ROOT__ . 'upload.php";
	var zeroclip_swf = "' . __CHV_URL_SYSTEM_JS__ . 'ZeroClipboard.swf";
	var session_id = "' . session_id() . '";
	var virtual_url_image = "' . __CHV_BASE_URL__ . __CHV_VIRTUALFOLDER_IMAGE__ . '/";
	var virtual_url_uploaded = "' . __CHV_BASE_URL__ . __CHV_VIRTUALFOLDER_UPLOADED__ . '/";
	var config = {
		doctitle : "' . chevereto_config('doctitle') . '",
		virtual_folder_image : "' . chevereto_config('virtual_folder_image') . '",
		virtual_folder_uploaded : "' . chevereto_config('virtual_folder_uploaded') . '",
		max_filesize : "' . chevereto_config('max_filesize') . '",
		min_resize_size : ' . chevereto_config('min_resize_size') . ',
		max_resize_size : ' . chevereto_config('max_resize_size') . ',
		multiupload : ' . (chevereto_config('multiupload') ? "true" : "false") . ',
		multiupload_limit : ' . chevereto_config('multiupload_limit') . ',
		error_reporting : ' . (chevereto_config('error_reporting') ? "true" : "false") . '
	}
	var ImagesUp = ' . json_encode(get_uploaded_images()) . ';
	var lang = ' . json_encode(get_chevereto_safe_lang()) . ';
</script>';
    if (check_value(chevereto_config('facebook_app_id'))) {
        $html .= "\n\n";
        $html .= '<meta property="fb:app_id" content="' . chevereto_config('facebook_app_id') . '" />' . "\n";
        $html .= '<script type="text/javascript">
	(function(d, s, id) {
		  var js, fjs = d.getElementsByTagName(s)[0];
		  if (d.getElementById(id)) return;
		  js = d.createElement(s); js.id = id;
		  js.src = "//connect.facebook.net/' . get_lang_locale() . '/all.js#xfbml=1&appId=' . chevereto_config('facebook_app_id') . '";
		  fjs.parentNode.insertBefore(js, fjs);
		}(document, "script", "facebook-jssdk"));' . "\n";
        $html .= '</script>' . "\n";
    }
    $ga = get_google_analytics();
    $html .= $ga ? "\n" . $ga . "\n" : '';
    $html .= "\n" . '<noscript><meta http-equiv="refresh" content="0;url=' . __CHV_BASE_URL__ . 'error-javascript" /></noscript>' . "\n";
    echo $html;
}
コード例 #5
0
ファイル: error.php プロジェクト: JJaicmkmy/Chevereto
  Copyright (c) Rodolfo Berrios <*****@*****.**>
  
  Licensed under the MIT license
  http://opensource.org/licenses/MIT

  --------------------------------------------------------------------- */
if (!defined('access') or !access) {
    die('This file cannot be directly accessed.');
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="<?php 
echo absolute_to_relative(__CHV_PATH_SYSTEM__) . conditional_minify('style.css');
?>
" rel="stylesheet" type="text/css" />
<link href="<?php 
echo absolute_to_relative(__CHV_PATH_SYSTEM__);
?>
favicon.ico" rel="shortcut icon" type="image/x-icon" />

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

<?php 
if ($title == 'JavaScript') {
    ?>