admin
doz
html2pdf_v4.03
htmlpurifier-4.10.0
art
benchmarks
configdoc
docs
extras
library
maintenance
plugins
smoketests
tests
FSTools
HTMLPurifier
PHPT
tmp
CliTestCase.php
Debugger.php
HTMLPurifierTest.php
common.php
default_load.php
generate_mock_once.func.php
index.php
multitest.php
path2class.func.php
test_files.php
.gitattributes
.gitignore
.travis.yml
CREDITS
Doxyfile
INSTALL
INSTALL.fr.utf8
LICENSE
NEWS
README.md
TODO
VERSION
WHATSNEW
WYSIWYG
composer.json
phpdoc.ini
images
prints
prints3
stud
Kennwortwechsel.php
hauptframe.php
htmlpurifier-4.10.0.zip
index.php
index_alt.php
index_db.php
index_frame.htm
index_ldap.php
login.php
logout.php
menuframe.htm
styles_pc.css
testpdf.php
topframe.php
16 lines
496 B
PHP
Executable File
16 lines
496 B
PHP
Executable File
<?php
|
|
|
|
function path2class($path)
|
|
{
|
|
$temp = $path;
|
|
$temp = str_replace('./', '', $temp); // remove leading './'
|
|
$temp = str_replace('.\\', '', $temp); // remove leading '.\'
|
|
$temp = str_replace('\\', '_', $temp); // normalize \ to _
|
|
$temp = str_replace('/', '_', $temp); // normalize / to _
|
|
while(strpos($temp, '__') !== false) $temp = str_replace('__', '_', $temp);
|
|
$temp = str_replace('.php', '', $temp);
|
|
return $temp;
|
|
}
|
|
|
|
// vim: et sw=4 sts=4
|