Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by deZender.Net
- * @ deZender (PHP5 Decoder for ionCube Encoder)
- *
- * @ Version : 1.1.5.0
- * @ Author : DeZender
- * @ Release on : 09.06.2012
- * @ Official site : http://DeZender.Net
- *
- */
- function uyeKontrol() {
- if (!$_SESSION['userID']) {
- @header( 'location:page.php?act=login&backto=' . @urlencode( $_SERVER['QUERY_STRING'] ) );
- exit( '<script>window.location = \'page.php?act=login&backto=' . urlencode( $_SERVER['QUERY_STRING'] ) . '\';</script>' );
- }
- }
- function slink($act, $op = '') {
- global $siteConfig;
- return ($siteConfig['seoURL'] ? $act . '_sp' . ($op ? '__op-' . $op : '') . '.html' : 'page.php?act=' . $act . ($op ? '&op=' . $op : ''));
- }
- function sepetGoster() {
- $sepet = str_replace( '<a ', '<xa ', showBasket( false ) );
- $sepet = str_replace( '</a>', '</xa> ', $sepet );
- $out = '<div id="sepetGoster">' . generateTableBox( '', $sepet, 'SepetBlock' ) . '</div>';
- return $out;
- }
- function alisverisSirasi() {
- global $tamamlandi;
- if ($_GET['act'] == 'sepet') {
- $out = 536;
- }
- if ($_GET['act'] == 'satinal') {
- if ($_GET['op'] == 'adres') {
- $out = 537;
- }
- if (( $_GET['op'] == 'adres' && $_POST['data_address'] )) {
- $out = 538;
- }
- if ($_GET['paytype']) {
- $out = 539;
- }
- if ($tamamlandi) {
- $out = 540;
- }
- }
- return $out;
- }
- function checkLogin() {
- if (function_exists( myCheckLogin )) {
- return myCheckLogin( );
- }
- global $siteConfig;
- if (basename( $_SERVER['PHP_SELF'] ) == 'update.php') {
- return null;
- }
- if (basename( $_SERVER['PHP_SELF'] ) == 'ajaxLib.php') {
- return null;
- }
- if (basename( $_SERVER['PHP_SELF'] ) == 'eposta.php') {
- return null;
- }
- if (( basename( $_SERVER['PHP_SELF'] ) == 'page.php' && $_GET['act'] == 'register' )) {
- return null;
- }
- if (basename( $_SERVER['PHP_SELF'] ) == 'login.php') {
- if (( $_SESSION['loginStatus'] || !$siteConfig['sadeceUye'] )) {
- header( 'location:index.php' );
- exit( '<script>window.location = \'index.php\';</script>' );
- }
- return null;
- }
- if (( !$_SESSION['loginStatus'] && $siteConfig['sadeceUye'] )) {
- header( 'location:login.php' );
- exit( '<script>window.location = \'login.php\';</script>' );
- }
- }
- function generateSlide($filter, $template = 'UrunListShow') {
- $q = my_mysql_query( 'select ID from urun ' . $filter );
- $out = '<div class="spSlides">' . '
- ';
- if ($d = mysql_fetch_array( $q )) {
- $out .= '<div class="spSlide">' . getUrun( $d['ID'], $template ) . '</div>' . '
- ';
- }
- $out .= '</div>';
- }
- function loginGoster() {
- if (function_exists( myLoginGoster )) {
- return myLoginGoster( );
- }
- global $login_message;
- $login = loginScreen( $login_message, false );
- $out = '<div id="loginGoster">' . generateTableBox( '', $login, 'LoginBlock' ) . '</div>';
- if ($login_message) {
- $out .= '' . '<script>$(document).ready(function() { $(\'#imgLoginGoster\').click(); });</script>';
- }
- return $out;
- }
- function insertToUserLog($key, $keyDetail, $value) {
- if ($_SESSION['userID']) {
- if (!( my_mysql_query( 'insert into userLog values(null,\'' . $_SESSION['userID'] . ( '' . '\',\'' . $key . '\',\'' . $keyDetail . '\',\'' . $value . '\',\'' ) . $_SERVER['REMOTE_ADDR'] . '\',now())' ))) {
- exit( mysql_error( ) );
- (bool)true;
- }
- }
- }
- function setStats($type) {
- switch ($type) {
- case 'updateKategori': {
- if (!( my_mysql_query( 'update kategori set hit=(hit + 1) where ID = \'' . $_GET['catID'] . '\'' ))) {
- exit( mysql_error( ) );
- (bool)true;
- }
- }
- }
- }
- function selfURL() {
- $s = ((empty( $_SERVER['HTTPS'] ) ? '' : $_SERVER['HTTPS'] == 'on') ? 's' : '');
- $protocol = strleft( strtolower( $_SERVER['SERVER_PROTOCOL'] ), '/' ) . $s;
- $port = ($_SERVER['SERVER_PORT'] == '80' ? '' : ':' . $_SERVER['SERVER_PORT']);
- return $protocol . '://' . $_SERVER['SERVER_NAME'] . $port . '/' . $_SERVER['REQUEST_URI'];
- }
- function strleft($s1, $s2) {
- return substr( $s1, 0, strpos( $s1, $s2 ) );
- }
- .....................................................................
- .............................
- ..............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement