Advertisement
Guest User

Untitled

a guest
Apr 29th, 2011
294
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.74 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by deZender.Net
  5. * @ deZender (PHP5 Decoder for Zend Encoder/SafeGuard & PhpExpress)
  6. *
  7. * @ Version : 1.1.1.0
  8. * @ Author : DeZender
  9. * @ Release on : 2011.01.04
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. function Encrypt($string) {
  15. $result = '';
  16. $key = 'K#*$^&@HJBBSAD*&@#$';
  17.  
  18. for ($i = 1; $i <= strlen( $string ); ++$i) {
  19. $char = substr( $string, $i - 1, 1 );
  20. $keychar = substr( $key, $i % strlen( $key ) - 1, 1 );
  21. $char = chr( ord( $char ) + ord( $keychar ) );
  22. $result .= $char;
  23. }
  24.  
  25. return $result;
  26. }
  27.  
  28. function Decrypt($string) {
  29. $result = '';
  30. $key = 'K#*$^&@HJBBSAD*&@#$';
  31.  
  32. for ($i = 1; $i <= strlen( $string ); ++$i) {
  33. $char = substr( $string, $i - 1, 1 );
  34. $keychar = substr( $key, $i % strlen( $key ) - 1, 1 );
  35. $char = chr( ord( $char ) - ord( $keychar ) );
  36. $result .= $char;
  37. }
  38.  
  39. return $result;
  40. }
  41.  
  42. function getLicenceCheckError() {
  43. return '
  44. <style type="text/css">
  45. #error {
  46. font-family:Verdana,Helvetica,sans-serif;
  47. font-size:0.83em;
  48. font-weight: bold;
  49. width: 500px;
  50. height: 20px;
  51. color: #000;
  52. border-width: 1px;
  53. padding-left: 10px;
  54. line-height: 20px;
  55. border-style: solid;
  56. background-color: #ffebe8;
  57. border-color: #c00;
  58. }
  59. </style>
  60. <div id="error">Error checking licence</div>
  61. ';
  62. }
  63.  
  64. function newSite() {
  65. $check = @file_get_contents( @sprintf( 'http://www.scriptizzle.com/licensing/newsite.php?domain=%s', $_SERVER['HTTP_HOST'] ) );
  66.  
  67. if ($check === false) {
  68. $check = getLicenceCheckError( );
  69. }
  70.  
  71. return $check;
  72. }
  73.  
  74. function checkLicence() {
  75. return @file_get_contents( @sprintf( 'http://www.scriptizzle.com/licensing/check.php?domain=%s', $_SERVER['HTTP_HOST'] ) );
  76. }
  77.  
  78. function writeLicenceKey($key, $time) {
  79. $fp = fopen( 'index.key', 'w' );
  80. fwrite( $fp, Encrypt( $time . '(||)' . $key . '(||)' . $time ) );
  81. fclose( $fp );
  82. }
  83.  
  84. function get_js_02() {
  85. ob_start( );
  86. echo '$(document).ready(function() {
  87. $(\'div.user_login input[name="usr_email"]\').watermark(\'user@domain.tld\');
  88. $(\'div.user_login input[name="usr_pass"]\').watermark(\'password\');
  89. $(\'div.user_login div.nspr.inneri.nblu\').hover(function(){$(\'input\',this).fadeTo(400,1);},
  90. function(){$(\'input\',this).fadeTo(400,.7);});
  91. $(\'div.user_login form\').submit(function() {
  92. var email = $(\'input[name="usr_email"]\', this).val(),
  93. pass = $(\'input[name="usr_pass"]\', this).val();
  94. if (!email || !pass || email == \'user@domain.tld\' || pass == \'password\') {
  95. alert(\'Please complete both fields in order to login\');
  96. return false;
  97. }
  98. });
  99.  
  100. ';
  101.  
  102. if (System::getuser( )->loggedIn( ) != 2) {
  103. echo ' $(\'div.shrink div.nspr.inneri.nblu input\').fadeTo(0,.7);
  104. $(\'div.shrink div.nspr.inneri.nblu\').hover(function(){$(\'input\',this).fadeTo(400,.9);},
  105. function(){$(\'input\',this).fadeTo(400,.7);});
  106. var _adb_url = $(\'div.shrink input[name="adb_url"]\');
  107. _adb_url.val(\'http://\')//.watermark(\'http://\')
  108. .focus(function(){$(\'div.shrink div.outeri\').addClass(\'over\');})
  109. .bind(\'blur change\',function(){$(\'div.shrink div.outeri\').removeClass(\'over\')}).width(569);
  110.  
  111. var _updateLinkEvents = function() {
  112. $.ajaxSetup({cache:false});
  113. $(\'table.links_table tr[id^="lid"] a#edit\').click(function() {
  114. var _e = $(this).parent().parent();
  115. var _t = _e.attr(\'id\').substr(4);
  116. var spanrtitle = $(\'span#rtitle\',_e), spanlong = $(\'span#long\',_e), tdadtype = $(\'td#adtype\',_e), _tdlast = $(\'td:last\',_e);
  117. var adtype = tdadtype.text();
  118. spanrtitle.css(\'display\', \'block\')
  119. .html(\'<span style="width:50px;display:inline-block;font-size:12px;">Title:</span><input type="text" name="title" size="30" value="\'+spanrtitle.text()+\'" />\');
  120. spanlong.html(\'<span style="width:50px;display:inline-block;font-size:12px;">Website:</span><input type="text" name="website" size="30" value="\'+spanlong.text()+\'" />\');
  121. tdadtype.html(\'<select name="adtype">\'
  122. + \'<option value="1"\'+(adtype==\'Interstitial\'?\' selected\':\'\')+\'>Interstitial</option>\'
  123. + \'<option value="2"\'+(adtype==\'Top Banner\'?\' selected\':\'\')+\'>Top Banner</option>\'
  124. + \'<option value="3"\'+(adtype==\'None\'?\' selected\':\'\')+\'>None</option>\'
  125. + \'</select>\');
  126. var edit_btn = $(\'<input type="submit" value="Edit" />\');
  127. _tdlast.children().hide();
  128. _tdlast.append(edit_btn);
  129. edit_btn.click(function() {
  130. var website = $(\'input[name="website"]\',_e).val(), title = $(\'input[name="title"]\',_e).val(),
  131. adtype = $(\'select[name="adtype"]\',_e).val();
  132. $.get(\'ajax.php\',{opt:\'edit_link\',args:{lid:_t,website:website,title:title,adtype:adtype}},
  133. function(r) {
  134. var j = eval(\'(\' + r + \')\');
  135. if (j.error) {
  136. alert(j.error);
  137. } else if (j.message) {
  138. spanrtitle.html(\'<em>\' + title + \'</em>\');
  139. spanlong.html(website);
  140. tdadtype.html(adtype==1?\'Interstitial\':(adtype==2?\'Top Banner\':\'None\'));
  141. edit_btn.remove();
  142. _tdlast.children().show();
  143. } else {
  144. alert(\'[0x1el01] Error Communicating With Server - Please try again\');
  145. }
  146. }
  147. );
  148. return false;
  149. });
  150. return false;
  151. });
  152. $(\'table.links_table tr[id^="lid"] a#rem\').click(function() {
  153. var e = $(this).parent().parent();
  154. var t = e.attr(\'id\').substr(4);
  155. if (confirm(\'Are you sure you want to delete this link?\')) {
  156. $.get(\'ajax.php\',{opt:\'rem_link\',args:{lid:t}},
  157. function(r) {
  158. var j = eval(\'(\' + r + \')\');
  159. if (j.error) {
  160. alert(j.error);
  161. } else if (j.message) {
  162. e.remove();
  163. //$(\'table.links_table\').trigger(\'change\');
  164. } else {
  165. alert(\'[0x1rl01] Error Communicating With Server - Please try again\');
  166. }
  167. }
  168. );
  169. }
  170. return false;
  171. });
  172. };
  173.  
  174. var _updateLinks = function() {
  175. var lt = $(\'table.links_table tbody\');
  176. $.ajaxSetup({cache:false});
  177. $.get(\'ajax.php\',{opt:\'get_links\'}, function(r) {
  178. var j = eval(\'(\' + r + \')\');
  179. if (j.message) {
  180. lt.html(j.message.data).ready(function() {
  181. _updateLinkEvents();
  182. $(\'div#_lp\').html(j.message.lp);
  183. });
  184. } else {
  185. lt.html(\'<tr id="no_link"><td colspan="5"><em>No data available</em></td></tr>\');
  186. }
  187. });
  188. }; _updateLinks();
  189.  
  190. ZeroClipboard.setMoviePath(\'js/ZeroClipboard.swf\');
  191. var zclip = new ZeroClipboard.Client();
  192. zclip.addEventListener(\'mouseDown\',function(){zclip.setText(_adb_url.val());});
  193.  
  194. $(\'div.shrink form\').submit(function() {
  195. var s = $(\'input[type="submit"]\', this), t = _adb_url;
  196. switch (s.attr(\'value\')) {
  197. case \'COPY\': break;
  198. default:
  199. var tval = t.val();
  200. t.attr(\'readonly\', \'1\');
  201. t.val(\'Shrinking...\');
  202. var args = {adtype:$(\'select[name="advert_type"]\',this).val(),
  203. title:$(\'input[name="custom_name"]\',this).val()};
  204. $.get(\'ajax.php\',{opt:\'shrink\',url:encodeURI(tval),args:args},
  205. function(r) {
  206. var j = eval(\'(\' + r + \')\');
  207. if (j.error) {
  208. t.removeAttr(\'readonly\');
  209. t.val(tval);
  210. alert(j.error);
  211. } else if (j.message) {
  212. t.val(j.message);
  213. var do_another = $(\'<span class="do_another">DO ANOTHER</span>\');
  214. t.width(475).parent().append(do_another);
  215. do_another.click(function() {
  216. _adb_url.removeAttr(\'readonly\').val(\'http://\').width(550);
  217. do_another.remove();
  218. s.attr(\'value\', \'SHRINK!\').attr(\'id\', \'\');
  219. zclip.destroy();
  220. return false;
  221. });
  222. s.attr(\'value\', \'COPY\');
  223. s.attr(\'id\', \'zero_copy\');
  224. zclip.glue(\'zero_copy\');
  225. _updateLinks();
  226. } else {
  227. alert(\'[0x1sh01] Error Communicating With Server - Please try again\');
  228. }
  229. }
  230. );
  231. break;
  232. }
  233. return false;
  234. });
  235. //$(\'table.links_table\').change(function() { _updateLinks(); });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement