Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Galerijos skriptas

Parašė laimmx1· 2013 Vas. 11 00:02:32
#1

Klausimas paprastas kur man patalpinti si koda kad veiktu skriptas pridetinuose puslapuose ten parasita deti tarp <head> tagu bet nezinau i kuri faila ir kurioj vietoj gal ka keist ar dadet reikia nes php failuose nelabai maciau kad kur detusi tokie tagai.


<link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />
<script type="text/javascript" src="js/prototype.lite.js"></script>
<script type="text/javascript" src="js/moo.fx.js"></script>
<script type="text/javascript" src="js/litebox-1.0.js"></script>

Parašė Wasiulis· 2013 Vas. 11 02:02:07
#2

jei v6 versija tai į .subheader.php o jei v7 tai į themes/templates/header.php

Parašė laimmx1· 2013 Vas. 11 02:02:25
#3

Kurion vieton ma ji ideti nes niekaip nesigauna.


<?php
/*-------------------------------------------------------+
| <span style="border-bottom: 1px dotted black;">PHP</span>-Fusion Content Management System
| Copyright (C) 2002 - 2011 Nick Jones
| <a href='http://www.php-fusion.co.uk/' target='_blank'><span style='color:005C5B'>http://www.php-fusion.co.uk/</span></a>
+--------------------------------------------------------+
| Filename: header.php
| Author: Nick Jones (Digitanium)
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at <a href='http://www.gnu.org/licenses/agpl.html.' target='_blank'><span style='color:005C5B'>www.gnu.org/licenses/agpl.html.</span></a> Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
if (!defined("IN_FUSION")) { die("Access Denied"); }
 
require_once INCLUDES."output_handling_include.php";
require_once INCLUDES."header_includes.php";
require_once THEME."theme.php";
require_once THEMES."templates/render_functions.php";
 
if ($settings['maintenance'] == "1" && ((iMEMBER && $settings['maintenance_level'] == "1" 
	&& $userdata['user_id'] != "1") || ($settings['maintenance_level'] > $userdata['user_level'])
)) { 
	redirect(BASEDIR."maintenance.php");
 }
if (iMEMBER) { 
	$result = dbquery(
		"UPDATE ".DB_USERS." SET user_lastvisit='".time()."', user_ip='".USER_IP."', user_ip_type='".USER_IP_TYPE."'
		WHERE user_id='".$userdata['user_id']."'"
	); 
}
 
echo "<!DOCTYPE <span style="border-bottom: 1px dotted black;">html</span> PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>\n";
echo "<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='".$locale['xml_lang']."' lang='".$locale['xml_lang']."'>\n";
echo "<head>\n<title>".$settings['sitename']."</title>\n";
echo "<meta http-equiv='Content-Type' content='text/html; charset=".$locale['charset']."' />\n";
echo "<meta name='description' content='".$settings['description']."' />\n";
echo "<meta name='keywords' content='".$settings['keywords']."' />\n";
echo "<link rel='stylesheet' href='".THEME."styles.css' type='text/css' media='screen' />\n";
if (file_exists(IMAGES."favicon.ico")) { echo "<link rel='shortcut icon' href='".IMAGES."favicon.ico' type='image/x-icon' />\n"; }
if (function_exists("get_head_tags")) { echo get_head_tags(); }
echo "<script type='text/javascript' src='".INCLUDES."jquery/jquery.js'></script>\n";
echo "<script type='text/javascript' src='".INCLUDES."jscript.js'></script>\n";
echo "</head>\n<body>\n";
 
require_once THEMES."templates/panels.php";
ob_start();
?>

Parašė Wasiulis· 2013 Vas. 11 03:02:46
#4


<?php
 
/*-------------------------------------------------------+
 
| <span style="border-bottom: 1px dotted black;">PHP</span>-Fusion Content Management System
 
| Copyright (C) 2002 - 2011 Nick Jones
 
| <a href='http://www.php-fusion.co.uk/' target='_blank'><span style='color:005C5B'>http://www.php-fusion.co.uk/</span></a>
 
+--------------------------------------------------------+
 
| Filename: header.php
 
| Author: Nick Jones (Digitanium)
 
+--------------------------------------------------------+
 
| This program is released as free software under the
 
| Affero GPL license. You can redistribute it and/or
 
| modify it under the terms of this license which you
 
| can read by viewing the included agpl.txt or online
 
| at <a href='http://www.gnu.org/licenses/agpl.html.' target='_blank'><span style='color:005C5B'>www.gnu.org/licenses/agpl.html.</span></a> Removal of this
 
| copyright header is strictly prohibited without
 
| written permission from the original author(s).
 
+--------------------------------------------------------*/
 
if (!defined("IN_FUSION")) { die("Access Denied"); }
 
 
 
require_once INCLUDES."output_handling_include.php";
 
require_once INCLUDES."header_includes.php";
 
require_once THEME."theme.php";
 
require_once THEMES."templates/render_functions.php";
 
 
 
if ($settings['maintenance'] == "1" && ((iMEMBER && $settings['maintenance_level'] == "1" 
 
	&& $userdata['user_id'] != "1") || ($settings['maintenance_level'] > $userdata['user_level'])
 
)) { 
 
	redirect(BASEDIR."maintenance.php");
 
 }
 
if (iMEMBER) { 
 
	$result = dbquery(
 
		"UPDATE ".DB_USERS." SET user_lastvisit='".time()."', user_ip='".USER_IP."', user_ip_type='".USER_IP_TYPE."'
 
		WHERE user_id='".$userdata['user_id']."'"
 
	); 
 
}
 
 
 
echo "<!DOCTYPE <span style="border-bottom: 1px dotted black;">html</span> PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>\n";
 
echo "<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='".$locale['xml_lang']."' lang='".$locale['xml_lang']."'>\n";
 
echo "<head>\n<title>".$settings['sitename']."</title>\n";
 
echo "<meta http-equiv='Content-Type' content='text/html; charset=".$locale['charset']."' />\n";
 
echo "<meta name='description' content='".$settings['description']."' />\n";
 
echo "<meta name='keywords' content='".$settings['keywords']."' />\n";
 
echo "<link rel='stylesheet' href='".THEME."styles.css' type='text/css' media='screen' />\n";
 
if (file_exists(IMAGES."favicon.ico")) { echo "<link rel='shortcut icon' href='".IMAGES."favicon.ico' type='image/x-icon' />\n"; }
 
if (function_exists("get_head_tags")) { echo get_head_tags(); }
 
echo "<script type='text/javascript' src='".INCLUDES."jquery/jquery.js'></script>\n";
 
echo "<script type='text/javascript' src='".INCLUDES."jscript.js'></script>\n";
 
echo '<link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />
 
<script type="text/javascript" src="js/prototype.lite.js"></script>
 
<script type="text/javascript" src="js/moo.fx.js"></script>
 
<script type="text/javascript" src="js/litebox-1.0.js"></script>';
 
echo "</head>\n<body>\n";
 
 
 
require_once THEMES."templates/panels.php";
 
ob_start();
 
?>