Advertisement
Guest User

Untitled

a guest
Feb 6th, 2013
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.24 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by deZender.Net
  5. * @ deZender (PHP5 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 1.1.5.0
  8. * @ Author : DeZender
  9. * @ Release on : 09.06.2012
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. function uyeKontrol() {
  15. if (!$_SESSION['userID']) {
  16. @header( 'location:page.php?act=login&backto=' . @urlencode( $_SERVER['QUERY_STRING'] ) );
  17. exit( '<script>window.location = \'page.php?act=login&backto=' . urlencode( $_SERVER['QUERY_STRING'] ) . '\';</script>' );
  18. }
  19.  
  20. }
  21.  
  22. function slink($act, $op = '') {
  23. global $siteConfig;
  24.  
  25. return ($siteConfig['seoURL'] ? $act . '_sp' . ($op ? '__op-' . $op : '') . '.html' : 'page.php?act=' . $act . ($op ? '&op=' . $op : ''));
  26. }
  27.  
  28. function sepetGoster() {
  29. $sepet = str_replace( '<a ', '<xa ', showBasket( false ) );
  30. $sepet = str_replace( '</a>', '</xa> ', $sepet );
  31. $out = '<div id="sepetGoster">' . generateTableBox( '', $sepet, 'SepetBlock' ) . '</div>';
  32. return $out;
  33. }
  34.  
  35. function alisverisSirasi() {
  36. global $tamamlandi;
  37.  
  38. if ($_GET['act'] == 'sepet') {
  39. $out = 536;
  40. }
  41.  
  42.  
  43. if ($_GET['act'] == 'satinal') {
  44. if ($_GET['op'] == 'adres') {
  45. $out = 537;
  46. }
  47.  
  48.  
  49. if (( $_GET['op'] == 'adres' && $_POST['data_address'] )) {
  50. $out = 538;
  51. }
  52.  
  53.  
  54. if ($_GET['paytype']) {
  55. $out = 539;
  56. }
  57.  
  58.  
  59. if ($tamamlandi) {
  60. $out = 540;
  61. }
  62. }
  63.  
  64. return $out;
  65. }
  66.  
  67. function checkLogin() {
  68. if (function_exists( myCheckLogin )) {
  69. return myCheckLogin( );
  70. }
  71.  
  72. global $siteConfig;
  73.  
  74. if (basename( $_SERVER['PHP_SELF'] ) == 'update.php') {
  75. return null;
  76. }
  77.  
  78.  
  79. if (basename( $_SERVER['PHP_SELF'] ) == 'ajaxLib.php') {
  80. return null;
  81. }
  82.  
  83.  
  84. if (basename( $_SERVER['PHP_SELF'] ) == 'eposta.php') {
  85. return null;
  86. }
  87.  
  88.  
  89. if (( basename( $_SERVER['PHP_SELF'] ) == 'page.php' && $_GET['act'] == 'register' )) {
  90. return null;
  91. }
  92.  
  93.  
  94. if (basename( $_SERVER['PHP_SELF'] ) == 'login.php') {
  95. if (( $_SESSION['loginStatus'] || !$siteConfig['sadeceUye'] )) {
  96. header( 'location:index.php' );
  97. exit( '<script>window.location = \'index.php\';</script>' );
  98. }
  99.  
  100. return null;
  101. }
  102.  
  103.  
  104. if (( !$_SESSION['loginStatus'] && $siteConfig['sadeceUye'] )) {
  105. header( 'location:login.php' );
  106. exit( '<script>window.location = \'login.php\';</script>' );
  107. }
  108.  
  109. }
  110.  
  111. function generateSlide($filter, $template = 'UrunListShow') {
  112. $q = my_mysql_query( 'select ID from urun ' . $filter );
  113. $out = '<div class="spSlides">' . '
  114. ';
  115.  
  116. if ($d = mysql_fetch_array( $q )) {
  117. $out .= '<div class="spSlide">' . getUrun( $d['ID'], $template ) . '</div>' . '
  118. ';
  119. }
  120.  
  121. $out .= '</div>';
  122. }
  123.  
  124. function loginGoster() {
  125. if (function_exists( myLoginGoster )) {
  126. return myLoginGoster( );
  127. }
  128.  
  129. global $login_message;
  130.  
  131. $login = loginScreen( $login_message, false );
  132. $out = '<div id="loginGoster">' . generateTableBox( '', $login, 'LoginBlock' ) . '</div>';
  133.  
  134. if ($login_message) {
  135. $out .= '' . '<script>$(document).ready(function() { $(\'#imgLoginGoster\').click(); });</script>';
  136. }
  137.  
  138. return $out;
  139. }
  140.  
  141. function insertToUserLog($key, $keyDetail, $value) {
  142. if ($_SESSION['userID']) {
  143. if (!( my_mysql_query( 'insert into userLog values(null,\'' . $_SESSION['userID'] . ( '' . '\',\'' . $key . '\',\'' . $keyDetail . '\',\'' . $value . '\',\'' ) . $_SERVER['REMOTE_ADDR'] . '\',now())' ))) {
  144. exit( mysql_error( ) );
  145. (bool)true;
  146. }
  147. }
  148.  
  149. }
  150.  
  151. function setStats($type) {
  152. switch ($type) {
  153. case 'updateKategori': {
  154. if (!( my_mysql_query( 'update kategori set hit=(hit + 1) where ID = \'' . $_GET['catID'] . '\'' ))) {
  155. exit( mysql_error( ) );
  156. (bool)true;
  157. }
  158. }
  159. }
  160.  
  161. }
  162.  
  163. function selfURL() {
  164. $s = ((empty( $_SERVER['HTTPS'] ) ? '' : $_SERVER['HTTPS'] == 'on') ? 's' : '');
  165. $protocol = strleft( strtolower( $_SERVER['SERVER_PROTOCOL'] ), '/' ) . $s;
  166. $port = ($_SERVER['SERVER_PORT'] == '80' ? '' : ':' . $_SERVER['SERVER_PORT']);
  167. return $protocol . '://' . $_SERVER['SERVER_NAME'] . $port . '/' . $_SERVER['REQUEST_URI'];
  168. }
  169.  
  170. function strleft($s1, $s2) {
  171. return substr( $s1, 0, strpos( $s1, $s2 ) );
  172. }
  173. .....................................................................
  174. .............................
  175. ..............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement