dobry
na stránku som si umiestnil script na uploadovanie, ten išiel v pohode
ale ked som si pridal ešte script na lightbox gallery tak ten prvy prestal fungovať a galeria išla dobre
neviete v čom môže byť problem??
takto funguje ten prvy
Kód:
<?php
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";
if ($settings['maintenance'] == "1" && !iADMIN) { redirect(BASEDIR."maintenance.php"); }
if (iMEMBER) { $result = dbquery("UPDATE ".DB_USERS." SET user_lastvisit='".time()."', user_ip='".USER_IP."' WHERE user_id='".$userdata['user_id']."'"); }
echo "<!DOCTYPE html 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";
echo "<link rel='stylesheet' href='".INCLUDES."uploadify.css' type='text/css' media='screen' />\n";
//
echo "<link rel=\"stylesheet\" href=\"lightbox/lightbox.css\" type=\"text/css\" media=\"screen\" />";
//
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."jscript.js'></script>\n";
// tu začina ten script na uploadovanie
echo "<script type='text/javascript' src='".INCLUDES."jquery.js'></script>\n
<script type=\"text/javascript\" src=\"".INCLUDES."jquery-1.3.2.min.js\"></script>
<script type=\"text/javascript\" src=\"".INCLUDES."swfobject.js\"></script>
<script type=\"text/javascript\" src=\"".INCLUDES."jquery.uploadify.v2.1.0.min.js\"></script>
";
//tu konči
echo "</head>\n<body>\n";
require_once THEMES."templates/panels.php";
ob_start();
?>
ked pridam druhy, tak ten prvy prestane fungovať
Kód:
<?php
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";
if ($settings['maintenance'] == "1" && !iADMIN) { redirect(BASEDIR."maintenance.php"); }
if (iMEMBER) { $result = dbquery("UPDATE ".DB_USERS." SET user_lastvisit='".time()."', user_ip='".USER_IP."' WHERE user_id='".$userdata['user_id']."'"); }
echo "<!DOCTYPE html 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";
echo "<link rel='stylesheet' href='".INCLUDES."uploadify.css' type='text/css' media='screen' />\n";
//
echo "<link rel=\"stylesheet\" href=\"lightbox/lightbox.css\" type=\"text/css\" media=\"screen\" />";
//
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."jscript.js'></script>\n";
echo "<script type='text/javascript' src='".INCLUDES."jquery.js'></script>\n
<script type=\"text/javascript\" src=\"".INCLUDES."jquery-1.3.2.min.js\"></script>
<script type=\"text/javascript\" src=\"".INCLUDES."swfobject.js\"></script>
<script type=\"text/javascript\" src=\"".INCLUDES."jquery.uploadify.v2.1.0.min.js\"></script>
//tu začina druhy script
<script type=\"text/javascript\" src=\"".INCLUDES."prototype.js\"></script>
<script type=\"text/javascript\" src=\"".INCLUDES."scriptaculous.js?load=effects,builder\"></script>
<script type=\"text/javascript\" src=\"".INCLUDES."lightbox.js\"></script>
//tu konči druhy
";
echo "</head>\n<body>\n";
require_once THEMES."templates/panels.php";
ob_start();
?>