diff options
author | Remy <relst@relst.nl> | 2015-02-21 07:22:45 +0100 |
---|---|---|
committer | Remy <relst@relst.nl> | 2015-02-21 07:22:45 +0100 |
commit | f66fd749250f8b60ec78fcdd2f50026019836069 (patch) | |
tree | 6486487c928c2c8bb44764100afc48da06353c6a /functions/textual.php | |
parent | b8dea0fbd433618bf026e36d5e7fb29492508017 (diff) | |
download | ssl-decoder-f66fd749250f8b60ec78fcdd2f50026019836069.zip ssl-decoder-f66fd749250f8b60ec78fcdd2f50026019836069.tar.gz ssl-decoder-f66fd749250f8b60ec78fcdd2f50026019836069.tar.bz2 |
license should not me html comment
Diffstat (limited to 'functions/textual.php')
-rw-r--r-- | functions/textual.php | 42 |
1 files changed, 26 insertions, 16 deletions
diff --git a/functions/textual.php b/functions/textual.php index 4287283..cf17e23 100644 --- a/functions/textual.php +++ b/functions/textual.php @@ -1,20 +1,18 @@ -<!-- - Copyright (C) 2015 Remy van Elst - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see <http://www.gnu.org/licenses/>. ---> <?php +// Copyright (C) 2015 Remy van Elst + +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with this program. If not, see <http://www.gnu.org/licenses/>. function startsWith($haystack, $needle) { // search backwards starting from haystack length characters from the end @@ -27,4 +25,16 @@ function endsWith($haystack, $needle) { } } + +function get_current_folder(){ + $url = $_SERVER['REQUEST_URI']; + $parts = explode('/',$url); + $folder = ''; + for ($i = 0; $i < count($parts) - 1; $i++) { + $folder .= $parts[$i] . "/"; + } + return $folder; +} + + ?>
\ No newline at end of file |