public
Description: PHP web notepad, like a wiki, saves every 2 seconds
Homepage: http://edit.sunfox.org/
Clone URL: git://github.com/sunny/edith.git
Removing code feels good
sunny (author)
Thu Jul 24 06:19:48 -0700 2008
commit  ef213b4c8f2725a59e306fe004bd2935d6ac60b6
tree    944a78842355950af0b1a2522d7926bea12dcc1b
parent  a2bad5650937b5bce60589d14ba75326c0689f67
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
...
1
2
 
 
 
 
3
4
5
6
 
 
 
 
 
 
7
8
9
10
11
 
0
@@ -1,22 +1,11 @@
0
 <?php
0
 
0
-function ends_with($name, $end) {
0
- return $name == $end or 0 === strpos(strrev($name), strrev($end));
0
-}
0
-
0
 function h($string) {
0
   return htmlspecialchars($string);
0
 }
0
 
0
-function remove_from_end($name, $end) {
0
- if (ends_with($name, $end))
0
- return substr($name, 0, strlen($name) - strlen($end));
0
- return $name;
0
-}
0
-
0
 function request_var($name) {
0
   if (!isset($_REQUEST[$name]))
0
     return '';
0
   return get_magic_quotes_gpc() ? stripslashes($_REQUEST[$name]) : $_REQUEST[$name];
0
 }
0
-

Comments

    No one has commented yet.