Skip to content

Commit

Permalink
imported old content
Browse files Browse the repository at this point in the history
  • Loading branch information
daviseford committed Jan 2, 2016
1 parent 6944688 commit 6d791bf
Show file tree
Hide file tree
Showing 5 changed files with 102 additions and 82 deletions.
83 changes: 3 additions & 80 deletions cfg/shittalk.cfg
Expand Up @@ -141,7 +141,7 @@ alias _whine111 "say whoa bitch thats a mean word and 2 i dont give my informati
alias _whine112 "say why isn't soul eater on here? thats an awesome anime and the fact that soul can turn into a death sycthe is epic"
alias _whine113 "say like i said blade would beat on goku and your arguments were weak so yeah go back to jerking off on your hentai lol :P"
alias _whine114 "say but i do agree yes super tengen gurren laggan can beat goku and blade cause blade not that powerful to take on the universe yet but yeah don't matter um"
alias _whine115 "say Tak? sa :D Kto polak kciuk w góre!!"
alias _whine115 "say Tak? sa :D Kto polak kciuk w g�re!!"
alias _whine116 "say 50cent is a certified negro monkey roaming around the streets of america!"
alias _whine117 "say I LOVE PEEING IN THE SHOWER IT JUST FEELS GOOD THUMBS IF YOU LIKE TO DO THAT ASWELL:)"
alias _whine118 "say HANDS UP IF YOU EVER SHITED WHILE HAVING A BATH OR THUMBES UP IF YOU PEE IN THE SHOWER:)"
Expand All @@ -154,7 +154,7 @@ alias _whine124 "say I gave head to fuckin' Sniper for no fuckin' reason!"
alias _whine125 "say He rolled over and straddled my hips like the freakin' Queen of England (is that bitch dead, yet?) and taunted me."
alias _whine126 "say coalition status: behooved [ ] not behooved [x]"
alias _whine127 "say Medic shoved it in to the hilt just to hear Sniper scream from the intrusion. 'Too deep,' Sniper gulped for air, 'S-Sir.'"
alias _whine128 "say Calloused fingertips explored every inch of Engineer's skin as Solider's head went lower and lower…"
alias _whine128 "say Calloused fingertips explored every inch of Engineer's skin as Solider's head went lower and lower"
alias _whine129 "say how to get in touch with who give strangers babies in adoption? i don't know nothing about it?"
alias _whine130 "say screaming toddler what to do? WHAT IS THE ODDS"
alias _whine131 "say i keep getting stomach cramps could i be pregnant? FREDGEGSZZZRGDD"
Expand Down Expand Up @@ -213,7 +213,7 @@ alias _whine183 "say you still shouldn't not have no heart, not fight, not compe
alias _whine184 "say faggy medics revived gecko neighbor FRZZZZZZ THE SOUND ROFL"
alias _whine185 "say You wouldn't by any chance be a Zionist Jew, would you? Because there's a lot of them here who spread malicious 'pedophile' lies."
alias _whine186 "say Have you ever thought of turning gay to not be alone/get sex? "
alias _whine187 "say if? only your’e level of nowlege was as deep as mine, you could understand the underlying relations"
alias _whine187 "say if? only youre level of nowlege was as deep as mine, you could understand the underlying relations"
alias _whine188 "say was all by myself in the US, defenceless- they misguided me and they took advantage...I Cry big time!"
alias _whine189 "say in fact Nasa cannot go further than 400 miles from earth because Cosmic Radiation would incinerate?? the astronauts in seconds"
alias _whine190 "say yes i smoke weed also, i am a sinner, thats between me and God you athiest ####,lol"
Expand Down Expand Up @@ -429,83 +429,6 @@ alias _whine400 "say I've been giving myself enemas in the shower irregularly fo
alias _whine401 "say I once made out with an old, creepy, ugly, smelly, and probably homeless stranger at a buss stop"
alias _whine402 "say My dad pissed on me when he was really drunk one time"
alias _whine403 "say Found my moms wedding dress. Put it on and took photos wearing it. Then masturbated while still wearing it."
alias _whine404 "say "
alias _whine405 "say "
alias _whine406 "say "
alias _whine407 "say "
alias _whine408 "say "
alias _whine409 "say "
alias _whine410 "say "
alias _whine411 "say "
alias _whine412 "say "
alias _whine413 "say "
alias _whine414 "say "
alias _whine415 "say "
alias _whine416 "say "
alias _whine417 "say "
alias _whine418 "say "
alias _whine419 "say "
alias _whine420 "say "
alias _whine421 "say "
alias _whine422 "say "
alias _whine423 "say "
alias _whine424 "say "
alias _whine425 "say "
alias _whine426 "say "
alias _whine427 "say "
alias _whine428 "say "
alias _whine429 "say "
alias _whine430 "say "
alias _whine431 "say "
alias _whine432 "say "
alias _whine433 "say "
alias _whine434 "say "
alias _whine435 "say "
alias _whine436 "say "
alias _whine437 "say "
alias _whine438 "say "
alias _whine439 "say "
alias _whine440 "say "
alias _whine441 "say "
alias _whine442 "say "
alias _whine443 "say "
alias _whine444 "say "
alias _whine445 "say "
alias _whine446 "say "
alias _whine447 "say "
alias _whine448 "say "
alias _whine449 "say "
alias _whine450 "say "
alias _whine451 "say "
alias _whine452 "say "
alias _whine453 "say "
alias _whine454 "say "
alias _whine455 "say "
alias _whine456 "say "
alias _whine457 "say "
alias _whine458 "say "
alias _whine459 "say "
alias _whine460 "say "
alias _whine461 "say "
alias _whine462 "say "
alias _whine463 "say "
alias _whine464 "say "
alias _whine465 "say "
alias _whine466 "say "
alias _whine467 "say "
alias _whine468 "say "
alias _whine469 "say "
alias _whine470 "say "
alias _whine471 "say "
alias _whine472 "say "
alias _whine473 "say "
alias _whine474 "say "
alias _whine475 "say "
alias _whine476 "say "
alias _whine477 "say "
alias _whine478 "say "
alias _whine479 "say "
alias _whine480 "say "

//========================================================================================
//----------------------------------------------------------------------------------------
Expand Down
Binary file added cfg/shittalkcfg.rar
Binary file not shown.
92 changes: 92 additions & 0 deletions import_old.php
@@ -0,0 +1,92 @@
<?php
/**
* Created by PhpStorm.
* User: Davis
* Date: 1/2/2016
* Time: 5:39 PM
*/
require_once(__DIR__ . '/php/shittalk_functions.php');

$file = "cfg/shittalk.cfg";
$myfile = fopen($file, "r") or die("Unable to open file!");

$fileContents = fread($myfile, filesize($file));
fclose($myfile);

$del = convert_smart_quotes(get_delimited($fileContents)); //an array of everything between quote marks. need to parse this

//UNCOMMENT FOR THIS TO RUN - IMPORTS OLD BINDS
//if (!empty($del)) {
// for ($i = 0; $i < count($del); $i++) {
//
// if (strpos($del[$i], 'say ') !== false) { //if "say " is the first part of the string
// $fixedBind = str_replace('say ', '', $del[$i]);
// createShittalkRow($fixedBind);
//
// }
// }
//}

function createShittalkRow($text)
{
$text_escaped = mysql_escape_mimic(strip_double_quotes($text));
$today = mysql_escape_mimic(date("Y-m-d H:i:s"));

$sql = "INSERT INTO `shittalkDB`
(`text`, `date_created`, `custom`)
VALUES ('$text_escaped', '$today', 0);";
$result = mySqlQuery($sql);

return $result;
}

function get_delimited($str, $delimiter = '"')
{
$escapedDelimiter = preg_quote($delimiter, '/');
if (preg_match_all('/' . $escapedDelimiter . '(.*?)' . $escapedDelimiter . '/s', $str, $matches)) {
return $matches[1];
}
}

function convert_smart_quotes($string)
{
$search = array(
'&ldquo;',
'&rdquo;',
'“',
'”',
chr(147),
chr(148),
'&lsquo;',
'&rsquo;',
"",
"",
chr(145),
chr(146),
chr(151),
'—',
'&mdash;',
'&ndash;',
chr(133));

$replace = array(
'"',
'"',
'"',
'"',
'"',
'"',
"'",
"'",
"'",
"'",
"'",
"'",
'-',
'-',
'-',
'-',
'...');

return str_replace($search, $replace, $string);
}
3 changes: 3 additions & 0 deletions index.php
Expand Up @@ -77,6 +77,9 @@
</p>
<p class="small">Coming soon: Download these binds to an easy-to-use Source script, which will work in TF2,
Counterstrike, Dota, and all Source Engine games.</p>
<p>Looking for the original shittalk.cfg? <a href="cfg/shittalkcfg.rar" class="btn btn-primary btn-primary">
<span class="glyphicon glyphicon-download-alt"></span> Download</a>
</p>
</div>
</div>

Expand Down
6 changes: 4 additions & 2 deletions php/shittalk_functions.php
Expand Up @@ -81,7 +81,8 @@ function strip_double_quotes($string)
chr(151),
'—',
'&mdash;',
'&ndash;');
'&ndash;',
chr(133));

$replace = array(
"'",
Expand All @@ -100,7 +101,8 @@ function strip_double_quotes($string)
'-',
'-',
'-',
'-');
'-',
'...');

return str_replace($search, $replace, $string);
}

0 comments on commit 6d791bf

Please sign in to comment.