Include file trong PhpDig 1.6.x

trang này đã được đọc lần

Sản Phẩm : PhpDig 1.6.x
Nguồn: phpdig.net
Tác giả : FraMe ( frame at kernelpanik.org )

1.Giới thiệu .

PHPDIG là môt sản phẩm tìm kiếm được viết bằng PHP chạy với CSDL MySQL , tìm kiếm theo các từ khoá được nhập vào .

2. Mô tả :

PhpDig 1.6.x cho phép thực thi lệnh từ xa trong file in ./includes/config.php
bất kỳ ai cũng có thể inject vào một URL trong biến $relative_script_path và thự thi lệnh có sẵn trong Script

3. Chi tiết .

PhpDig 1.6.x
from ./includes/config.php:
===========================
(..)

//includes language file
if (is_file("$relative_script_path/locales/$phpdig_language-language.php"))
{include "$relative_script_path/locales/$phpdig_language-language.php";}
else
{include "$relative_script_path/locales/en-language.php";}
(..)

//includes of libraries
include "$relative_script_path/libs/phpdig_functions.php";
include "$relative_script_path/libs/function_phpdig_form.php";
include "$relative_script_path/libs/mysql_functions.php";

(..)

4. Sửa lỗi

a)đặt .htaccess trong thư mục ./includes

b) Php globals off (Default in Php > 4.2)

c) Hoặc download file sửa tại đây http://www.kernelpanik.org/code/kernelpanik/phpdig.zip