Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - [TKC]Anothercheater

Pages: 1 [2] 3 4 5 6 7 ... 52
16
General Modding & Programming / Other Games / Re: Battlefield Heroes clan
« on: October 08, 2009, 04:41:02 pm »
ive installed it and i hate it, i want cheats for it! ive birthday tomorrow :D

17
General Modding & Programming / Other Games / Re: Debug PHP
« on: October 06, 2009, 12:29:20 pm »
Code: [Select]
function vardump($array) {
print("\n<pre>");
var_dump($array);
print("</pre>\n");
}

function printArray($array) {
print("\n<pre>");
print_r($array);
print("</pre>\n");
}
use the first function for objects/functions/vars and the second for arrays.

use
Code: [Select]
die('wtf is going on'); to stop a php process at a certain point (its like a "haltpoint" without continue) - its equal to
Code: [Select]
exit(0); just without the 'wtf is going on' printed out to the browser after the call of die().

most important setting:
Code: [Select]
error_reporting(E_ALL); at the beginning or in the first include (config) file of your project.

18
Operation Flashpoint / Re: Ingame Screenshots
« on: October 06, 2009, 02:48:04 am »
i think i saw this allready 2 years ago ^^

19
why, isnt it totaly big?

20
General Modding & Programming / Other Games / Re: Hide Javascript code?
« on: October 01, 2009, 06:19:25 pm »
Of course you can do the calculations with php instead of javascript.
If its a simple function, its simple to understand the function.
If the function is huge or pretty complex then its also much harder to understand this obfuscated code and you cant recover the variable names.

21
General Modding & Programming / Other Games / Re: Hide Javascript code?
« on: October 01, 2009, 12:48:15 pm »
Why should you hide code which is meant for the client browser?
The only thing you can do - which is the safest - is to use a Javascript Obfuscator.

Example of http://www.javascriptobfuscator.com :

Input (1211):
Code: [Select]
function inputInsert(input, aTag, eTag) {
  input.focus();
  /* IE */
  if(typeof document.selection != 'undefined') {
    var range = document.selection.createRange();
    var insText = range.text;
    range.text = aTag + insText + eTag;
    range = document.selection.createRange();
    if (insText.length == 0) {
      range.move('character', -eTag.length);
    } else {
      range.moveStart('character', aTag.length + insText.length + eTag.length);      
    }
    range.select();
    /* Gecko */
  } else if(typeof input.selectionStart != 'undefined') {
    var start = input.selectionStart;
    var end = input.selectionEnd;
    var insText = input.value.substring(start, end);
    input.value = input.value.substr(0, start) + aTag + insText + eTag + input.value.substr(end);
    var pos;
    if (insText.length == 0) {
      pos = start + aTag.length;
    } else {
      pos = start + aTag.length + insText.length + eTag.length;
    }
    input.selectionStart = pos;
    input.selectionEnd = pos;
   /* Misc */
  } else {
    var pos;
    var re = new RegExp('^[0-9]{0,3}$');
    while(!re.test(pos)) {
      pos = prompt("Einf?gen an Position (0.." + input.value.length + "):", "0");
    }
    if(pos > input.value.length) {
      pos = input.value.length;
    }
    var insText = prompt("Bitte geben Sie den zu formatierenden Text ein:");
    input.value = input.value.substr(0, pos) + aTag + insText + eTag + input.value.substr(pos);
  }
}

Output (1891):
Code: [Select]
var _0x69c5=["focus","selection","undefined","createRange","text","length","character","move","moveStart","select","selectionStart","selectionEnd","substring","value","substr","^[0-9]{0,3}$","Einf?gen an Position (0..","):","0","test","Bitte geben Sie den zu formatierenden Text ein:"];function inputInsert(_0xb3d9x2,_0xb3d9x3,_0xb3d9x4){_0xb3d9x2[_0x69c5[0]]();if( typeof document[_0x69c5[1]]!=_0x69c5[2]){var _0xb3d9x5=document[_0x69c5[1]][_0x69c5[3]]();var _0xb3d9x6=_0xb3d9x5[_0x69c5[4]];_0xb3d9x5[_0x69c5[4]]=_0xb3d9x3+_0xb3d9x6+_0xb3d9x4;_0xb3d9x5=document[_0x69c5[1]][_0x69c5[3]]();if(_0xb3d9x6[_0x69c5[5]]==0){_0xb3d9x5[_0x69c5[7]](_0x69c5[6],-_0xb3d9x4[_0x69c5[5]]);} else {_0xb3d9x5[_0x69c5[8]](_0x69c5[6],_0xb3d9x3[_0x69c5[5]]+_0xb3d9x6[_0x69c5[5]]+_0xb3d9x4[_0x69c5[5]]);} ;_0xb3d9x5[_0x69c5[9]]();} else {if( typeof _0xb3d9x2[_0x69c5[10]]!=_0x69c5[2]){var _0xb3d9x7=_0xb3d9x2[_0x69c5[10]];var _0xb3d9x8=_0xb3d9x2[_0x69c5[11]];var _0xb3d9x6=_0xb3d9x2[_0x69c5[13]][_0x69c5[12]](_0xb3d9x7,_0xb3d9x8);_0xb3d9x2[_0x69c5[13]]=_0xb3d9x2[_0x69c5[13]][_0x69c5[14]](0,_0xb3d9x7)+_0xb3d9x3+_0xb3d9x6+_0xb3d9x4+_0xb3d9x2[_0x69c5[13]][_0x69c5[14]](_0xb3d9x8);var _0xb3d9x9;if(_0xb3d9x6[_0x69c5[5]]==0){_0xb3d9x9=_0xb3d9x7+_0xb3d9x3[_0x69c5[5]];} else {_0xb3d9x9=_0xb3d9x7+_0xb3d9x3[_0x69c5[5]]+_0xb3d9x6[_0x69c5[5]]+_0xb3d9x4[_0x69c5[5]];} ;_0xb3d9x2[_0x69c5[10]]=_0xb3d9x9;_0xb3d9x2[_0x69c5[11]]=_0xb3d9x9;} else {var _0xb3d9x9;var _0xb3d9xa= new RegExp(_0x69c5[15]);while(!_0xb3d9xa[_0x69c5[19]](_0xb3d9x9)){_0xb3d9x9=prompt(_0x69c5[16]+_0xb3d9x2[_0x69c5[13]][_0x69c5[5]]+_0x69c5[17],_0x69c5[18]);} ;if(_0xb3d9x9>_0xb3d9x2[_0x69c5[13]][_0x69c5[5]]){_0xb3d9x9=_0xb3d9x2[_0x69c5[13]][_0x69c5[5]];} ;var _0xb3d9x6=prompt(_0x69c5[20]);_0xb3d9x2[_0x69c5[13]]=_0xb3d9x2[_0x69c5[13]][_0x69c5[14]](0,_0xb3d9x9)+_0xb3d9x3+_0xb3d9x6+_0xb3d9x4+_0xb3d9x2[_0x69c5[13]][_0x69c5[14]](_0xb3d9x9);} ;} ;} ;

22
Armed Assault 2 / Re: Were you Download Arma 2 Multihack 1.03
« on: September 14, 2009, 12:58:30 pm »
emule

23
Armed Assault 2 / Re: Game Id
« on: September 07, 2009, 07:00:58 pm »
Yea thats what he's saying !

24
General Modding & Programming / Other Games / Re: SSL proxie needed
« on: September 06, 2009, 08:00:34 pm »
Whya r u in brazil :P

25
Random Insanity Board / Re: ZOldDude
« on: September 04, 2009, 01:40:52 am »
Yea what about you lasher? :icon_sly

26
General Modding & Programming / Other Games / Re: A little PHP Contest
« on: August 31, 2009, 01:03:10 pm »
Okay




27
General Modding & Programming / Other Games / Re: A little PHP Contest
« on: August 30, 2009, 10:10:24 pm »
liar. because u have a to write a loop with certain conditions to actually get the complete sourcecode  :icon_rolleyes2

28
General Modding & Programming / Other Games / Re: AJAX and browsers
« on: August 30, 2009, 10:08:36 pm »
Code: [Select]
<script type='text/javascript'>
function test(el){
    while(el.tagName != 'FORM')
        el = el.parentNode;
    var input = el.getElementsByTagName('INPUT');
    var elementString = '';
    for(var i=0; i<input.length; i++)
        elementString += input[i].name + '=' + input[i].value + '&';
    elementString = elementString.substring(0, elementString.length - 1);
    alert(elementString);
}
</script>

Safer for transmission through GET methode:
Code: [Select]
<script type='text/javascript'>
function test(el){
    while(el.tagName != 'FORM')
        el = el.parentNode;
    var input = el.getElementsByTagName('INPUT');
    var elementString = '';
    for(var i=0; i<input.length; i++)
        elementString += input[i].name + '=' + encodeURIComponent( input[i].value ) + '&';
    elementString = elementString.substring(0, elementString.length - 1);
    alert(elementString);
}
</script>

encodeURIComponent(): http://xkr.us/articles/javascript/encode-compare/

29
General Modding & Programming / Other Games / Re: AJAX and browsers
« on: August 29, 2009, 12:36:45 am »
wtf is FISHY=""?

Code: [Select]
ajaxRequest('file.php', 'listid', 'POST', 'innerHTML', 'amount=' + javascript:document.getElementById('textboxid').value );
it shud be:

Code: [Select]
ajaxRequest('file.php', 'listid', 'POST', 'innerHTML', 'amount=' + document.getElementById('textboxid').value );
u use "javascript:" only when u call javascript over a link or as src of an html object.

30
General Modding & Programming / Other Games / Re: AJAX and browsers
« on: August 28, 2009, 01:46:17 am »
You can write:

Code: [Select]
<?=date("H:i:s")?>
Its often nicer :)

Oh the advantage of a js framework even for u could be:

Instead of:

Code: [Select]
document.getElementById('theId').blah()
you can write cross-browser-compatible:

Code: [Select]
$('theId').blah()
Bothering with some stuff just isnt necessary anymore especially if you want to create browser platform independent websites.

Pages: 1 [2] 3 4 5 6 7 ... 52