23-10-2006, 21:29
|
|
|
חבר מתאריך: 23.10.06
הודעות: 2
|
|
אוקי הבנתי שהסברתי לא טוב אז אני יסביר שוב
מה שאני רוצה לעשות זה דף ב php שייבא קובץ מסוים שאני יגדיר לו והוא יחסום מאותו קובץ פקודה מסוימת והכי חשוב שבספו של דבר יתעלם מהכל ויציג הכל כמלל בדפדפן
נגיד הקובץ שאני מיבא נראה כך:
קוד PHP:
<?php
if (!eregi("modules.php", $PHP_SELF)) {
die ("can't access this file directly...");
}
$index = 1;
require_once("mainfile.php");
require_once("modules/download/d_config.php");
$module_name = basename(dirname(__FILE__));
get_lang($module_name);
include("admin/modules/download/lang-".$currentlang.".php");
include "edit/wysiwygeditor.php";
$pagetitle = "- "._U1DOWNLOADS."";
$copytext = "<center>
<font color=#000000<center><a href=\"http://members.lycos.co.uk/downisrael/modules.php?name=News&file=article&sid=4\">שימו לב!!! אם התוכנה ,WinRar לא מותכנת אצלכם במחשב מה שתורידו לא יעבוד!!! על מנת להתקין את התוכנה ולקרוא עוד בנושא לחצו כאן</a></center>";
$imagesdir = dir("images/download");
$udir = "/images/download/";
.................................................. ..
.................................................. ....
.................................................. ...
.................................................. ....
}
ומה שאני רוצה לחסום זה ---
קוד PHP:
if (!eregi("modules.php", $PHP_SELF)) {
die ("can't access this file directly...");
}
אז הדף אמור להראות ככה:
קוד PHP:
\\\פקודה שחוסמת את הפקודה הזאתי בכל הדף
if (!eregi("modules.php", $PHP_SELF)) {
die ("can't access this file directly...");
}
\\\
include (http://members.lycos.co.uk/downisrael/modules/download/index.php);
(פקודת יבוא)
\\\פקודה שגורמת לזה שהדפדפן יציג הכל כ-מלל\\\
והכל יראה ככה:
if (!eregi("modules.php", $PHP_SELF)) {
die ("can't access this file directly...");
}
$index = 1;
require_once("mainfile.php");
require_once("modules/download/d_config.php");
$module_name = basename(dirname(__FILE__));
get_lang($module_name);
include("admin/modules/download/lang-".$currentlang.".php");
include "edit/wysiwygeditor.php";
$pagetitle = "- "._U1DOWNLOADS."";
$copytext = "<center>
<font color=#000000<center><a href=\"http://members.lycos.co.uk/downisrael/modules.php?name=News&file=article&sid=4\">שימו לב!!! אם התוכנה ,WinRar לא מותכנת אצלכם במחשב מה שתורידו לא יעבוד!!! על מנת להתקין את התוכנה ולקרוא עוד בנושא לחצו כאן</a></center>";
$imagesdir = dir("images/download");
$udir = "/images/download/";
.................................................. ..
.................................................. ....
.................................................. ...
.................................................. ....
עכשיו אני יסביר למה אני רוצה את זה:
אני רוצה את זה כדי לעשות דף ששיבא דף אחר ויחסום מאותו דף פקודה שגורמת לזה שאני לא יכול לגשת ישירות לקובץ ואז אם אני יחסום את אותה פקודה אני כן יוכל לגשת לדף ואז יציג לי את כל המלל של הדף כקוד .
בעצם כל מה שאני רוצה זה לראות את הקוד של הדף הזה.
|