Güvenlik Kodu

PHP, MySQL, HTML, CSS, SEO vb. ile ilgili genel konular.

Güvenlik Kodu

İleti muaythai 01.07.2006, 23:12

Arkadaşlar PHP sitesinde güvenlik kodunda hata var ya lütfen biri bana yardım etsin çok lazım.
Güvenlik kodu görükmüyor.Üyeliğin En son bölüm güvenlik kodu onu kaldırakta olur yani nasıl yapacaz lütfen yardım edin :$
Güvenlik koduna sağ tıklayınca linki bu kodların bulundu sayfa bir bakarmısınız? header.inc.php kodu alt tarafa yazdım:
simg.php
[syntax="php"]<?php

require_once( "../inc/header.inc.php" );

ob_start();
session_start();

$bgurl = rand(1, 3);
$cmd = $CONVERT;
$cmd .= ' images/bg'.$bgurl.'.png';
$cmd .= ' -crop 200x35+'. rand(0,180) . '+' . rand(0,315);
$cmd .= ' ./images/tmp/bg'.$bgurl.'.png';

exec($cmd);


$im = "images/tmp/bg".$bgurl.".png";

$chars = array("a");
$textstr = '';
for ($i = 0, $length = 8; $i < $length; $i++) {
$textstr .= $chars[rand(0, count($chars) - 1)];
}

$hashtext = md5($textstr);
$tmpname = $hashtext.'.png';
$_SESSION['strSec'] = $hashtext;


$font = "arial.ttf";
$size = rand(24, 36);
$hexValues = array('0','1','2','3','4');
$numHex = count($hexValues);
$color = '';
for ($i = 0; $i < 6; $i++) {
$color .= $hexValues[rand(0, $numHex-1)];
}

$gravities = array('West', 'Center', 'East');
$gravity = $gravities[rand(0, count($gravities)-1)];

$angle = rand(-10, 10);

$cmd = $CONVERT;
$cmd .= ' -font "'.$font.'"';
$cmd .= ' -fill "#'.$color.'"';
$cmd .= ' -pointsize '.$size;
$cmd .= ' -gravity "'.$gravity.'"';
$cmd .= ' -draw \'text 1,0 "'.$textstr.'"\'';
$cmd .= ' -rotate '.$angle;
$cmd .= ' ./'.$im.' ./images/tmp/'.$tmpname;

exec($cmd);
exec('rm -f "'.$im.'"');

header("Content-Type: image/png");
print fread(fopen('./images/tmp/'.$tmpname, 'r'), filesize('./images/tmp/'.$tmpname));
exec('rm -f "./images/tmp/'.$tmpname.'"');

ob_end_flush();
?>[/syntax]


HEADER.İNC.PHP


[syntax="php"]<?
/*
(C) AEwebworks Software Development Ltd., 2002-2003
IMPORTANT: This is a commercial software product and any kind of using it must agree
to the AEwebworks Software Development Ltd. license agreement. It can be found at
http://www.aewebworks.com/license.htm
This notice may not be removed from the source code.
*/

$site['ver'] = "4.0";
$site['build'] = "0000";
$site['title'] = "Sevgici";
$site['url'] = "http://localhost/sm/";
$admin_dir = "admin";
$site['url_admin'] = "http://localhost/sm/$admin_dir/";
$site['url_aff'] = "http://localhost/sm/aff/";
$site['email'] = "unutmadim_kii@hotmail.com";
$site['email_notify'] = "unutmadim_kii@hotmail.com";

$dir_dir = 'dir';
$site['dir_subdir'] = $dir_dir.'/';
$site['dir_url'] = $site['url'].$site['dir_subdir'];


$dir['root'] = "c:/appserv/www/sm/";
$dir['inc'] = "$dir[root]inc/";

$PRE_CHECKOUT_LINK = "$site[url]checkout/pre_checkout.php";
$ID_PIC_DIR = "$dir[root]id_img/";
$ID_PIC_URL = "$site[url]id_img/";
$ID_SOUND_DIR = "$dir[root]id_wav/";
$TMP_SOUND_DIR = "$dir[root]tmp/";
$TMP_SOUND_URL = "$site[url]tmp/";
$ID_VIDEO_DIR = "$dir[root]id_avi/";
$TMP_VIDEO_DIR = "$dir[root]tmp/";
$TMP_VIDEO_URL = "$site[url]tmp/";
$video_ext = "avi";
$MOGRIFY = "/usr/local/bin/mogrify";
$CONVERT = "/usr/local/bin/convert";
$COMPOSITE = "/usr/local/bin/composite";
$SOX = "/usr/bin/sox";

$BUG_REPORT_EMAIL = 'unutmadim_kii@hotmail.com';

$db['host'] = 'localhost';
$db['sock'] = '';
$db['port'] = '';
$db['user'] = 'root';
$db['passwd'] = '';
$db['db'] = 'as';

// Your 2checkout/PayPal/NETbilling/Authorize.net merchant ID
$MERCHANT_ID = "123456";

$doll = "$";

$en_sdating = 0;
$en_dir = 0;
$en_aff = 0;
$en_up = 0;
$en_ziploc = 0;
$en_inbox_notify = 1;

$pic_num = 5;

$vote_pic_max = 5;

$aeMedia = "aeAudio_v.1.0_install(Sevgici).exe";




// default template name

$skins_a = array ('act', 'adl', 'ae3', 'ae4', 'ae9', 'g4', 'def', 'dlt', 'frt', 'hip', 'mcl', 'rem', 'rec', 'rej');
$tmpl = "g4";

// change skin

if ($_GET['skin'] && in_array ($_GET['skin'], $skins_a))
{
$tmpl = $_GET['skin'];
setcookie( "skin", $_GET['skin'], 0, '/' );
}
else
if ($_COOKIE['skin'] && in_array ($_COOKIE['skin'], $skins_a))
$tmpl = $_COOKIE['skin'];


// include skin specific config file
require_once( "$dir[inc]config_design_$tmpl.inc.php" );

?>[/syntax]
muaythai
Üye
Üye
 
İleti: 7
Kayıt: 15.01.2006, 15:22

Internet Teknolojileri



Kimler çevrimiçi

Bu forumu görüntüleyenler: Kayıtlı kullanıcı yok ve 0 misafir

cron