Waraxe IT Security Portal
Login or Register
July 27, 2024
Menu
Home
Logout
Discussions
Forums
Members List
IRC chat
Tools
Base64 coder
MD5 hash
CRC32 checksum
ROT13 coder
SHA-1 hash
URL-decoder
Sql Char Encoder
Affiliates
y3dips ITsec
Md5 Cracker
User Manuals
AlbumNow
Content
Content
Sections
FAQ
Top
Info
Feedback
Recommend Us
Search
Journal
Your Account
User Info
Welcome, Anonymous
Nickname
Password
(Register)

Membership:
Latest: MichaelSnaRe
New Today: 0
New Yesterday: 0
Overall: 9144

People Online:
Visitors: 228
Members: 0
Total: 228
Full disclosure
CyberDanube Security Research 20240722-0 | Multiple Vulnerabilities in Perten/PerkinElmer ProcessPlus
[KIS-2024-06] XenForo <= 2.2.15 (Template System) Remote Code Execution Vulnerability
[KIS-2024-05] XenForo <= 2.2.15 (Widget::actionSave) Cross-Site Request Forgery Vulnerability
CVE-2024-33326
CVE-2024-33327
CVE-2024-33328
CVE-2024-33329
CyberDanube Security Research 20240703-0 | Authenticated Command Injection in Helmholz Industrial Router REX100
SEC Consult SA-20240627-0 :: Local Privilege Escalation via MSI installer in SoftMaker Office / FreeOffice
SEC Consult SA-20240626-0 :: Multiple Vulnerabilities in Siemens Power Automation Products
Novel DoS Vulnerability Affecting WebRTC Media Servers
APPLE-SA-06-25-2024-1 AirPods Firmware Update 6A326, AirPods Firmware Update 6F8, and Beats Firmware Update 6F8
40 vulnerabilities in Toshiba Multi-Function Printers
17 vulnerabilities in Sharp Multi-Function Printers
SEC Consult SA-20240624-0 :: Multiple Vulnerabilities allowing complete bypass in Faronics WINSelect (Standard + Enterprise)
Log in Register Forum FAQ Memberlist Search
IT Security and Insecurity Portal

www.waraxe.us Forum Index -> PHP script decode requests -> please decode this file
Post new topicReply to topic View previous topic :: View next topic
please decode this file
PostPosted: Mon Feb 02, 2015 3:16 pm Reply with quote
devilhunter
Active user
Active user
Joined: Jul 12, 2013
Posts: 35




http://pastebin.com/Ciw8MSMP
View user's profile Send private message
Re: please decode this file
PostPosted: Tue Feb 03, 2015 11:32 am Reply with quote
vv456
Advanced user
Advanced user
Joined: Aug 24, 2012
Posts: 190




Decoded no fix...
Code:
<?php

class SimpleImage {
var $image = null;
var $image_type = null;

function load($filename) {
$image_info = getimagesize( $filename );
$this->image_type = $image_info[2];

if ($this->image_type == IMAGETYPE_JPEG) {
$this->image = imagecreatefromjpeg( $filename );
return null;
}


if ($this->image_type == IMAGETYPE_GIF) {
$this->image = imagecreatefromgif( $filename );
return null;
}


if ($this->image_type == IMAGETYPE_PNG) {
$this->image = imagecreatefrompng( $filename );
}

}

function save($filename, $image_type = IMAGETYPE_JPEG, $compression = 55, $permissions = null) {
if ($image_type == IMAGETYPE_JPEG) {
imagejpeg( $this->image, $filename, $compression );
}
else {
if ($image_type == IMAGETYPE_GIF) {
imagegif( $this->image, $filename );
}
else {
if ($image_type == IMAGETYPE_PNG) {
imagepng( $this->image, $filename );
}
}
}


if ($permissions != null) {
chmod( $filename, $permissions );
}

}

function output($image_type = IMAGETYPE_JPEG) {
if ($image_type == IMAGETYPE_JPEG) {
imagejpeg( $this->image );
return null;
}


if ($image_type == IMAGETYPE_GIF) {
imagegif( $this->image );
return null;
}


if ($image_type == IMAGETYPE_PNG) {
imagepng( $this->image );
}

}

function getWidth() {
return imagesx( $this->image );
}

function getHeight() {
return imagesy( $this->image );
}

function resizeToHeight($height) {
$ratio = $height / $this->getHeight( );
$width = $this->getWidth( ) * $ratio;
$this->resize( $width, $height );
}

function resizeToWidth($width) {
$ratio = $width / $this->getWidth( );
$height = $this->getheight( ) * $ratio;
$this->resize( $width, $height );
}

function scale($scale) {
$width = $this->getWidth( ) * $scale / 100;
$height = $this->getheight( ) * $scale / 100;
$this->resize( $width, $height );
}

function resize($width, $height) {
$new_image = imagecreatetruecolor( $width, $height );
imagecopyresampled( $new_image, $this->image, 0, 0, 0, 0, $width, $height, $this->getWidth( ), $this->getHeight( ) );
$this->image = $new_image;
}
}

class Sitemapbuilder {
function __construct() {
self;
$xmlDoc = new DOMDocument( '1.0', 'utf-8' );
self;
self;
self;
$url_set = $xmlDoc->appendChild( $xmlDoc->createElement( 'urlset' ) );
self;
self;
self;
$url_set->appendChild( $xmlDoc->createAttribute( 'xmlns' ) )->appendChild( $xmlDoc->createTextNode( 'http://www.sitemaps.org/schemas/sitemap/0.9' ) );
self;
self;
self;
$url_set->appendChild( $xmlDoc->createAttribute( 'xmlns:xsi' ) )->appendChild( $xmlDoc->createTextNode( 'http://www.w3.org/2001/XMLSchema-instance' ) );
self;
self;
self;
$url_set->appendChild( $xmlDoc->createAttribute( 'xsi:schemaLocation' ) )->appendChild( $xmlDoc->createTextNode( 'http://www.sitemaps.org/schemas/sitemap/0.9
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd' ) );
}

function get_sitemap() {
self;
$xmlDoc->formatOutput = true;
self;
return $xmlDoc->saveXML( );
}

function add_url($loc, $lastmod = '', $changefreq = '', $priority = '') {
self;
self;
$url = $url_set->appendChild( $xmlDoc->createElement( 'url' ) );

if ($loc != '') {
self;
$url->appendChild( $xmlDoc->createElement( 'loc', $loc ) );
}


if ($lastmod != '') {
self;
$url->appendChild( $xmlDoc->createElement( 'lastmod', $lastmod ) );
}


if ($changefreq != '') {
self;
$url->appendChild( $xmlDoc->createElement( 'changefreq', $changefreq ) );
}


if ($priority != '') {
self;
$url->appendChild( $xmlDoc->createElement( 'priority', $priority ) );
}

}
}

function sil($string) {
$search = array( chr( 145 ), chr( 146 ), chr( 147 ), chr( 148 ), chr( 151 ), '\\'', '"', '’', '‛' );
$replace = array( '', '', '', '', '', '', '', '', '' );
return str_replace( $search, $replace, $string );
}

function seokontrol($baslik_seo_orjinal, $tablo, $sutun) {
global $db;

$bulunanbasliklar = $db->get_results( 'SELECT ' . $sutun . ' FROM ' . $tablo . ' where ' . $sutun . ' like \'' . $baslik_seo_orjinal . '%\'', ARRAY_A );
$y = 283;

while ($y < count( $bulunanbasliklar )) {
$kontrolbaslik[] = $bulunanbasliklar[$y][$sutun];
++$y;
}


if (@in_array( $baslik_seo_orjinal, $kontrolbaslik )) {
$i = 284;
$baslikseo = $baslik_seo_orjinal . '_' . $i;

while (@in_array( $baslikseo, $kontrolbaslik )) {
++$i;
$baslikseo = $baslik_seo_orjinal . '_' . $i;
}

$kayitlimi = 284;
}
else {
$baslikseo = $baslik_seo_orjinal;
$kayitlimi = 283;
}

return array( 'kayit_seourl' => $baslikseo, 'kayitlimi' => $kayitlimi );
}

function dosya_dizin($klasorismi) {
$ay = date( 'm' );
$yil = date( 'Y' );
$kontrol = '../uploads/' . $klasorismi . '/' . $yil . '/' . $ay;

if (!file_exists( $kontrol )) {
$klasorolustur = mkdir( $kontrol, 493 );
}

return 'uploads/' . $klasorismi . '/' . $yil . '/' . $ay;
}

function film_extra($filmid, $alan) {
global $db;

$sonucal = $db->get_var( 'SELECT ' . $alan . ' FROM filmler_extra where extra_filmid=\'' . $filmid . '\' limit 0,1' );

if (!$sonucal) {
$sonucal = '0';
}

return $sonucal;
}

function yorumhtml($str) {
$bb[] = '#\[spoiler\](.*?)\[/spoiler\]#si';
$html[] = '<span class=\'text-red\'>--! Spoiler !--</span> \1 <span class=\'text-red\'>--! Spoiler !--</span>';
$bb[] = '#\[b\](.*?)\[/b\]#si';
$html[] = '<b>\1</b>';
$bb[] = '#\[i\](.*?)\[/i\]#si';
$html[] = '<i>\1</i>';
$bb[] = '#\[u\](.*?)\[/u\]#si';
$html[] = '<u>\1</u>';
$bb[] = '#\[hr\]#si';
$html[] = '<hr>';
$str = preg_replace( $bb, $html, $str );
$patern = '#\[url href=([^\]]*)\]([^\[]*)\[/url\]#i';
$replace = '<a rel="nofollow" href="\1" target="_blank" rel="nofollow">\2</a>';
$str = preg_replace( $patern, $replace, $str );
$patern = '#\[img\]([^\[]*)\[/img\]#i';
$replace = '<img src="\1" alt=""/>';
$str = preg_replace( $patern, $replace, $str );
return $str;
}

function ayar_oku($ayar) {
global $db;

$sonucal = $db->get_var( 'SELECT ayar_deger FROM ayarlar where ayar_isim=\'' . $ayar . '\' limit 0,1' );
return $sonucal;
}

function kisalt($metin, $uzunluk) {
return mb_substr( strip_tags( $metin ), 0, $uzunluk, 'UTF-8' );
}

function mailgonder($gonderenismi, $alicimailadres, $aliciismi, $mailkonusu, $mailicerigi) {
$siteayarlari = ayar_oku( 'sistem_ayarlari' );
$ayar = json_decode( $siteayarlari, true );
$mailtur = $ayar['mailgonderimsekli'];
$mail = new PHPMailer( );

if ($mailtur == 'gmail') {
$mail->Host = $ayar['gmailmailhost'];
$mail->Port = $ayar['gmailmailportu'];
$mail->Username = $ayar['gmailmailadres'];
$mail->Password = $ayar['gmailmailsifre'];
}
else {
$mail->Host = $ayar['smtphost'];
$mail->Port = $ayar['smtpportu'];
$mail->Username = $ayar['smtpmail'];
$mail->Password = $ayar['smtpsifre'];
}

$mail->IsSMTP( );
$mail->SMTPAuth = true;
$mail->SMTPSecure = 'tls';
$mail->SetFrom( $mail->Username, $gonderenismi );
$mail->AddAddress( $alicimailadres, $aliciismi );
$mail->CharSet = 'UTF-8';
$mail->Subject = $mailkonusu;
$content = $mailicerigi;
$mail->MsgHTML( $content );

if ($mail->Send( )) {
return true;
}

echo $mail->ErrorInfo;
return false;
}

function url_yap($url, $tur, $ekurl = null) {
if ($tur == 'film') {
$url_ver = $url . '.html';
}


if ($tur == 'kategori') {
$url_ver = '' . $url . '';
}


if ($tur == 'oyuncu') {
if ($ekurl == 1) {
$url_ver = 'yonetmen/' . $url . '.html';
}
else {
$url_ver = 'oyuncu/' . $url . '.html';
}
}


if ($tur == 'haber') {
$url_ver = 'haber/' . $url . '.html';
}


if ($tur == 'uye') {
$url_ver = 'uye/' . strtolower( $url ) . '.html';
}


if ($tur == 'sabitsayfa') {
$url_ver = $url . '-sayfasi.html';
}


if ($tur == 'etiket') {
$url_ver = 'etiket/' . $url . '';
}


if ($tur == 'yilurl') {
$url_ver = $url . '-yili-filmleri';
}


if ($tur == 'ulkeurl') {
$url_ver = 'ulke/' . seourl( $url );
}

return $url_ver;
}

function linkbul($link, $altislem = null) {
global $liste_icerik;

if ($altislem) {
return array( 'link' => $liste_icerik[$altislem]['link'], 'arakomut' => $liste_icerik[$altislem]['arakomut'], 'sirakomut' => $liste_icerik[$altislem]['sirakomut'], 'kategoriadi' => $liste_icerik[$altislem]['baslik'] );
}

$y = 256;

while ($y < count( $liste_icerik )) {
if ($link == $liste_icerik[$y]['link']) {
$secilisatir = $y;
}

++$y;
}

return array( 'link' => $liste_icerik[$secilisatir]['link'], 'arakomut' => $liste_icerik[$secilisatir]['arakomut'], 'sirakomut' => $liste_icerik[$secilisatir]['sirakomut'], 'kategoriadi' => $liste_icerik[$secilisatir]['baslik'] );
}

function tarih($tarih, $tur = null) {
$gunler = array( 'January' => 'Ocak', 'February' => 'Şubat', 'March' => 'Mart', 'April' => 'Nisan', 'May' => 'Mayıs', 'June' => 'Haziran', 'July' => 'Temmuz', 'August' => 'Ağustos', 'September' => 'Eylül', 'October' => 'Ekim', 'November' => 'Kasım', 'December' => 'Aralık', 'Monday' => 'Pazartesi', 'Tuesday' => 'Salı', 'Wednesday' => 'Çarşamba', 'Thursday' => 'Perşembe', 'Friday' => 'Cuma', 'Saturday' => 'Cumartesi', 'Sunday' => 'Pazar' );

if ($tur == 'gunlu') {
$tarihver = strtr( date( 'd F Y, l H:i:s', $tarih ), $gunler );
}


if ($tur == 'kisagunlu') {
$tarihver = strtr( date( 'd F Y', $tarih ), $gunler );
}


if ($tur == 'saatli') {
$tarihver = strtr( date( 'd F - H:i', $tarih ), $gunler );
}


if ($tur == 'simdi') {
$tarihver = strtr( date( 'd F Y, l H:i:s' ), $gunler );
}


if ($tur == 'sayisal') {
$tarihver = strtr( date( 'd.m.Y H:i:s' ), $gunler );
}

return $tarihver;
}

function kategori_al($katid, $durum = null, $kactane = null) {
global $db;

$idlerial = @explode( ',', $katid );

if ($kactane) {
$saydir = $kactane;
}
else {
$saydir = count( $idlerial );
}

$y = 287;

while ($y < $saydir) {
$katid = $idlerial[$y];
$al = $db->get_row( 'SELECT kategori_adi,kategori_seourl FROM kategoriler WHERE kategori_id = \'' . $katid . '\' limit 0,1 ' );

if ($al->kategori_adi) {
if ($durum == 'linksiz') {
$kategoriler[] = $al->kategori_adi;
}
else {
if ($durum == 'iconlu') {
$kategoriler[] = '<a href="modmain.php?i=filmlistesi&kategori=' . $katid . '" title="' . $al->kategori_adi . '" class="h4 text-green south" ><i class="fa fa-tasks"></i></a>';
}
else {
$kategoriler[] = '<a title="' . $al->kategori_adi . '" href="?i=filmlistesi&kategori=' . $katid . '">' . $al->kategori_adi . '</a>';
}
}
}

++$y;
}

return @implode( ' ', $kategoriler );
}

function dosya_indir($link, $name, $yol) {
$yolcuk = $yol . $name;
$curl = curl_init( $link );
$fopen = fopen( $yolcuk, 'w' );
$header[0] = 'Accept: text/xml,application/xml,application/xhtml+xml,';
$header->337 .= 'text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5';
$header[] = 'Cache-Control: max-age=0';
$header[] = 'Connection: keep-alive';
$header[] = 'Keep-Alive: 300';
$header[] = 'Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7';
$header[] = 'Accept-Language: tr-TR,tr;q=0.5';
$header[] = 'Pragma: ';
$referer = str_ireplace( 'http://', '', $link );
$refbol = @explode( '/', $referer );
$referer = 'http://' . $refbol[0];
curl_setopt( $curl, CURLOPT_HEADER, 0 );
curl_setopt( $curl, CURLOPT_RETURNTRANSFER, 1 );
curl_setopt( $curl, CURLOPT_HTTPHEADER, $header );
curl_setopt( $curl, CURLOPT_REFERER, $referer );
curl_setopt( $curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0 );
curl_setopt( $curl, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT'] );
curl_setopt( $curl, CURLOPT_TIMEOUT, 5 );
curl_setopt( $curl, CURLOPT_SSL_VERIFYPEER, false );
curl_setopt( $curl, CURLOPT_FILE, $fopen );
curl_exec( $curl );
curl_close( $curl );
fclose( $fopen );
}

$text = function seourl($text) {;
$text = $text = $dizi2 = array( 'I', 'S', '-', 'U', 'C', 'G', 'O', 'i', 's', 'u', 'c', 'g', 'o' );
$text = str_ireplace( '----', '-', $text );
$text = str_ireplace( '---', '-', $text );
$text = str_ireplace( '--', '-', $text );
ltrim( $text, '-' );
$text = trim( $text );
rtrim( $text, '-' );
$text = $dizi1 = array( 'İ', 'Ş', ' ', 'Ãœ', 'Ç', 'Ğ', 'Ö', 'ı', 'ş', 'ü', 'ç', 'ğ', 'ö' );
$text = trim( $text );
preg_replace( '@[^A-Za-z0-9\-_]+@i', '', $text );
$text = str_ireplace( $dizi1, $dizi2, $text );
strtolower( $text );
$text = str_ireplace( '-----', '-', $text );
return $text;
}

function getir($url) {
if (function_exists( 'curl_init' )) {
$ch = curl_init( $url );
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
curl_setopt( $ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT'] );
curl_setopt( $ch, CURLOPT_TIMEOUT, 12 );
curl_exec( $ch );
$curlsetret = curl_setopt( $ch, CURLOPT_REFERER, $GLOBALS['refoksend'] );
return $curlsetret;
}

return file_get_contents( $url );
}

function baslikli_getir($url, $headeryonlen = null) {
$curl = curl_init( );
$header[0] = 'Accept: text/xml,application/xml,application/xhtml+xml,';
$header->294 .= 'text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5';
$header[] = 'Cache-Control: max-age=0';
$header[] = 'Connection: keep-alive';
$header[] = 'Keep-Alive: 300';
$header[] = 'Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7';
$header[] = 'Accept-Language: tr-TR,tr;q=0.5';
$header[] = 'Pragma: ';
curl_setopt( $curl, CURLOPT_URL, $url );
curl_setopt( $curl, CURLOPT_USERAGENT, 'Googlebot/2.1 (+http://www.google.com/bot.html)' );
curl_setopt( $curl, CURLOPT_HTTPHEADER, $header );
curl_setopt( $curl, CURLOPT_REFERER, 'http://www.google.com' );
curl_setopt( $curl, CURLOPT_ENCODING, 'gzip,deflate' );
curl_setopt( $curl, CURLOPT_SSL_VERIFYPEER, false );
curl_setopt( $curl, CURLOPT_AUTOREFERER, true );
curl_setopt( $curl, CURLOPT_RETURNTRANSFER, 1 );
curl_setopt( $curl, CURLOPT_TIMEOUT, 10 );
$html = curl_exec( $curl );
curl_close( $curl );
return $html;
}

function resim_kontrol($resim) {
$ch = curl_init( $resim );
curl_setopt( $ch, CURLOPT_HEADER, 1 );
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 );
$data = curl_exec( $ch );
curl_close( $ch );
return substr( $data, 9, 3 );
}

function safedb($mVar) {
if (is_array( $mVar )) {
foreach ($mVar as $gVal => $gVar) {

if (!is_array( $gVar )) {
$mVar[$gVal] = urldecode( addslashes( stripslashes( stripslashes( trim( htmlspecialchars_decode( $gVar ) ) ) ) ) );
continue;
}

$mVar[$gVal] = safedb( $gVar );
}
}
else {
$mVar = urldecode( addslashes( stripslashes( stripslashes( trim( htmlspecialchars_decode( $mVar ) ) ) ) ) );
}

return $mVar;
}

function url_to_iso($url = '') {
$character = array( '&', '\\'', '"', '<', '>', ' ', 'ğ', 'Ğ', 'ı', 'İ', 'ş', 'Ş', 'ç', 'Ç', 'ö', 'Ö', 'ü', 'Ãœ' );
$escape = array( '%26', '%27', '%20', '%22', '%3C', '%3E', '%F0', '%D0', '%FD', '%DD', '%FE', '%DE', '%E7', '%C7', '%F6', '%D6', '%FC', '%DC' );
return str_replace( $character, $escape, $url );
}


if (preg_match( '#' . basename( __FILE__ ) . '#', $_SERVER['PHP_SELF'] )) {
exit( '' );
}

$refoksend = getenv( 'HTTP_HOST' );
$simdi = time( );
@set_time_limit( 0 );
$gecerlilik = 2109;

if (isset( $_SESSION['zamanasimi'] )) {
$session_suresi = time( ) - $_SESSION['zamanasimi'];

if ($gecerlilik < $session_suresi) {
session_destroy( );
header( 'Location: index.php' );
}
}

$_SESSION['zamanasimi'] = time( );

if ($_SESSION['lisanskontrol'] != 1) {
$siteadres = getenv( 'HTTP_HOST' );
$siteadres = str_replace( 'http://', '', $siteadres );
$siteadres = str_replace( 'www.', '', $siteadres );
$tpl_name = getir( 'http://aydizayn.net/System/lisanskontrol.php?site=' . $siteadres . '&ip=' . $_SERVER['REMOTE_ADDR'] );

if (!$tpl_name) {
unset( $lisansdogrula );
$_SESSION['lisanskontrol'] == 1;
$dataanasayfa = $tpl->draw( 'lisansgecersiz', $return_string = true );
exit( '' );
}
}

$_GET = safedb( $_GET );
$_POST = safedb( $_POST );
$_SESSION = safedb( $_SESSION );
$_COOKIE = safedb( $_COOKIE );
?>
View user's profile Send private message
PostPosted: Wed Feb 11, 2015 8:57 am Reply with quote
devilhunter
Active user
Active user
Joined: Jul 12, 2013
Posts: 35




Thanks
View user's profile Send private message
PostPosted: Thu Feb 19, 2015 12:13 pm Reply with quote
JustSomeDude
Beginner
Beginner
Joined: Feb 19, 2015
Posts: 2




Code:
<?php
if( preg_match("#" . basename(__FILE__) . "#", $_SERVER["PHP_SELF"]) )
{
exit( "" );
}

$refoksend = getenv("HTTP_HOST");
$simdi = time();
@set_time_limit(0);
$gecerlilik = 1800;
if( isset($_SESSION["zamanasimi"]) )
{
$session_suresi = time() - $_SESSION["zamanasimi"];
if( $gecerlilik < $session_suresi )
{
session_destroy();
header("Location: index.php");
}

}

$_SESSION["zamanasimi"] = time();
if( $_SESSION["lisanskontrol"] != 1 )
{
$siteadres = getenv("HTTP_HOST");
$siteadres = str_replace("http://", "", $siteadres);
$siteadres = str_replace("www.", "", $siteadres);
$tpl_name = getir("http://aydizayn.net/System/lisanskontrol.php?site=" . $siteadres . "&ip=" . $_SERVER["REMOTE_ADDR"]);
if( !$tpl_name )
{
unset($lisansdogrula);
$_SESSION["lisanskontrol"] == 1;
$dataanasayfa = $tpl->draw("lisansgecersiz", $return_string = true);
exit( "" );
}

}

$_GET = safedb($_GET);
$_POST = safedb($_POST);
$_SESSION = safedb($_SESSION);
$_COOKIE = safedb($_COOKIE);

class SimpleImage
{
public $image = NULL;
public $image_type = NULL;

public function load($filename)
{
$image_info = getimagesize($filename);
$this->image_type = $image_info[2];
if( $this->image_type == IMAGETYPE_JPEG )
{
$this->image = imagecreatefromjpeg($filename);
}
else
{
if( $this->image_type == IMAGETYPE_GIF )
{
$this->image = imagecreatefromgif($filename);
}
else
{
if( $this->image_type == IMAGETYPE_PNG )
{
$this->image = imagecreatefrompng($filename);
}

}

}

}

public function save($filename, $image_type = IMAGETYPE_JPEG, $compression = 55, $permissions = null)
{
if( $image_type == IMAGETYPE_JPEG )
{
imagejpeg($this->image, $filename, $compression);
}
else
{
if( $image_type == IMAGETYPE_GIF )
{
imagegif($this->image, $filename);
}
else
{
if( $image_type == IMAGETYPE_PNG )
{
imagepng($this->image, $filename);
}

}

}

if( $permissions != null )
{
chmod($filename, $permissions);
}

}

public function output($image_type = IMAGETYPE_JPEG)
{
if( $image_type == IMAGETYPE_JPEG )
{
imagejpeg($this->image);
}
else
{
if( $image_type == IMAGETYPE_GIF )
{
imagegif($this->image);
}
else
{
if( $image_type == IMAGETYPE_PNG )
{
imagepng($this->image);
}

}

}

}

public function getWidth()
{
return imagesx($this->image);
}

public function getHeight()
{
return imagesy($this->image);
}

public function resizeToHeight($height)
{
$ratio = $height / $this->getHeight();
$width = $this->getWidth() * $ratio;
$this->resize($width, $height);
}

public function resizeToWidth($width)
{
$ratio = $width / $this->getWidth();
$height = $this->getheight() * $ratio;
$this->resize($width, $height);
}

public function scale($scale)
{
$width = ($this->getWidth() * $scale) / 100;
$height = ($this->getheight() * $scale) / 100;
$this->resize($width, $height);
}

public function resize($width, $height)
{
$new_image = imagecreatetruecolor($width, $height);
imagecopyresampled($new_image, $this->image, 0, 0, 0, 0, $width, $height, $this->getWidth(), $this->getHeight());
$this->image = $new_image;
}

}


class Sitemapbuilder
{
private static $xmlDoc = NULL;
private static $url_set = NULL;

public function __construct()
{
self::$xmlDoc = new DOMDocument("1.0", "utf-8");
self::$url_set = self::$xmlDoc->appendChild(self::$xmlDoc->createElement("urlset"));
self::$url_set->appendChild(self::$xmlDoc->createAttribute("xmlns"))->appendChild(self::$xmlDoc->createTextNode("http://www.sitemaps.org/schemas/sitemap/0.9"));
self::$url_set->appendChild(self::$xmlDoc->createAttribute("xmlns:xsi"))->appendChild(self::$xmlDoc->createTextNode("http://www.w3.org/2001/XMLSchema-instance"));
self::$url_set->appendChild(self::$xmlDoc->createAttribute("xsi:schemaLocation"))->appendChild(self::$xmlDoc->createTextNode("http://www.sitemaps.org/schemas/sitemap/0.9\n\t\t\t\thttp://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"));
}

public function get_sitemap()
{
self::$xmlDoc->formatOutput = true;
return self::$xmlDoc->saveXML();
}

public function add_url($loc, $lastmod = "", $changefreq = "", $priority = "")
{
$url = self::$url_set->appendChild(self::$xmlDoc->createElement("url"));
if( $loc != "" )
{
$url->appendChild(self::$xmlDoc->createElement("loc", $loc));
}

if( $lastmod != "" )
{
$url->appendChild(self::$xmlDoc->createElement("lastmod", $lastmod));
}

if( $changefreq != "" )
{
$url->appendChild(self::$xmlDoc->createElement("changefreq", $changefreq));
}

if( $priority != "" )
{
$url->appendChild(self::$xmlDoc->createElement("priority", $priority));
}

}

}

function sil($string)
{
$search = array( chr(145), chr(146), chr(147), chr(148), chr(151), "'", "\"", "’", "‛" );
$replace = array( "", "", "", "", "", "", "", "", "" );
return str_replace($search, $replace, $string);
}

function seokontrol($baslik_seo_orjinal, $tablo, $sutun)
{
global $db;
$bulunanbasliklar = $db->get_results("" . "SELECT " . $sutun . " FROM " . $tablo . " where " . $sutun . " like '" . $baslik_seo_orjinal . "%'", ARRAY_A);
for( $y = 0; $y < count($bulunanbasliklar); $y++ )
{
$kontrolbaslik[] = $bulunanbasliklar[$y][$sutun];
}
if( @in_array($baslik_seo_orjinal, $kontrolbaslik) )
{
$i = 1;
$baslikseo = $baslik_seo_orjinal . "_" . $i;
while( @in_array($baslikseo, $kontrolbaslik) )
{
$i++;
$baslikseo = $baslik_seo_orjinal . "_" . $i;
}
$kayitlimi = 1;
}
else
{
$baslikseo = $baslik_seo_orjinal;
$kayitlimi = 0;
}

return array( "kayit_seourl" => $baslikseo, "kayitlimi" => $kayitlimi );
}

function dosya_dizin($klasorismi)
{
$ay = date("m");
$yil = date("Y");
$kontrol = "" . "../uploads/" . $klasorismi . "/" . $yil . "/" . $ay;
if( !file_exists($kontrol) )
{
$klasorolustur = mkdir($kontrol, 493);
}

return "" . "uploads/" . $klasorismi . "/" . $yil . "/" . $ay;
}

function film_extra($filmid, $alan)
{
global $db;
$sonucal = $db->get_var("" . "SELECT " . $alan . " FROM filmler_extra where extra_filmid='" . $filmid . "' limit 0,1");
if( !$sonucal )
{
$sonucal = "0";
}

return $sonucal;
}

function yorumhtml($str)
{
$bb[] = "#\\[spoiler\\](.*?)\\[/spoiler\\]#si";
$html[] = "<span class='text-red'>--! Spoiler !--</span> \\1 <span class='text-red'>--! Spoiler !--</span>";
$bb[] = "#\\[b\\](.*?)\\[/b\\]#si";
$html[] = "<b>\\1</b>";
$bb[] = "#\\[i\\](.*?)\\[/i\\]#si";
$html[] = "<i>\\1</i>";
$bb[] = "#\\[u\\](.*?)\\[/u\\]#si";
$html[] = "<u>\\1</u>";
$bb[] = "#\\[hr\\]#si";
$html[] = "<hr>";
$str = preg_replace($bb, $html, $str);
$patern = "#\\[url href=([^\\]]*)\\]([^\\[]*)\\[/url\\]#i";
$replace = "<a rel=\"nofollow\" href=\"\\1\" target=\"_blank\" rel=\"nofollow\">\\2</a>";
$str = preg_replace($patern, $replace, $str);
$patern = "#\\[img\\]([^\\[]*)\\[/img\\]#i";
$replace = "<img src=\"\\1\" alt=\"\"/>";
$str = preg_replace($patern, $replace, $str);
return $str;
}

function ayar_oku($ayar)
{
global $db;
$sonucal = $db->get_var("" . "SELECT ayar_deger FROM ayarlar where ayar_isim='" . $ayar . "' limit 0,1");
return $sonucal;
}

function kisalt($metin, $uzunluk)
{
return mb_substr(strip_tags($metin), 0, $uzunluk, "UTF-8");
}

function mailgonder($gonderenismi, $alicimailadres, $aliciismi, $mailkonusu, $mailicerigi)
{
$siteayarlari = ayar_oku("sistem_ayarlari");
$ayar = json_decode($siteayarlari, true);
$mailtur = $ayar["mailgonderimsekli"];
$mail = new PHPMailer();
if( $mailtur == "gmail" )
{
$mail->Host = $ayar["gmailmailhost"];
$mail->Port = $ayar["gmailmailportu"];
$mail->Username = $ayar["gmailmailadres"];
$mail->Password = $ayar["gmailmailsifre"];
}
else
{
$mail->Host = $ayar["smtphost"];
$mail->Port = $ayar["smtpportu"];
$mail->Username = $ayar["smtpmail"];
$mail->Password = $ayar["smtpsifre"];
}

$mail->IsSMTP();
$mail->SMTPAuth = true;
$mail->SMTPSecure = "tls";
$mail->SetFrom($mail->Username, $gonderenismi);
$mail->AddAddress($alicimailadres, $aliciismi);
$mail->CharSet = "UTF-8";
$mail->Subject = $mailkonusu;
$content = $mailicerigi;
$mail->MsgHTML($content);
if( $mail->Send() )
{
return true;
}

echo $mail->ErrorInfo;
return false;
}

function url_yap($url, $tur, $ekurl = null)
{
if( $tur == "film" )
{
$url_ver = $url . ".html";
}

if( $tur == "kategori" )
{
$url_ver = "" . $url . "";
}

if( $tur == "oyuncu" )
{
if( $ekurl == 1 )
{
$url_ver = "yonetmen/" . $url . ".html";
}
else
{
$url_ver = "oyuncu/" . $url . ".html";
}

}

if( $tur == "haber" )
{
$url_ver = "haber/" . $url . ".html";
}

if( $tur == "uye" )
{
$url_ver = "uye/" . strtolower($url) . ".html";
}

if( $tur == "sabitsayfa" )
{
$url_ver = $url . "-sayfasi.html";
}

if( $tur == "etiket" )
{
$url_ver = "etiket/" . $url . "";
}

if( $tur == "yilurl" )
{
$url_ver = $url . "-yili-filmleri";
}

if( $tur == "ulkeurl" )
{
$url_ver = "ulke/" . seourl($url);
}

return $url_ver;
}

function linkbul($link, $altislem = null)
{
global $liste_icerik;
if( $altislem )
{
return array( "link" => $liste_icerik[$altislem]["link"], "arakomut" => $liste_icerik[$altislem]["arakomut"], "sirakomut" => $liste_icerik[$altislem]["sirakomut"], "kategoriadi" => $liste_icerik[$altislem]["baslik"] );
}

for( $y = 0; $y < count($liste_icerik); $y++ )
{
if( $link == $liste_icerik[$y]["link"] )
{
$secilisatir = $y;
}

}
return array( "link" => $liste_icerik[$secilisatir]["link"], "arakomut" => $liste_icerik[$secilisatir]["arakomut"], "sirakomut" => $liste_icerik[$secilisatir]["sirakomut"], "kategoriadi" => $liste_icerik[$secilisatir]["baslik"] );
}

function tarih($tarih, $tur = null)
{
$gunler = array( "January" => "Ocak", "February" => "Şubat", "March" => "Mart", "April" => "Nisan", "May" => "Mayıs", "June" => "Haziran", "July" => "Temmuz", "August" => "Ağustos", "September" => "Eylül", "October" => "Ekim", "November" => "Kasım", "December" => "Aralık", "Monday" => "Pazartesi", "Tuesday" => "Salı", "Wednesday" => "Çarşamba", "Thursday" => "Perşembe", "Friday" => "Cuma", "Saturday" => "Cumartesi", "Sunday" => "Pazar" );
if( $tur == "gunlu" )
{
$tarihver = strtr(date("d F Y, l H:i:s", $tarih), $gunler);
}

if( $tur == "kisagunlu" )
{
$tarihver = strtr(date("d F Y", $tarih), $gunler);
}

if( $tur == "saatli" )
{
$tarihver = strtr(date("d F - H:i", $tarih), $gunler);
}

if( $tur == "simdi" )
{
$tarihver = strtr(date("d F Y, l H:i:s"), $gunler);
}

if( $tur == "sayisal" )
{
$tarihver = strtr(date("d.m.Y H:i:s"), $gunler);
}

return $tarihver;
}

function kategori_al($katid, $durum = null, $kactane = null)
{
global $db;
$idlerial = @explode(",", $katid);
if( $kactane )
{
$saydir = $kactane;
}
else
{
$saydir = count($idlerial);
}

for( $y = 0; $y < $saydir; $y++ )
{
$katid = $idlerial[$y];
$al = $db->get_row("" . "SELECT kategori_adi,kategori_seourl FROM kategoriler WHERE kategori_id = '" . $katid . "' limit 0,1 ");
if( $al->kategori_adi )
{
if( $durum == "linksiz" )
{
$kategoriler[] = $al->kategori_adi;
}
else
{
if( $durum == "iconlu" )
{
$kategoriler[] = "<a href=\"modmain.php?i=filmlistesi&kategori=" . $katid . "\" title=\"" . $al->kategori_adi . "\" class=\"h4 text-green south\" ><i class=\"fa fa-tasks\"></i></a>";
}
else
{
$kategoriler[] = "<a title=\"" . $al->kategori_adi . "\" href=\"?i=filmlistesi&kategori=" . $katid . "\">" . $al->kategori_adi . "</a>";
}

}

}

}
return @implode(" ", $kategoriler);
}

function dosya_indir($link, $name, $yol)
{
$yolcuk = $yol . $name;
$curl = curl_init($link);
$fopen = fopen($yolcuk, "w");
$header[0] = "Accept: text/xml,application/xml,application/xhtml+xml,";
$header[0] .= "text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5";
$header[] = "Cache-Control: max-age=0";
$header[] = "Connection: keep-alive";
$header[] = "Keep-Alive: 300";
$header[] = "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
$header[] = "Accept-Language: tr-TR,tr;q=0.5";
$header[] = "Pragma: ";
$referer = str_ireplace("http://", "", $link);
$refbol = @explode("/", $referer);
$referer = "http://" . $refbol[0];
curl_setopt($curl, CURLOPT_HEADER, 0);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_HTTPHEADER, $header);
curl_setopt($curl, CURLOPT_REFERER, $referer);
curl_setopt($curl, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);
curl_setopt($curl, CURLOPT_USERAGENT, $_SERVER["HTTP_USER_AGENT"]);
curl_setopt($curl, CURLOPT_TIMEOUT, 5);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($curl, CURLOPT_FILE, $fopen);
curl_exec($curl);
curl_close($curl);
fclose($fopen);
}

function seourl($text)
{
$text = trim($text);
$dizi1 = array( "İ", "Ş", " ", "Ãœ", "Ç", "Ğ", "Ö", "ı", "ş", "ü", "ç", "ğ", "ö" );
$dizi2 = array( "I", "S", "-", "U", "C", "G", "O", "i", "s", "u", "c", "g", "o" );
$text = str_ireplace($dizi1, $dizi2, $text);
$text = str_ireplace("-----", "-", $text);
$text = str_ireplace("----", "-", $text);
$text = str_ireplace("---", "-", $text);
$text = str_ireplace("--", "-", $text);
$text = ltrim($text, "-");
$text = rtrim($text, "-");
$text = trim($text);
$text = preg_replace("@[^A-Za-z0-9\\-_]+@i", "", $text);
$text = strtolower($text);
return $text;
}

function getir($url)
{
if( function_exists("curl_init") )
{
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER["HTTP_USER_AGENT"]);
curl_setopt($ch, CURLOPT_REFERER, $GLOBALS["refoksend"]);
curl_setopt($ch, CURLOPT_TIMEOUT, 12);
$curlsetret = curl_exec($ch);
return $curlsetret;
}

return file_get_contents($url);
}

function baslikli_getir($url, $headeryonlen = null)
{
$curl = curl_init();
$header[0] = "Accept: text/xml,application/xml,application/xhtml+xml,";
$header[0] .= "text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5";
$header[] = "Cache-Control: max-age=0";
$header[] = "Connection: keep-alive";
$header[] = "Keep-Alive: 300";
$header[] = "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
$header[] = "Accept-Language: tr-TR,tr;q=0.5";
$header[] = "Pragma: ";
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_USERAGENT, "Googlebot/2.1 (+http://www.google.com/bot.html)");
curl_setopt($curl, CURLOPT_HTTPHEADER, $header);
curl_setopt($curl, CURLOPT_REFERER, "http://www.google.com");
curl_setopt($curl, CURLOPT_ENCODING, "gzip,deflate");
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($curl, CURLOPT_AUTOREFERER, true);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_TIMEOUT, 10);
$html = curl_exec($curl);
curl_close($curl);
return $html;
}

function resim_kontrol($resim)
{
$ch = curl_init($resim);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$data = curl_exec($ch);
curl_close($ch);
return substr($data, 9, 3);
}

function safedb($mVar)
{
if( is_array($mVar) )
{
foreach( $mVar as $gVal => $gVar )
{
if( !is_array($gVar) )
{
$mVar[$gVal] = urldecode(addslashes(stripslashes(stripslashes(trim(htmlspecialchars_decode($gVar))))));
}
else
{
$mVar[$gVal] = safedb($gVar);
}

}
}
else
{
$mVar = urldecode(addslashes(stripslashes(stripslashes(trim(htmlspecialchars_decode($mVar))))));
}

return $mVar;
}

function url_to_iso($url = "")
{
$character = array( "&", "'", "\"", "<", ">", " ", "ğ", "Ğ", "ı", "İ", "ş", "Ş", "ç", "Ç", "ö", "Ö", "ü", "Ãœ" );
$escape = array( "%26", "%27", "%20", "%22", "%3C", "%3E", "%F0", "%D0", "%FD", "%DD", "%FE", "%DE", "%E7", "%C7", "%F6", "%D6", "%FC", "%DC" );
return str_replace($character, $escape, $url);
}

View user's profile Send private message
please decode this file
www.waraxe.us Forum Index -> PHP script decode requests
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT
Page 1 of 1

Post new topicReply to topic


Powered by phpBB © 2001-2008 phpBB Group



Space Raider game for Android, free download - Space Raider gameplay video - Zone Raider mobile games
All logos and trademarks in this site are property of their respective owner. The comments and posts are property of their posters, all the rest (c) 2004-2024 Janek Vind "waraxe"
Page Generation: 0.239 Seconds