Tarih: 2005-12-17, 19:27:16 Mesaj konusu: Re: herhangi bir html sayfasını nuke'de modül içine nasıl al
Anladığım kadarıyla html sayfasını modül olarak kullanmak istiyorsun..Eğer doğru anladıysam şöle yardımcı olabilirim..
öncelikle modules klasörünün altına herhangi bi klasör aç... Daha sonra içine
Kod:
<?php
$path_to_kisgb = "modules/mesela/index.html"; if (!eregi("modules.php", $PHP_SELF)) { die ("You can't access this file directly..."); } require_once("mainfile.php"); $module_name = basename(dirname(__FILE__)); include("header.php"); OpenTable(); $content = "<i f r a m e frameborder=\"0\" src=\"$path_to_kisgb\" width=\"100%\" height=\"600\"><ilayer src=\"$path_to_kisgb\">KISGB.</ilayer></i f r a m e>"; echo $content; CloseTable(); include("footer.php"); ?>
Bu şekilde ismi index.php olan bi dosya yarat...
Kod:
"modules/mesela/index.html";
yazan yere kendi dosya rootunu yaz .....Sonra admin panelinden aktif et...
<i f r a m e WIDTH=92 HEIGHT=31 NORESIZE SCROLLING=NO FRAMEBORDER=0 MARGINHEIGHT=0 MARGINWIDTH=0 SRC="http://www.yesiller.net/xxx/xxx.htm" NAME=DSYYON></i f r a m e>
root ta xxx dosyasının içindeki xxx.htm dosyasını bu kodla çağırıyoruz modül yapıcak olursak
Kod:
<?php
#### http://www.fencenneti.com #AslanOnur ####
if (!eregi("modules.php", $PHP_SELF)) {
die ("You can't access this file directly...");
}
require_once("mainfile.php");
@$module_name = basename(dirname(__FILE__));
@get_lang($module_name);
include("header.php");
$index = 0;
OpenTable();
echo" <i f r a m e WIDTH=92 HEIGHT=31 NORESIZE SCROLLING=NO FRAMEBORDER=0 MARGINHEIGHT=0 MARGINWIDTH=0 SRC=\"http://www.yesiller.net/xxx/xxx.htm\" NAME=DSYYON></i f r a m e>";
CloseTable();
include("footer.php");
html kodlarını şu şekilde bir index.php nin içine at
Kod:
<?php
/************************************************************************/
/* PHP-NUKE: Web Portal 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 & Abstraction layer conversion */
/* 2003 chatserv */
/* http://www.nukefixes.com -- http://www.nukeresources.com */
/************************************************************************/
if (!eregi("modules.php", $_SERVER['PHP_SELF'])) {
die ("You can't access this file directly...");
}
$index=0;
include ('header.php');
?>Buraya Html Kodlarını at<?
Sonra bir yeni klosör yarat klasöre modülün adını ver içine hazırladığın index.php 'yi at sonra klasörü ftp'nde modules klasörünün içine yani diğer modüllerin olduğu klasöre kopyala.
Bunu Örnek Alarak Diğer Html sayfalarınıda phpye çevirip modul yapabilirsin.
<i f r a m e WIDTH=92 HEIGHT=31 NORESIZE SCROLLING=NO FRAMEBORDER=0 MARGINHEIGHT=0 MARGINWIDTH=0 SRC="http://www.yesiller.net/xxx/xxx.htm" NAME=DSYYON></i f r a m e>
root ta xxx dosyasının içindeki xxx.htm dosyasını bu kodla çağırıyoruz modül yapıcak olursak
Kod:
<?php
#### http://www.fencenneti.com #AslanOnur ####
if (!eregi("modules.php", $PHP_SELF)) {
die ("You can't access this file directly...");
}
require_once("mainfile.php");
@$module_name = basename(dirname(__FILE__));
@get_lang($module_name);
include("header.php");
$index = 0;
OpenTable();
echo" <i f r a m e WIDTH=92 HEIGHT=31 NORESIZE SCROLLING=NO FRAMEBORDER=0 MARGINHEIGHT=0 MARGINWIDTH=0 SRC=\"http://www.yesiller.net/xxx/xxx.htm\" NAME=DSYYON></i f r a m e>";
CloseTable();
include("footer.php");
Kayıt: Nov 15, 2005 Mesajlar: 34 Konum: kaulu bela'dan
Tarih: 2005-12-17, 21:35:20 Mesaj konusu: Re: herhangi bir html sayfasını nuke'de modül içine nasıl al
Alıntı:
Kod:
<?php
$path_to_kisgb = "modules/mesela/index.html"; if (!eregi("modules.php", $PHP_SELF)) { die ("You can't access this file directly..."); } require_once("mainfile.php"); $module_name = basename(dirname(__FILE__)); include("header.php"); OpenTable(); $content = "<i f r a m e frameborder=\"0\" src=\"$path_to_kisgb\" width=\"100%\" height=\"600\"><ilayer src=\"$path_to_kisgb\">KISGB.</ilayer></i f r a m e>"; echo $content; CloseTable(); include("footer.php"); ?>
Bu forumda yeni başlıklar açamazsınız Bu forumdaki başlıklara cevap veremezsiniz Bu forumdaki mesajlarınızı değiştiremezsiniz Bu forumdaki mesajlarınızı silemezsiniz Bu forumdaki anketlerde oy kullanamazsınız