Skip to content

Instantly share code, notes, and snippets.

Created October 18, 2011 08:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/1294915 to your computer and use it in GitHub Desktop.
Save anonymous/1294915 to your computer and use it in GitHub Desktop.
$content = ereg_replace('href *= *"#', 'href="<?= SSViewer::$options[\'rewriteHashlinks\']===\'php\' ? \'<\'.\'?php echo $_SERVER[\\\'REQUEST_URI\\\']; ?\'.\'>\' : (SSViewer::$options[\'rewriteHashlinks\'] ? Convert::raw2att($_SERVER[\'REQUEST_URI\']) : "" ) ?>#', $content);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment