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 Zend Encoder/SafeGuard & PhpExpress)
- *
- * @ Version : 1.1.1.0
- * @ Author : DeZender
- * @ Release on : 2011.01.04
- * @ Official site : http://DeZender.Net
- *
- */
- function Encrypt($string) {
- $result = '';
- $key = 'K#*$^&@HJBBSAD*&@#$';
- for ($i = 1; $i <= strlen( $string ); ++$i) {
- $char = substr( $string, $i - 1, 1 );
- $keychar = substr( $key, $i % strlen( $key ) - 1, 1 );
- $char = chr( ord( $char ) + ord( $keychar ) );
- $result .= $char;
- }
- return $result;
- }
- function Decrypt($string) {
- $result = '';
- $key = 'K#*$^&@HJBBSAD*&@#$';
- for ($i = 1; $i <= strlen( $string ); ++$i) {
- $char = substr( $string, $i - 1, 1 );
- $keychar = substr( $key, $i % strlen( $key ) - 1, 1 );
- $char = chr( ord( $char ) - ord( $keychar ) );
- $result .= $char;
- }
- return $result;
- }
- function getLicenceCheckError() {
- return '
- <style type="text/css">
- #error {
- font-family:Verdana,Helvetica,sans-serif;
- font-size:0.83em;
- font-weight: bold;
- width: 500px;
- height: 20px;
- color: #000;
- border-width: 1px;
- padding-left: 10px;
- line-height: 20px;
- border-style: solid;
- background-color: #ffebe8;
- border-color: #c00;
- }
- </style>
- <div id="error">Error checking licence</div>
- ';
- }
- function newSite() {
- $check = @file_get_contents( @sprintf( 'http://www.scriptizzle.com/licensing/newsite.php?domain=%s', $_SERVER['HTTP_HOST'] ) );
- if ($check === false) {
- $check = getLicenceCheckError( );
- }
- return $check;
- }
- function checkLicence() {
- return @file_get_contents( @sprintf( 'http://www.scriptizzle.com/licensing/check.php?domain=%s', $_SERVER['HTTP_HOST'] ) );
- }
- function writeLicenceKey($key, $time) {
- $fp = fopen( 'index.key', 'w' );
- fwrite( $fp, Encrypt( $time . '(||)' . $key . '(||)' . $time ) );
- fclose( $fp );
- }
- function get_js_02() {
- ob_start( );
- echo '$(document).ready(function() {
- $(\'div.user_login input[name="usr_email"]\').watermark(\'user@domain.tld\');
- $(\'div.user_login input[name="usr_pass"]\').watermark(\'password\');
- $(\'div.user_login div.nspr.inneri.nblu\').hover(function(){$(\'input\',this).fadeTo(400,1);},
- function(){$(\'input\',this).fadeTo(400,.7);});
- $(\'div.user_login form\').submit(function() {
- var email = $(\'input[name="usr_email"]\', this).val(),
- pass = $(\'input[name="usr_pass"]\', this).val();
- if (!email || !pass || email == \'user@domain.tld\' || pass == \'password\') {
- alert(\'Please complete both fields in order to login\');
- return false;
- }
- });
- ';
- if (System::getuser( )->loggedIn( ) != 2) {
- echo ' $(\'div.shrink div.nspr.inneri.nblu input\').fadeTo(0,.7);
- $(\'div.shrink div.nspr.inneri.nblu\').hover(function(){$(\'input\',this).fadeTo(400,.9);},
- function(){$(\'input\',this).fadeTo(400,.7);});
- var _adb_url = $(\'div.shrink input[name="adb_url"]\');
- _adb_url.val(\'http://\')//.watermark(\'http://\')
- .focus(function(){$(\'div.shrink div.outeri\').addClass(\'over\');})
- .bind(\'blur change\',function(){$(\'div.shrink div.outeri\').removeClass(\'over\')}).width(569);
- var _updateLinkEvents = function() {
- $.ajaxSetup({cache:false});
- $(\'table.links_table tr[id^="lid"] a#edit\').click(function() {
- var _e = $(this).parent().parent();
- var _t = _e.attr(\'id\').substr(4);
- var spanrtitle = $(\'span#rtitle\',_e), spanlong = $(\'span#long\',_e), tdadtype = $(\'td#adtype\',_e), _tdlast = $(\'td:last\',_e);
- var adtype = tdadtype.text();
- spanrtitle.css(\'display\', \'block\')
- .html(\'<span style="width:50px;display:inline-block;font-size:12px;">Title:</span><input type="text" name="title" size="30" value="\'+spanrtitle.text()+\'" />\');
- spanlong.html(\'<span style="width:50px;display:inline-block;font-size:12px;">Website:</span><input type="text" name="website" size="30" value="\'+spanlong.text()+\'" />\');
- tdadtype.html(\'<select name="adtype">\'
- + \'<option value="1"\'+(adtype==\'Interstitial\'?\' selected\':\'\')+\'>Interstitial</option>\'
- + \'<option value="2"\'+(adtype==\'Top Banner\'?\' selected\':\'\')+\'>Top Banner</option>\'
- + \'<option value="3"\'+(adtype==\'None\'?\' selected\':\'\')+\'>None</option>\'
- + \'</select>\');
- var edit_btn = $(\'<input type="submit" value="Edit" />\');
- _tdlast.children().hide();
- _tdlast.append(edit_btn);
- edit_btn.click(function() {
- var website = $(\'input[name="website"]\',_e).val(), title = $(\'input[name="title"]\',_e).val(),
- adtype = $(\'select[name="adtype"]\',_e).val();
- $.get(\'ajax.php\',{opt:\'edit_link\',args:{lid:_t,website:website,title:title,adtype:adtype}},
- function(r) {
- var j = eval(\'(\' + r + \')\');
- if (j.error) {
- alert(j.error);
- } else if (j.message) {
- spanrtitle.html(\'<em>\' + title + \'</em>\');
- spanlong.html(website);
- tdadtype.html(adtype==1?\'Interstitial\':(adtype==2?\'Top Banner\':\'None\'));
- edit_btn.remove();
- _tdlast.children().show();
- } else {
- alert(\'[0x1el01] Error Communicating With Server - Please try again\');
- }
- }
- );
- return false;
- });
- return false;
- });
- $(\'table.links_table tr[id^="lid"] a#rem\').click(function() {
- var e = $(this).parent().parent();
- var t = e.attr(\'id\').substr(4);
- if (confirm(\'Are you sure you want to delete this link?\')) {
- $.get(\'ajax.php\',{opt:\'rem_link\',args:{lid:t}},
- function(r) {
- var j = eval(\'(\' + r + \')\');
- if (j.error) {
- alert(j.error);
- } else if (j.message) {
- e.remove();
- //$(\'table.links_table\').trigger(\'change\');
- } else {
- alert(\'[0x1rl01] Error Communicating With Server - Please try again\');
- }
- }
- );
- }
- return false;
- });
- };
- var _updateLinks = function() {
- var lt = $(\'table.links_table tbody\');
- $.ajaxSetup({cache:false});
- $.get(\'ajax.php\',{opt:\'get_links\'}, function(r) {
- var j = eval(\'(\' + r + \')\');
- if (j.message) {
- lt.html(j.message.data).ready(function() {
- _updateLinkEvents();
- $(\'div#_lp\').html(j.message.lp);
- });
- } else {
- lt.html(\'<tr id="no_link"><td colspan="5"><em>No data available</em></td></tr>\');
- }
- });
- }; _updateLinks();
- ZeroClipboard.setMoviePath(\'js/ZeroClipboard.swf\');
- var zclip = new ZeroClipboard.Client();
- zclip.addEventListener(\'mouseDown\',function(){zclip.setText(_adb_url.val());});
- $(\'div.shrink form\').submit(function() {
- var s = $(\'input[type="submit"]\', this), t = _adb_url;
- switch (s.attr(\'value\')) {
- case \'COPY\': break;
- default:
- var tval = t.val();
- t.attr(\'readonly\', \'1\');
- t.val(\'Shrinking...\');
- var args = {adtype:$(\'select[name="advert_type"]\',this).val(),
- title:$(\'input[name="custom_name"]\',this).val()};
- $.get(\'ajax.php\',{opt:\'shrink\',url:encodeURI(tval),args:args},
- function(r) {
- var j = eval(\'(\' + r + \')\');
- if (j.error) {
- t.removeAttr(\'readonly\');
- t.val(tval);
- alert(j.error);
- } else if (j.message) {
- t.val(j.message);
- var do_another = $(\'<span class="do_another">DO ANOTHER</span>\');
- t.width(475).parent().append(do_another);
- do_another.click(function() {
- _adb_url.removeAttr(\'readonly\').val(\'http://\').width(550);
- do_another.remove();
- s.attr(\'value\', \'SHRINK!\').attr(\'id\', \'\');
- zclip.destroy();
- return false;
- });
- s.attr(\'value\', \'COPY\');
- s.attr(\'id\', \'zero_copy\');
- zclip.glue(\'zero_copy\');
- _updateLinks();
- } else {
- alert(\'[0x1sh01] Error Communicating With Server - Please try again\');
- }
- }
- );
- break;
- }
- return false;
- });
- //$(\'table.links_table\').change(function() { _updateLinks(); });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement