Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function fix($splitted, $char) {
- $splitted = explode($char, $splitted);
- foreach ($splitted as $i => $item) {
- if (strpos($item, 'kristanw') === 0 || strpos($item, 'hurc') === 0) {
- if (strlen($item) > 17) {
- $splitted[$i] = substr($item, 0, 17);
- }
- }
- }
- return implode($char, $splitted);
- }
- $sql = file('mysql.sql');
- foreach ($sql as $line) {
- $splitted = fix($line, "'");
- $splitted = fix($splitted, "`");
- echo $splitted;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement