jmyeom

rainbow text parse.class.php

Sep 5th, 2011
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1. oooooooooooooo shit!, its only some mother fucking rainbow text up in this bitch!
  2.  
  3. this is what you got to do, whiteboi!
  4. ya open ya pasre.class.php, and find this:
  5.  
  6. $string = preg_replace_callback('`\[code\](.+?)\[/code\]`is', array(&$this, 'code_callback'), $string);
  7.  
  8. this is worth loads, m8 i could even get a new watch with this sucker, shiiiiiiiiiiit!
  9.  
  10. then, if we add this under it, then shit turns into cash yo...
  11.  
  12. $string = preg_replace_callback('`\[rainbow\](.+?)\[/rainbow\]`is', array(&$this, 'rainbowcolorcall'), $string);
  13.  
  14.  
  15. now that im shitting cash, we need to add some bitchs to it,
  16.  
  17. find this:
  18.  
  19. function code_callback($matches) {
  20.  
  21. under that function, you add this function
  22.  
  23. function rainbowcolorcall($matches1) {
  24. foreach ($matches1 as &$matches) {
  25. $arr1 = str_split($matches);
  26. $colours = array("FF0000","FF9900","FFff00","66ff00","00ff00","00ff99","00ffff","0099ff","0000ff","6600ff");
  27. $return = "";
  28. $d = 0;
  29. foreach ($arr1 as &$value) {
  30. if($d == count($colours)){
  31. $d = $d-count($colours);
  32. }
  33. $return .= "<FONT COLOR='#$colours[$d]'>$value</FONT>";
  34. $d++;
  35. }
  36. }
  37. return $return;
  38. }
  39.  
  40. then, you having a dream within a dream about a nigga stealing your bike, while having shits that was so cash.....
  41.  
  42.  
  43.  
  44.  
  45.  
  46. (i got bored, something different then my normal dull layout)
Advertisement
Add Comment
Please, Sign In to add comment