Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

Čestitati Božić i Novu Godinu?!

[es] :: Javascript i AJAX :: Čestitati Božić i Novu Godinu?!

[ Pregleda: 2974 | Odgovora: 3 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

Frane Marinković
MNGR & Technical Support Dept.,
Get-Host.net Group
Hrvatska

Član broj: 23984
Poruke: 513
*.net.t-com.hr.

Jabber: frane.marinkovic@elitesecurity.org
Sajt: get-host.net


+1 Profil

icon Čestitati Božić i Novu Godinu?!20.12.2004. u 09:39 - pre 234 meseci
Želio bih čestitati Božić i Novu Godinu svim posjetiocima mog sitea!
Kako postaviti:
Code:

window.alert('\nDobro došli na\n.::X-Ray::.\nhome page!');
window.alert('Čestit Božić\ni\nSretna Nova 2005. Godina!');
window.alert('Žele Vam\nAdministratori\n.::X-Ray::. -a!!!');

u PHP skript Nuka 7.5, tj. u:
Code:

<?php

/************************************************************************/
/* PHP-NUKE: Advanced Content Management System                         */
/* ============================================                         */
/*                                                                      */
/* Copyright (c) 2002 by Francisco Burzi                                */
/* http://phpnuke.org                                                   */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/*                                                                      */
/************************************************************************/
/* Additional security checking code 2003 by chatserv                   */
/* http://www.nukefixes.com -- http://www.nukeresources.com             */
/************************************************************************/

require_once("mainfile.php");
$_SERVER['PHP_SELF'] = "modules.php";
$row = $db->sql_fetchrow($db->sql_query("SELECT main_module from ".$prefix."_main"));
$name = $row['main_module'];
$home = 1;

if ($httpref==1) {
    $referer = $_SERVER["HTTP_REFERER"];
    $referer = check_html($referer, nohtml);
    if ($referer=="" OR eregi("^unknown", $referer) OR substr("$referer",0,strlen($nukeurl))==$nukeurl OR eregi("^bookmark",$referer)) {
    } else {
    $result = $db->sql_query("INSERT INTO ".$prefix."_referer VALUES (NULL, '$referer')");
    }
    $numrows = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_referer"));
    if($numrows>=$httprefmax) {
    $result2 = $db->sql_query("DELETE FROM ".$prefix."_referer");
    }
}
if (!isset($mop)) { $mop="modload"; }
if (!isset($mod_file)) { $mod_file="index"; }
$name = trim($name);
$file = trim($file);
$mod_file = trim($mod_file);
$mop = trim($mop);
if (ereg("\.\.",$name) || ereg("\.\.",$file) || ereg("\.\.",$mod_file) || ereg("\.\.",$mop)) {
    echo "You are so cool...";
} else {
    $ThemeSel = get_theme();
    if (file_exists("themes/$ThemeSel/module.php")) {
    include("themes/$ThemeSel/module.php");
    if (is_active("$default_module") AND file_exists("modules/$default_module/".$mod_file.".php")) {
        $name = $default_module;
    }
    }
    if (file_exists("themes/$ThemeSel/modules/$name/".$mod_file.".php")) {
    $modpath = "themes/$ThemeSel/";
    }
    $modpath .= "modules/$name/".$mod_file.".php";
    if (file_exists($modpath)) {
    include($modpath);
    } else {
    $index = 1;
    include("header.php");
    OpenTable();
    if (is_admin($admin)) {
        echo "<center><font class=\"\"><b>"._HOMEPROBLEM."</b></font><br><br>[ <a href=\"admin.php?op=modules\">"._ADDAHOME."</a> ]</center>";
    } else {
        echo "<center>"._HOMEPROBLEMUSER."</center>";
    }
    CloseTable();
    include("footer.php");
    }
}

?>

Molim vas složenu skriptu šaljite na mailto:[email protected] (ako je ko složi) ili (naravno) pišite tu.
 
Odgovor na temu

Br@nkoR
http://localhost

Član broj: 2597
Poruke: 1603

Sajt: localhost


+23 Profil

icon Re: Čestitati Božić i Novu Godinu?!20.12.2004. u 10:09 - pre 234 meseci
Potrebno je ovaj JavaScript kod staviti izmedju tagova:
Code:
<script language="JavaScript">
window.alert('\nDobro dosli na\n.::X-Ray::.\nhome page!');
window.alert('Cestit Bozic\ni\nSretna Nova 2005. Godina!');
window.alert('Zele Vam\nAdministratori\n.::X-Ray::. -a!!!');
</script>


A ovaj kompletan kod staviti izmedju <head></head> tagova.

Zato pogledaj gde se generisu <head> tagovi i stavi ovaj gore kod izmedju njih. Najverovatnije u header.php.
Banned - Not available
 
Odgovor na temu

Frane Marinković
MNGR & Technical Support Dept.,
Get-Host.net Group
Hrvatska

Član broj: 23984
Poruke: 513
*.net.t-com.hr.

Jabber: frane.marinkovic@elitesecurity.org
Sajt: get-host.net


+1 Profil

icon Re: Čestitati Božić i Novu Godinu?!20.12.2004. u 11:27 - pre 234 meseci
Stavio sam ovako: (header.php)
Code:

<?php

/************************************************************************/
/* PHP-NUKE: Advanced Content Management System                         */
/* ============================================                         */
/*                                                                      */
/* Copyright (c) 2002 by Francisco Burzi                                */
/* http://phpnuke.org                                                   */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/

if (eregi("header.php",$_SERVER['PHP_SELF'])) {
    Header("Location: index.php");
    die();
}

require_once("mainfile.php");

##################################################
# Include some common header for HTML generation #
##################################################

$header = 1;

function head() {
    global $slogan, $sitename, $banners, $nukeurl, $Version_Num, $artpage, $topic, $hlpfile, $user, $hr, $theme, $cookie, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $textcolor1, $textcolor2, $forumpage, $adminpage, $userpage, $pagetitle;
    $ThemeSel = get_theme();
    include("themes/$ThemeSel/theme.php");
    echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n";
    echo "<html>\n";
    echo "<head>\n";
    echo "<title>$sitename $pagetitle</title>\n";
[b]<script language="JavaScript">
window.alert('\nDobro došli na\n.::X-Ray::.\nhome page!');
window.alert('Čestit Božić\ni\nSretna Nova 2005. Godina!');
window.alert('Žele Vam\nAdministratori\n.::X-Ray::. -a!!!');
</script>[/b]
    include("includes/meta.php");
    include("includes/javascript.php");

    if (file_exists("themes/$ThemeSel/images/favicon.ico")) {
    echo "<link REL=\"shortcut icon\" HREF=\"themes/$ThemeSel/images/favicon.ico\" TYPE=\"image/x-icon\">\n";
    }

    echo "<LINK REL=\"StyleSheet\" HREF=\"themes/$ThemeSel/style/style.css\" TYPE=\"text/css\">\n\n\n";
    include("includes/my_header.php");
    echo "\n\n\n</head>\n\n";
    themeheader();
}

online();
head();
include("includes/counter.php");
global $home;
if ($home == 1) {
    message_box();
    blocks(Center);
}

?>

Ali ne radi
 
Odgovor na temu

Br@nkoR
http://localhost

Član broj: 2597
Poruke: 1603

Sajt: localhost


+23 Profil

icon Re: Čestitati Božić i Novu Godinu?!20.12.2004. u 11:42 - pre 234 meseci
Umesto:
Code:

[b]<script language="JavaScript">
window.alert('\nDobro došli na\n.::X-Ray::.\nhome page!');
window.alert('Čestit Božić\ni\nSretna Nova 2005. Godina!');
window.alert('Žele Vam\nAdministratori\n.::X-Ray::. -a!!!');
</script>[/b]

Stavi:
Code:

echo "<script language=\"JavaScript\">
window.alert('\\nDobro dosli na\\n.::X-Ray::.\\nhome page!');
window.alert('Cestit Bozic\\ni\\nSretna Nova 2005. Godina!');
window.alert('Zele Vam\\nAdministratori\\n.::X-Ray::. -a!!!');
</script>";

Banned - Not available
 
Odgovor na temu

[es] :: Javascript i AJAX :: Čestitati Božić i Novu Godinu?!

[ Pregleda: 2974 | Odgovora: 3 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.