From ce2b69675075444c9e40b72bcdd42ab7edbbe633 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Fri, 28 Jan 2011 22:51:06 +0100 Subject: update to CI 2.0 Signed-off-by: Florian Pritz --- system/application/config/.gitignore | 1 - system/application/config/example/.gitignore | 1 - system/application/config/example/autoload.php | 116 - system/application/config/example/config.php | 353 -- system/application/config/example/constants.php | 43 - system/application/config/example/database.php | 55 - system/application/config/example/doctypes.php | 15 - system/application/config/example/hooks.php | 16 - system/application/config/example/memcache.php | 9 - system/application/config/example/mimes.php | 105 - system/application/config/example/routes.php | 49 - system/application/config/example/smileys.php | 66 - system/application/config/example/user_agents.php | 175 - system/application/config/index.html | 10 - system/application/controllers/file.php | 232 - system/application/controllers/index.html | 10 - system/application/errors/error_404.php | 34 - system/application/errors/error_db.php | 34 - system/application/errors/error_general.php | 34 - system/application/errors/error_php.php | 10 - system/application/errors/index.html | 10 - system/application/helpers/filebin_helper.php | 10 - system/application/helpers/index.html | 10 - system/application/hooks/index.html | 10 - system/application/index.html | 10 - system/application/language/english/index.html | 10 - system/application/libraries/MemcacheLibrary.php | 179 - system/application/libraries/contrib/aliased.php | 124 - system/application/libraries/contrib/cssgen.php | 456 -- system/application/libraries/contrib/cssgen2.php | 59 - system/application/libraries/contrib/example.php | 217 - system/application/libraries/contrib/langcheck.php | 766 ---- system/application/libraries/geshi.php | 4685 -------------------- system/application/libraries/geshi/4cs.php | 139 - system/application/libraries/geshi/abap.php | 1409 ------ .../application/libraries/geshi/actionscript.php | 197 - .../application/libraries/geshi/actionscript3.php | 473 -- system/application/libraries/geshi/ada.php | 135 - system/application/libraries/geshi/apache.php | 480 -- system/application/libraries/geshi/applescript.php | 157 - system/application/libraries/geshi/apt_sources.php | 144 - system/application/libraries/geshi/asm.php | 225 - system/application/libraries/geshi/asp.php | 164 - system/application/libraries/geshi/autohotkey.php | 373 -- system/application/libraries/geshi/autoit.php | 1171 ----- system/application/libraries/geshi/avisynth.php | 194 - system/application/libraries/geshi/awk.php | 158 - system/application/libraries/geshi/bash.php | 324 -- system/application/libraries/geshi/basic4gl.php | 341 -- system/application/libraries/geshi/bf.php | 114 - system/application/libraries/geshi/bibtex.php | 183 - system/application/libraries/geshi/blitzbasic.php | 185 - system/application/libraries/geshi/bnf.php | 110 - system/application/libraries/geshi/boo.php | 217 - system/application/libraries/geshi/c.php | 188 - system/application/libraries/geshi/c_mac.php | 212 - system/application/libraries/geshi/caddcl.php | 126 - system/application/libraries/geshi/cadlisp.php | 186 - system/application/libraries/geshi/cfdg.php | 124 - system/application/libraries/geshi/cfm.php | 299 -- system/application/libraries/geshi/cil.php | 196 - system/application/libraries/geshi/clojure.php | 134 - system/application/libraries/geshi/cmake.php | 181 - system/application/libraries/geshi/cobol.php | 244 - system/application/libraries/geshi/cpp-qt.php | 550 --- system/application/libraries/geshi/cpp.php | 226 - system/application/libraries/geshi/csharp.php | 253 -- system/application/libraries/geshi/css.php | 212 - system/application/libraries/geshi/cuesheet.php | 138 - system/application/libraries/geshi/d.php | 272 -- system/application/libraries/geshi/dcs.php | 182 - system/application/libraries/geshi/delphi.php | 289 -- system/application/libraries/geshi/diff.php | 196 - system/application/libraries/geshi/div.php | 126 - system/application/libraries/geshi/dos.php | 198 - system/application/libraries/geshi/dot.php | 164 - system/application/libraries/geshi/eiffel.php | 395 -- system/application/libraries/geshi/email.php | 210 - system/application/libraries/geshi/erlang.php | 441 -- system/application/libraries/geshi/fo.php | 327 -- system/application/libraries/geshi/fortran.php | 160 - system/application/libraries/geshi/freebasic.php | 141 - system/application/libraries/geshi/fsharp.php | 211 - system/application/libraries/geshi/gambas.php | 214 - system/application/libraries/geshi/gdb.php | 175 - system/application/libraries/geshi/genero.php | 463 -- system/application/libraries/geshi/gettext.php | 97 - system/application/libraries/geshi/glsl.php | 205 - system/application/libraries/geshi/gml.php | 506 --- system/application/libraries/geshi/gnuplot.php | 296 -- system/application/libraries/geshi/groovy.php | 1011 ----- system/application/libraries/geshi/haskell.php | 198 - system/application/libraries/geshi/hq9plus.php | 104 - system/application/libraries/geshi/html4strict.php | 203 - system/application/libraries/geshi/idl.php | 123 - system/application/libraries/geshi/ini.php | 128 - system/application/libraries/geshi/inno.php | 212 - system/application/libraries/geshi/intercal.php | 122 - system/application/libraries/geshi/io.php | 138 - system/application/libraries/geshi/java.php | 983 ---- system/application/libraries/geshi/java5.php | 1031 ----- system/application/libraries/geshi/javascript.php | 150 - system/application/libraries/geshi/jquery.php | 238 - system/application/libraries/geshi/kixtart.php | 329 -- system/application/libraries/geshi/klonec.php | 282 -- system/application/libraries/geshi/klonecpp.php | 310 -- system/application/libraries/geshi/latex.php | 223 - system/application/libraries/geshi/lisp.php | 144 - system/application/libraries/geshi/locobasic.php | 130 - system/application/libraries/geshi/logtalk.php | 330 -- system/application/libraries/geshi/lolcode.php | 152 - .../application/libraries/geshi/lotusformulas.php | 318 -- system/application/libraries/geshi/lotusscript.php | 191 - system/application/libraries/geshi/lscript.php | 387 -- system/application/libraries/geshi/lsl2.php | 898 ---- system/application/libraries/geshi/lua.php | 137 - system/application/libraries/geshi/m68k.php | 143 - system/application/libraries/geshi/make.php | 151 - system/application/libraries/geshi/mapbasic.php | 908 ---- system/application/libraries/geshi/matlab.php | 227 - system/application/libraries/geshi/mirc.php | 171 - system/application/libraries/geshi/mmix.php | 173 - system/application/libraries/geshi/modula3.php | 135 - system/application/libraries/geshi/mpasm.php | 164 - system/application/libraries/geshi/mxml.php | 145 - system/application/libraries/geshi/mysql.php | 475 -- system/application/libraries/geshi/newlisp.php | 191 - system/application/libraries/geshi/nsis.php | 351 -- system/application/libraries/geshi/oberon2.php | 135 - system/application/libraries/geshi/objc.php | 358 -- system/application/libraries/geshi/ocaml-brief.php | 112 - system/application/libraries/geshi/ocaml.php | 174 - system/application/libraries/geshi/oobas.php | 135 - system/application/libraries/geshi/oracle11.php | 614 --- system/application/libraries/geshi/oracle8.php | 496 --- system/application/libraries/geshi/pascal.php | 152 - system/application/libraries/geshi/per.php | 302 -- system/application/libraries/geshi/perl.php | 213 - system/application/libraries/geshi/perl6.php | 197 - system/application/libraries/geshi/php-brief.php | 222 - system/application/libraries/geshi/php.php | 1114 ----- system/application/libraries/geshi/pic16.php | 141 - system/application/libraries/geshi/pike.php | 103 - system/application/libraries/geshi/pixelbender.php | 176 - system/application/libraries/geshi/plsql.php | 256 -- system/application/libraries/geshi/povray.php | 199 - .../application/libraries/geshi/powerbuilder.php | 418 -- system/application/libraries/geshi/powershell.php | 277 -- system/application/libraries/geshi/progress.php | 485 -- system/application/libraries/geshi/prolog.php | 143 - system/application/libraries/geshi/properties.php | 127 - system/application/libraries/geshi/providex.php | 299 -- system/application/libraries/geshi/purebasic.php | 303 -- system/application/libraries/geshi/python.php | 237 - system/application/libraries/geshi/qbasic.php | 158 - system/application/libraries/geshi/rails.php | 406 -- system/application/libraries/geshi/rebol.php | 196 - system/application/libraries/geshi/reg.php | 233 - system/application/libraries/geshi/robots.php | 100 - system/application/libraries/geshi/rsplus.php | 483 -- system/application/libraries/geshi/ruby.php | 226 - system/application/libraries/geshi/sas.php | 290 -- system/application/libraries/geshi/scala.php | 122 - system/application/libraries/geshi/scheme.php | 170 - system/application/libraries/geshi/scilab.php | 295 -- system/application/libraries/geshi/sdlbasic.php | 165 - system/application/libraries/geshi/smalltalk.php | 154 - system/application/libraries/geshi/smarty.php | 192 - system/application/libraries/geshi/sql.php | 140 - .../application/libraries/geshi/systemverilog.php | 317 -- system/application/libraries/geshi/tcl.php | 194 - system/application/libraries/geshi/teraterm.php | 317 -- system/application/libraries/geshi/text.php | 84 - system/application/libraries/geshi/thinbasic.php | 868 ---- system/application/libraries/geshi/tsql.php | 375 -- system/application/libraries/geshi/typoscript.php | 300 -- system/application/libraries/geshi/vb.php | 133 - system/application/libraries/geshi/vbnet.php | 201 - system/application/libraries/geshi/verilog.php | 173 - system/application/libraries/geshi/vhdl.php | 144 - system/application/libraries/geshi/vim.php | 419 -- .../application/libraries/geshi/visualfoxpro.php | 456 -- .../application/libraries/geshi/visualprolog.php | 129 - system/application/libraries/geshi/whitespace.php | 121 - system/application/libraries/geshi/whois.php | 181 - system/application/libraries/geshi/winbatch.php | 369 -- system/application/libraries/geshi/xml.php | 157 - system/application/libraries/geshi/xorg_conf.php | 124 - system/application/libraries/geshi/xpp.php | 436 -- system/application/libraries/geshi/z80.php | 144 - system/application/libraries/index.html | 10 - system/application/models/file_mod.php | 419 -- system/application/models/index.html | 10 - system/application/views/file/client.php | 23 - system/application/views/file/delete_form.php | 9 - system/application/views/file/deleted.php | 3 - system/application/views/file/footer.php | 3 - system/application/views/file/header.php | 15 - system/application/views/file/html_footer.php | 5 - system/application/views/file/html_header.php | 21 - system/application/views/file/non_existent.php | 3 - system/application/views/file/show_url.php | 6 - system/application/views/file/too_big.php | 3 - system/application/views/file/upload_error.php | 6 - system/application/views/file/upload_form.php | 32 - system/application/views/index.html | 10 - 206 files changed, 51988 deletions(-) delete mode 100644 system/application/config/.gitignore delete mode 100644 system/application/config/example/.gitignore delete mode 100755 system/application/config/example/autoload.php delete mode 100755 system/application/config/example/config.php delete mode 100755 system/application/config/example/constants.php delete mode 100755 system/application/config/example/database.php delete mode 100755 system/application/config/example/doctypes.php delete mode 100755 system/application/config/example/hooks.php delete mode 100644 system/application/config/example/memcache.php delete mode 100755 system/application/config/example/mimes.php delete mode 100755 system/application/config/example/routes.php delete mode 100755 system/application/config/example/smileys.php delete mode 100755 system/application/config/example/user_agents.php delete mode 100755 system/application/config/index.html delete mode 100644 system/application/controllers/file.php delete mode 100644 system/application/controllers/index.html delete mode 100644 system/application/errors/error_404.php delete mode 100644 system/application/errors/error_db.php delete mode 100644 system/application/errors/error_general.php delete mode 100644 system/application/errors/error_php.php delete mode 100644 system/application/errors/index.html delete mode 100644 system/application/helpers/filebin_helper.php delete mode 100644 system/application/helpers/index.html delete mode 100644 system/application/hooks/index.html delete mode 100644 system/application/index.html delete mode 100644 system/application/language/english/index.html delete mode 100644 system/application/libraries/MemcacheLibrary.php delete mode 100644 system/application/libraries/contrib/aliased.php delete mode 100644 system/application/libraries/contrib/cssgen.php delete mode 100644 system/application/libraries/contrib/cssgen2.php delete mode 100644 system/application/libraries/contrib/example.php delete mode 100644 system/application/libraries/contrib/langcheck.php delete mode 100644 system/application/libraries/geshi.php delete mode 100644 system/application/libraries/geshi/4cs.php delete mode 100644 system/application/libraries/geshi/abap.php delete mode 100644 system/application/libraries/geshi/actionscript.php delete mode 100644 system/application/libraries/geshi/actionscript3.php delete mode 100644 system/application/libraries/geshi/ada.php delete mode 100644 system/application/libraries/geshi/apache.php delete mode 100644 system/application/libraries/geshi/applescript.php delete mode 100644 system/application/libraries/geshi/apt_sources.php delete mode 100644 system/application/libraries/geshi/asm.php delete mode 100644 system/application/libraries/geshi/asp.php delete mode 100644 system/application/libraries/geshi/autohotkey.php delete mode 100644 system/application/libraries/geshi/autoit.php delete mode 100644 system/application/libraries/geshi/avisynth.php delete mode 100644 system/application/libraries/geshi/awk.php delete mode 100644 system/application/libraries/geshi/bash.php delete mode 100644 system/application/libraries/geshi/basic4gl.php delete mode 100644 system/application/libraries/geshi/bf.php delete mode 100644 system/application/libraries/geshi/bibtex.php delete mode 100644 system/application/libraries/geshi/blitzbasic.php delete mode 100644 system/application/libraries/geshi/bnf.php delete mode 100644 system/application/libraries/geshi/boo.php delete mode 100644 system/application/libraries/geshi/c.php delete mode 100644 system/application/libraries/geshi/c_mac.php delete mode 100644 system/application/libraries/geshi/caddcl.php delete mode 100644 system/application/libraries/geshi/cadlisp.php delete mode 100644 system/application/libraries/geshi/cfdg.php delete mode 100644 system/application/libraries/geshi/cfm.php delete mode 100644 system/application/libraries/geshi/cil.php delete mode 100644 system/application/libraries/geshi/clojure.php delete mode 100644 system/application/libraries/geshi/cmake.php delete mode 100644 system/application/libraries/geshi/cobol.php delete mode 100644 system/application/libraries/geshi/cpp-qt.php delete mode 100644 system/application/libraries/geshi/cpp.php delete mode 100644 system/application/libraries/geshi/csharp.php delete mode 100644 system/application/libraries/geshi/css.php delete mode 100644 system/application/libraries/geshi/cuesheet.php delete mode 100644 system/application/libraries/geshi/d.php delete mode 100644 system/application/libraries/geshi/dcs.php delete mode 100644 system/application/libraries/geshi/delphi.php delete mode 100644 system/application/libraries/geshi/diff.php delete mode 100644 system/application/libraries/geshi/div.php delete mode 100644 system/application/libraries/geshi/dos.php delete mode 100644 system/application/libraries/geshi/dot.php delete mode 100644 system/application/libraries/geshi/eiffel.php delete mode 100644 system/application/libraries/geshi/email.php delete mode 100644 system/application/libraries/geshi/erlang.php delete mode 100644 system/application/libraries/geshi/fo.php delete mode 100644 system/application/libraries/geshi/fortran.php delete mode 100644 system/application/libraries/geshi/freebasic.php delete mode 100644 system/application/libraries/geshi/fsharp.php delete mode 100644 system/application/libraries/geshi/gambas.php delete mode 100644 system/application/libraries/geshi/gdb.php delete mode 100644 system/application/libraries/geshi/genero.php delete mode 100644 system/application/libraries/geshi/gettext.php delete mode 100644 system/application/libraries/geshi/glsl.php delete mode 100644 system/application/libraries/geshi/gml.php delete mode 100644 system/application/libraries/geshi/gnuplot.php delete mode 100644 system/application/libraries/geshi/groovy.php delete mode 100644 system/application/libraries/geshi/haskell.php delete mode 100644 system/application/libraries/geshi/hq9plus.php delete mode 100644 system/application/libraries/geshi/html4strict.php delete mode 100644 system/application/libraries/geshi/idl.php delete mode 100644 system/application/libraries/geshi/ini.php delete mode 100644 system/application/libraries/geshi/inno.php delete mode 100644 system/application/libraries/geshi/intercal.php delete mode 100644 system/application/libraries/geshi/io.php delete mode 100644 system/application/libraries/geshi/java.php delete mode 100644 system/application/libraries/geshi/java5.php delete mode 100644 system/application/libraries/geshi/javascript.php delete mode 100644 system/application/libraries/geshi/jquery.php delete mode 100644 system/application/libraries/geshi/kixtart.php delete mode 100644 system/application/libraries/geshi/klonec.php delete mode 100644 system/application/libraries/geshi/klonecpp.php delete mode 100644 system/application/libraries/geshi/latex.php delete mode 100644 system/application/libraries/geshi/lisp.php delete mode 100644 system/application/libraries/geshi/locobasic.php delete mode 100644 system/application/libraries/geshi/logtalk.php delete mode 100644 system/application/libraries/geshi/lolcode.php delete mode 100644 system/application/libraries/geshi/lotusformulas.php delete mode 100644 system/application/libraries/geshi/lotusscript.php delete mode 100644 system/application/libraries/geshi/lscript.php delete mode 100644 system/application/libraries/geshi/lsl2.php delete mode 100644 system/application/libraries/geshi/lua.php delete mode 100644 system/application/libraries/geshi/m68k.php delete mode 100644 system/application/libraries/geshi/make.php delete mode 100644 system/application/libraries/geshi/mapbasic.php delete mode 100644 system/application/libraries/geshi/matlab.php delete mode 100644 system/application/libraries/geshi/mirc.php delete mode 100644 system/application/libraries/geshi/mmix.php delete mode 100644 system/application/libraries/geshi/modula3.php delete mode 100644 system/application/libraries/geshi/mpasm.php delete mode 100644 system/application/libraries/geshi/mxml.php delete mode 100644 system/application/libraries/geshi/mysql.php delete mode 100644 system/application/libraries/geshi/newlisp.php delete mode 100644 system/application/libraries/geshi/nsis.php delete mode 100644 system/application/libraries/geshi/oberon2.php delete mode 100644 system/application/libraries/geshi/objc.php delete mode 100644 system/application/libraries/geshi/ocaml-brief.php delete mode 100644 system/application/libraries/geshi/ocaml.php delete mode 100644 system/application/libraries/geshi/oobas.php delete mode 100644 system/application/libraries/geshi/oracle11.php delete mode 100644 system/application/libraries/geshi/oracle8.php delete mode 100644 system/application/libraries/geshi/pascal.php delete mode 100644 system/application/libraries/geshi/per.php delete mode 100644 system/application/libraries/geshi/perl.php delete mode 100644 system/application/libraries/geshi/perl6.php delete mode 100644 system/application/libraries/geshi/php-brief.php delete mode 100644 system/application/libraries/geshi/php.php delete mode 100644 system/application/libraries/geshi/pic16.php delete mode 100644 system/application/libraries/geshi/pike.php delete mode 100644 system/application/libraries/geshi/pixelbender.php delete mode 100644 system/application/libraries/geshi/plsql.php delete mode 100644 system/application/libraries/geshi/povray.php delete mode 100644 system/application/libraries/geshi/powerbuilder.php delete mode 100644 system/application/libraries/geshi/powershell.php delete mode 100644 system/application/libraries/geshi/progress.php delete mode 100644 system/application/libraries/geshi/prolog.php delete mode 100644 system/application/libraries/geshi/properties.php delete mode 100644 system/application/libraries/geshi/providex.php delete mode 100644 system/application/libraries/geshi/purebasic.php delete mode 100644 system/application/libraries/geshi/python.php delete mode 100644 system/application/libraries/geshi/qbasic.php delete mode 100644 system/application/libraries/geshi/rails.php delete mode 100644 system/application/libraries/geshi/rebol.php delete mode 100644 system/application/libraries/geshi/reg.php delete mode 100644 system/application/libraries/geshi/robots.php delete mode 100644 system/application/libraries/geshi/rsplus.php delete mode 100644 system/application/libraries/geshi/ruby.php delete mode 100644 system/application/libraries/geshi/sas.php delete mode 100644 system/application/libraries/geshi/scala.php delete mode 100644 system/application/libraries/geshi/scheme.php delete mode 100644 system/application/libraries/geshi/scilab.php delete mode 100644 system/application/libraries/geshi/sdlbasic.php delete mode 100644 system/application/libraries/geshi/smalltalk.php delete mode 100644 system/application/libraries/geshi/smarty.php delete mode 100644 system/application/libraries/geshi/sql.php delete mode 100644 system/application/libraries/geshi/systemverilog.php delete mode 100644 system/application/libraries/geshi/tcl.php delete mode 100644 system/application/libraries/geshi/teraterm.php delete mode 100644 system/application/libraries/geshi/text.php delete mode 100644 system/application/libraries/geshi/thinbasic.php delete mode 100644 system/application/libraries/geshi/tsql.php delete mode 100644 system/application/libraries/geshi/typoscript.php delete mode 100644 system/application/libraries/geshi/vb.php delete mode 100644 system/application/libraries/geshi/vbnet.php delete mode 100644 system/application/libraries/geshi/verilog.php delete mode 100644 system/application/libraries/geshi/vhdl.php delete mode 100644 system/application/libraries/geshi/vim.php delete mode 100644 system/application/libraries/geshi/visualfoxpro.php delete mode 100644 system/application/libraries/geshi/visualprolog.php delete mode 100644 system/application/libraries/geshi/whitespace.php delete mode 100644 system/application/libraries/geshi/whois.php delete mode 100644 system/application/libraries/geshi/winbatch.php delete mode 100644 system/application/libraries/geshi/xml.php delete mode 100644 system/application/libraries/geshi/xorg_conf.php delete mode 100644 system/application/libraries/geshi/xpp.php delete mode 100644 system/application/libraries/geshi/z80.php delete mode 100644 system/application/libraries/index.html delete mode 100644 system/application/models/file_mod.php delete mode 100644 system/application/models/index.html delete mode 100644 system/application/views/file/client.php delete mode 100644 system/application/views/file/delete_form.php delete mode 100644 system/application/views/file/deleted.php delete mode 100644 system/application/views/file/footer.php delete mode 100644 system/application/views/file/header.php delete mode 100644 system/application/views/file/html_footer.php delete mode 100644 system/application/views/file/html_header.php delete mode 100644 system/application/views/file/non_existent.php delete mode 100644 system/application/views/file/show_url.php delete mode 100644 system/application/views/file/too_big.php delete mode 100644 system/application/views/file/upload_error.php delete mode 100644 system/application/views/file/upload_form.php delete mode 100644 system/application/views/index.html (limited to 'system/application') diff --git a/system/application/config/.gitignore b/system/application/config/.gitignore deleted file mode 100644 index cde8069e1..000000000 --- a/system/application/config/.gitignore +++ /dev/null @@ -1 +0,0 @@ -*.php diff --git a/system/application/config/example/.gitignore b/system/application/config/example/.gitignore deleted file mode 100644 index f9be8dfe0..000000000 --- a/system/application/config/example/.gitignore +++ /dev/null @@ -1 +0,0 @@ -!* diff --git a/system/application/config/example/autoload.php b/system/application/config/example/autoload.php deleted file mode 100755 index 9cd7a4fce..000000000 --- a/system/application/config/example/autoload.php +++ /dev/null @@ -1,116 +0,0 @@ - '', - 'xhtml1-strict' => '', - 'xhtml1-trans' => '', - 'xhtml1-frame' => '', - 'html5' => '', - 'html4-strict' => '', - 'html4-trans' => '', - 'html4-frame' => '' - ); - -/* End of file doctypes.php */ -/* Location: application/config/doctypes.php */ \ No newline at end of file diff --git a/system/application/config/example/hooks.php b/system/application/config/example/hooks.php deleted file mode 100755 index 5e98a9b46..000000000 --- a/system/application/config/example/hooks.php +++ /dev/null @@ -1,16 +0,0 @@ - diff --git a/system/application/config/example/mimes.php b/system/application/config/example/mimes.php deleted file mode 100755 index 438f610ce..000000000 --- a/system/application/config/example/mimes.php +++ /dev/null @@ -1,105 +0,0 @@ - 'application/mac-binhex40', - 'cpt' => 'application/mac-compactpro', - 'csv' => array('text/x-comma-separated-values', 'text/comma-separated-values', 'application/octet-stream', 'application/vnd.ms-excel', 'text/csv', 'application/csv', 'application/excel', 'application/vnd.msexcel'), - 'bin' => 'application/macbinary', - 'dms' => 'application/octet-stream', - 'lha' => 'application/octet-stream', - 'lzh' => 'application/octet-stream', - 'exe' => 'application/octet-stream', - 'class' => 'application/octet-stream', - 'psd' => 'application/x-photoshop', - 'so' => 'application/octet-stream', - 'sea' => 'application/octet-stream', - 'dll' => 'application/octet-stream', - 'oda' => 'application/oda', - 'pdf' => array('application/pdf', 'application/x-download'), - 'ai' => 'application/postscript', - 'eps' => 'application/postscript', - 'ps' => 'application/postscript', - 'smi' => 'application/smil', - 'smil' => 'application/smil', - 'mif' => 'application/vnd.mif', - 'xls' => array('application/excel', 'application/vnd.ms-excel', 'application/msexcel'), - 'ppt' => array('application/powerpoint', 'application/vnd.ms-powerpoint'), - 'wbxml' => 'application/wbxml', - 'wmlc' => 'application/wmlc', - 'dcr' => 'application/x-director', - 'dir' => 'application/x-director', - 'dxr' => 'application/x-director', - 'dvi' => 'application/x-dvi', - 'gtar' => 'application/x-gtar', - 'gz' => 'application/x-gzip', - 'php' => 'application/x-httpd-php', - 'php4' => 'application/x-httpd-php', - 'php3' => 'application/x-httpd-php', - 'phtml' => 'application/x-httpd-php', - 'phps' => 'application/x-httpd-php-source', - 'js' => 'application/x-javascript', - 'swf' => 'application/x-shockwave-flash', - 'sit' => 'application/x-stuffit', - 'tar' => 'application/x-tar', - 'tgz' => 'application/x-tar', - 'xhtml' => 'application/xhtml+xml', - 'xht' => 'application/xhtml+xml', - 'zip' => array('application/x-zip', 'application/zip', 'application/x-zip-compressed'), - 'mid' => 'audio/midi', - 'midi' => 'audio/midi', - 'mpga' => 'audio/mpeg', - 'mp2' => 'audio/mpeg', - 'mp3' => array('audio/mpeg', 'audio/mpg'), - 'aif' => 'audio/x-aiff', - 'aiff' => 'audio/x-aiff', - 'aifc' => 'audio/x-aiff', - 'ram' => 'audio/x-pn-realaudio', - 'rm' => 'audio/x-pn-realaudio', - 'rpm' => 'audio/x-pn-realaudio-plugin', - 'ra' => 'audio/x-realaudio', - 'rv' => 'video/vnd.rn-realvideo', - 'wav' => 'audio/x-wav', - 'bmp' => 'image/bmp', - 'gif' => 'image/gif', - 'jpeg' => array('image/jpeg', 'image/pjpeg'), - 'jpg' => array('image/jpeg', 'image/pjpeg'), - 'jpe' => array('image/jpeg', 'image/pjpeg'), - 'png' => array('image/png', 'image/x-png'), - 'tiff' => 'image/tiff', - 'tif' => 'image/tiff', - 'css' => 'text/css', - 'html' => 'text/html', - 'htm' => 'text/html', - 'shtml' => 'text/html', - 'txt' => 'text/plain', - 'text' => 'text/plain', - 'log' => array('text/plain', 'text/x-log'), - 'rtx' => 'text/richtext', - 'rtf' => 'text/rtf', - 'xml' => 'text/xml', - 'xsl' => 'text/xml', - 'mpeg' => 'video/mpeg', - 'mpg' => 'video/mpeg', - 'mpe' => 'video/mpeg', - 'qt' => 'video/quicktime', - 'mov' => 'video/quicktime', - 'avi' => 'video/x-msvideo', - 'movie' => 'video/x-sgi-movie', - 'doc' => 'application/msword', - 'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', - 'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', - 'word' => array('application/msword', 'application/octet-stream'), - 'xl' => 'application/excel', - 'eml' => 'message/rfc822' - ); - - -/* End of file mimes.php */ -/* Location: ./system/application/config/mimes.php */ \ No newline at end of file diff --git a/system/application/config/example/routes.php b/system/application/config/example/routes.php deleted file mode 100755 index 17e5927be..000000000 --- a/system/application/config/example/routes.php +++ /dev/null @@ -1,49 +0,0 @@ - array('grin.gif', '19', '19', 'grin'), - ':lol:' => array('lol.gif', '19', '19', 'LOL'), - ':cheese:' => array('cheese.gif', '19', '19', 'cheese'), - ':)' => array('smile.gif', '19', '19', 'smile'), - ';-)' => array('wink.gif', '19', '19', 'wink'), - ';)' => array('wink.gif', '19', '19', 'wink'), - ':smirk:' => array('smirk.gif', '19', '19', 'smirk'), - ':roll:' => array('rolleyes.gif', '19', '19', 'rolleyes'), - ':-S' => array('confused.gif', '19', '19', 'confused'), - ':wow:' => array('surprise.gif', '19', '19', 'surprised'), - ':bug:' => array('bigsurprise.gif', '19', '19', 'big surprise'), - ':-P' => array('tongue_laugh.gif', '19', '19', 'tongue laugh'), - '%-P' => array('tongue_rolleye.gif', '19', '19', 'tongue rolleye'), - ';-P' => array('tongue_wink.gif', '19', '19', 'tongue wink'), - ':P' => array('raspberry.gif', '19', '19', 'raspberry'), - ':blank:' => array('blank.gif', '19', '19', 'blank stare'), - ':long:' => array('longface.gif', '19', '19', 'long face'), - ':ohh:' => array('ohh.gif', '19', '19', 'ohh'), - ':grrr:' => array('grrr.gif', '19', '19', 'grrr'), - ':gulp:' => array('gulp.gif', '19', '19', 'gulp'), - '8-/' => array('ohoh.gif', '19', '19', 'oh oh'), - ':down:' => array('downer.gif', '19', '19', 'downer'), - ':red:' => array('embarrassed.gif', '19', '19', 'red face'), - ':sick:' => array('sick.gif', '19', '19', 'sick'), - ':shut:' => array('shuteye.gif', '19', '19', 'shut eye'), - ':-/' => array('hmm.gif', '19', '19', 'hmmm'), - '>:(' => array('mad.gif', '19', '19', 'mad'), - ':mad:' => array('mad.gif', '19', '19', 'mad'), - '>:-(' => array('angry.gif', '19', '19', 'angry'), - ':angry:' => array('angry.gif', '19', '19', 'angry'), - ':zip:' => array('zip.gif', '19', '19', 'zipper'), - ':kiss:' => array('kiss.gif', '19', '19', 'kiss'), - ':ahhh:' => array('shock.gif', '19', '19', 'shock'), - ':coolsmile:' => array('shade_smile.gif', '19', '19', 'cool smile'), - ':coolsmirk:' => array('shade_smirk.gif', '19', '19', 'cool smirk'), - ':coolgrin:' => array('shade_grin.gif', '19', '19', 'cool grin'), - ':coolhmm:' => array('shade_hmm.gif', '19', '19', 'cool hmm'), - ':coolmad:' => array('shade_mad.gif', '19', '19', 'cool mad'), - ':coolcheese:' => array('shade_cheese.gif', '19', '19', 'cool cheese'), - ':vampire:' => array('vampire.gif', '19', '19', 'vampire'), - ':snake:' => array('snake.gif', '19', '19', 'snake'), - ':exclaim:' => array('exclaim.gif', '19', '19', 'excaim'), - ':question:' => array('question.gif', '19', '19', 'question') // no comma after last item - - ); - -/* End of file smileys.php */ -/* Location: ./system/application/config/smileys.php */ \ No newline at end of file diff --git a/system/application/config/example/user_agents.php b/system/application/config/example/user_agents.php deleted file mode 100755 index c01b2767d..000000000 --- a/system/application/config/example/user_agents.php +++ /dev/null @@ -1,175 +0,0 @@ - 'Windows Longhorn', - 'windows nt 5.2' => 'Windows 2003', - 'windows nt 5.0' => 'Windows 2000', - 'windows nt 5.1' => 'Windows XP', - 'windows nt 4.0' => 'Windows NT 4.0', - 'winnt4.0' => 'Windows NT 4.0', - 'winnt 4.0' => 'Windows NT', - 'winnt' => 'Windows NT', - 'windows 98' => 'Windows 98', - 'win98' => 'Windows 98', - 'windows 95' => 'Windows 95', - 'win95' => 'Windows 95', - 'windows' => 'Unknown Windows OS', - 'os x' => 'Mac OS X', - 'ppc mac' => 'Power PC Mac', - 'freebsd' => 'FreeBSD', - 'ppc' => 'Macintosh', - 'linux' => 'Linux', - 'debian' => 'Debian', - 'sunos' => 'Sun Solaris', - 'beos' => 'BeOS', - 'apachebench' => 'ApacheBench', - 'aix' => 'AIX', - 'irix' => 'Irix', - 'osf' => 'DEC OSF', - 'hp-ux' => 'HP-UX', - 'netbsd' => 'NetBSD', - 'bsdi' => 'BSDi', - 'openbsd' => 'OpenBSD', - 'gnu' => 'GNU/Linux', - 'unix' => 'Unknown Unix OS' - ); - - -// The order of this array should NOT be changed. Many browsers return -// multiple browser types so we want to identify the sub-type first. -$browsers = array( - 'Opera' => 'Opera', - 'MSIE' => 'Internet Explorer', - 'Internet Explorer' => 'Internet Explorer', - 'Shiira' => 'Shiira', - 'Firefox' => 'Firefox', - 'Chimera' => 'Chimera', - 'Phoenix' => 'Phoenix', - 'Firebird' => 'Firebird', - 'Camino' => 'Camino', - 'Netscape' => 'Netscape', - 'OmniWeb' => 'OmniWeb', - 'Mozilla' => 'Mozilla', - 'Safari' => 'Safari', - 'Konqueror' => 'Konqueror', - 'icab' => 'iCab', - 'Lynx' => 'Lynx', - 'Links' => 'Links', - 'hotjava' => 'HotJava', - 'amaya' => 'Amaya', - 'IBrowse' => 'IBrowse' - ); - -$mobiles = array( - // legacy array, old values commented out - 'mobileexplorer' => 'Mobile Explorer', -// 'openwave' => 'Open Wave', -// 'opera mini' => 'Opera Mini', -// 'operamini' => 'Opera Mini', -// 'elaine' => 'Palm', - 'palmsource' => 'Palm', -// 'digital paths' => 'Palm', -// 'avantgo' => 'Avantgo', -// 'xiino' => 'Xiino', - 'palmscape' => 'Palmscape', -// 'nokia' => 'Nokia', -// 'ericsson' => 'Ericsson', -// 'blackberry' => 'BlackBerry', -// 'motorola' => 'Motorola' - - // Phones and Manufacturers - 'motorola' => "Motorola", - 'nokia' => "Nokia", - 'palm' => "Palm", - 'iphone' => "Apple iPhone", - 'ipod' => "Apple iPod Touch", - 'sony' => "Sony Ericsson", - 'ericsson' => "Sony Ericsson", - 'blackberry' => "BlackBerry", - 'cocoon' => "O2 Cocoon", - 'blazer' => "Treo", - 'lg' => "LG", - 'amoi' => "Amoi", - 'xda' => "XDA", - 'mda' => "MDA", - 'vario' => "Vario", - 'htc' => "HTC", - 'samsung' => "Samsung", - 'sharp' => "Sharp", - 'sie-' => "Siemens", - 'alcatel' => "Alcatel", - 'benq' => "BenQ", - 'ipaq' => "HP iPaq", - 'mot-' => "Motorola", - 'playstation portable' => "PlayStation Portable", - 'hiptop' => "Danger Hiptop", - 'nec-' => "NEC", - 'panasonic' => "Panasonic", - 'philips' => "Philips", - 'sagem' => "Sagem", - 'sanyo' => "Sanyo", - 'spv' => "SPV", - 'zte' => "ZTE", - 'sendo' => "Sendo", - - // Operating Systems - 'symbian' => "Symbian", - 'SymbianOS' => "SymbianOS", - 'elaine' => "Palm", - 'palm' => "Palm", - 'series60' => "Symbian S60", - 'windows ce' => "Windows CE", - - // Browsers - 'obigo' => "Obigo", - 'netfront' => "Netfront Browser", - 'openwave' => "Openwave Browser", - 'mobilexplorer' => "Mobile Explorer", - 'operamini' => "Opera Mini", - 'opera mini' => "Opera Mini", - - // Other - 'digital paths' => "Digital Paths", - 'avantgo' => "AvantGo", - 'xiino' => "Xiino", - 'novarra' => "Novarra Transcoder", - 'vodafone' => "Vodafone", - 'docomo' => "NTT DoCoMo", - 'o2' => "O2", - - // Fallback - 'mobile' => "Generic Mobile", - 'wireless' => "Generic Mobile", - 'j2me' => "Generic Mobile", - 'midp' => "Generic Mobile", - 'cldc' => "Generic Mobile", - 'up.link' => "Generic Mobile", - 'up.browser' => "Generic Mobile", - 'smartphone' => "Generic Mobile", - 'cellphone' => "Generic Mobile" - ); - -// There are hundreds of bots but these are the most common. -$robots = array( - 'googlebot' => 'Googlebot', - 'msnbot' => 'MSNBot', - 'slurp' => 'Inktomi Slurp', - 'yahoo' => 'Yahoo', - 'askjeeves' => 'AskJeeves', - 'fastcrawler' => 'FastCrawler', - 'infoseek' => 'InfoSeek Robot 1.0', - 'lycos' => 'Lycos' - ); - -/* End of file user_agents.php */ -/* Location: ./system/application/config/user_agents.php */ \ No newline at end of file diff --git a/system/application/config/index.html b/system/application/config/index.html deleted file mode 100755 index c942a79ce..000000000 --- a/system/application/config/index.html +++ /dev/null @@ -1,10 +0,0 @@ - - - 403 Forbidden - - - -

Directory access is forbidden.

- - - \ No newline at end of file diff --git a/system/application/controllers/file.php b/system/application/controllers/file.php deleted file mode 100644 index a11255986..000000000 --- a/system/application/controllers/file.php +++ /dev/null @@ -1,232 +0,0 @@ - - * - * Licensed under GPLv3 - * (see COPYING for full license text) - * - */ - -class File extends Controller { - - function __construct() - { - parent::Controller(); - $this->load->helper(array('form', 'filebin')); - $this->load->model('file_mod'); - $this->var->cli_client = false; - $this->file_mod->var->cli_client =& $this->var->cli_client; - $this->var->latest_client = trim(file_get_contents(FCPATH.'data/client/latest')); - - // official client uses "fb-client/$version" as useragent - if (strpos($_SERVER['HTTP_USER_AGENT'], 'fb-client') !== false) { - $client_version = substr($_SERVER['HTTP_USER_AGENT'], 10); - if ($this->var->latest_client != $client_version) { - echo "Your are using an old client version. Latest is ".$this->var->latest_client."\n"; - } - $this->var->cli_client = "fb-client"; - } elseif (strpos($_SERVER['HTTP_USER_AGENT'], 'libcurl') !== false) { - $this->var->cli_client = "curl"; - } - } - - function index() - { - // Try to guess what the user would like to do. - // File uploads should be checked first because they are usually big and - // take quite some time to upload. - $id = $this->uri->segment(1); - if(isset($_FILES['file'])) { - $this->do_upload(); - } elseif ($this->input->post('content')) { - $this->do_paste(); - } elseif ($id != "file" && $this->file_mod->id_exists($id)) { - $this->file_mod->download(); - } elseif ($this->var->cli_client) { - die("No upload or unknown ID requested.\n"); - } elseif ($id && $id != "file") { - $this->file_mod->non_existent(); - } else { - $this->upload_form(); - } - } - - function client() - { - $data['title'] = 'Client'; - $data['client_link'] = base_url().'data/client/fb-'.$this->var->latest_client.'.tar.gz'; - $data['client_link_dir'] = base_url().'data/client/'; - $data['client_link_deb'] = base_url().'data/client/deb/'; - $data['client_link_slackware'] = base_url().'data/client/slackware/'; - - $this->load->view('file/header', $data); - $this->load->view('file/client', $data); - $this->load->view('file/footer', $data); - } - - function upload_form() - { - $data = array(); - $data['title'] = 'Upload'; - $data['small_upload_size'] = $this->config->item('small_upload_size'); - $data['max_upload_size'] = $this->config->item('upload_max_size'); - - $this->load->view('file/header', $data); - $this->load->view('file/upload_form', $data); - $this->load->view('file/footer', $data); - } - - // Allow CLI clients to query the server for the maxium filesize so they can - // stop the upload before wasting time and bandwith - function get_max_size() - { - echo $this->config->item('upload_max_size'); - } - - // Allow users to delete IDs if their password matches the one used when uploading - function delete() - { - $data = array(); - $id = $this->uri->segment(3); - $password = $this->file_mod->get_password(); - $data["title"] = "Delete"; - $data["id"] = $id; - if ($password != "NULL") { - if ($this->file_mod->delete_id($id)) { - if ($this->var->cli_client) { - echo $id." deleted\n"; - die(); - } else { - $this->load->view('file/header', $data); - $this->load->view('file/deleted', $data); - $this->load->view('file/footer', $data); - return; - } - } else { - if ($this->var->cli_client) { - echo 'Couldn\'t delete '.$id."\n"; - die(); - } else { - $data["msg"] = "Deletion failed. Is the password correct?"; - } - } - } - if ($this->var->cli_client) { - die(); - } else { - $this->load->view('file/header', $data); - $this->load->view('file/delete_form', $data); - $this->load->view('file/footer', $data); - } - } - - // Take the content from post instead of a file - // support textareas on the upload form - // XXX: This requires users of suhosin to adjust maxium post and request size - // TODO: merge with do_upload() - // XXX: this is too vulnerable to bots - function do_paste() - { - // FIXME: disable until bot problem is really fixed - return $this->upload_form(); - - $data = array(); - $content = $this->input->post('content')."\n"; - $extension = $this->input->post('extension'); - // Try to filter spambots - if ($this->input->post("email") != "") return; - - // prevent empty pastes from the upload form - if($content === "\n") { - $this->upload_form(); - return; - } - // TODO: Display nice error for cli clients - if(strlen($content) > $this->config->item('upload_max_size')) { - $this->load->view('file/header', $data); - $this->load->view('file/too_big'); - $this->load->view('file/footer'); - return; - } - - $id = $this->file_mod->new_id(); - $hash = md5($content); - $folder = $this->file_mod->folder($hash); - file_exists($folder) || mkdir ($folder); - $file = $this->file_mod->file($hash); - - file_put_contents($file, $content); - chmod($file, 0600); - $this->file_mod->add_file($hash, $id, 'stdin'); - $this->file_mod->show_url($id, $extension); - } - - // Handles uploaded files - // TODO: merge with do_paste() - function do_upload() - { - $data = array(); - $extension = $this->input->post('extension'); - // TODO: Display nice error for cli clients - if(!isset($_FILES['file'])) { - $this->load->view('file/header', $data); - $this->load->view('file/upload_error'); - $this->load->view('file/footer'); - return; - } - if ($_FILES['file']['error'] !== 0) { - $this->upload_form(); - return; - } - $filesize = filesize($_FILES['file']['tmp_name']); - // TODO: Display nice error for cli clients - if ($filesize > $this->config->item('upload_max_size')) { - $this->load->view('file/header', $data); - $this->load->view('file/too_big'); - $this->load->view('file/footer'); - return; - } - - $id = $this->file_mod->new_id(); - $hash = md5_file($_FILES['file']['tmp_name']); - $filename = $_FILES['file']['name']; - $folder = $this->file_mod->folder($hash); - file_exists($folder) || mkdir ($folder); - $file = $this->file_mod->file($hash); - - move_uploaded_file($_FILES['file']['tmp_name'], $file); - chmod($file, 0600); - $this->file_mod->add_file($hash, $id, $filename); - $this->file_mod->show_url($id, $extension); - } - - // Removes old files - function cron() - { - if ($this->config->item('upload_max_age') == 0) return; - - $oldest_time = (time()-$this->config->item('upload_max_age')); - $small_upload_size = $this->config->item('small_upload_size'); - $query = $this->db->query('SELECT hash, id FROM files WHERE date < ?', - array($oldest_time)); - - foreach($query->result_array() as $row) { - $file = $this->file_mod->file($row['hash']); - if (!file_exists($file)) { - $this->db->query('DELETE FROM files WHERE id = ? LIMIT 1', array($row['id'])); - continue; - } - - if (filesize($file) > $small_upload_size) { - if (filemtime($file) < $oldest_time) { - unlink($file); - $this->db->query('DELETE FROM files WHERE hash = ?', array($row['hash'])); - } else { - $this->db->query('DELETE FROM files WHERE id = ? LIMIT 1', array($row['id'])); - } - } - } - } -} - -# vim: set noet: diff --git a/system/application/controllers/index.html b/system/application/controllers/index.html deleted file mode 100644 index c942a79ce..000000000 --- a/system/application/controllers/index.html +++ /dev/null @@ -1,10 +0,0 @@ - - - 403 Forbidden - - - -

Directory access is forbidden.

- - - \ No newline at end of file diff --git a/system/application/errors/error_404.php b/system/application/errors/error_404.php deleted file mode 100644 index 1c513a205..000000000 --- a/system/application/errors/error_404.php +++ /dev/null @@ -1,34 +0,0 @@ - - -404 Page Not Found - - - -
-

- -
- - \ No newline at end of file diff --git a/system/application/errors/error_db.php b/system/application/errors/error_db.php deleted file mode 100644 index 1ce52dfc9..000000000 --- a/system/application/errors/error_db.php +++ /dev/null @@ -1,34 +0,0 @@ - - -Database Error - - - -
-

- -
- - \ No newline at end of file diff --git a/system/application/errors/error_general.php b/system/application/errors/error_general.php deleted file mode 100644 index d8610702b..000000000 --- a/system/application/errors/error_general.php +++ /dev/null @@ -1,34 +0,0 @@ - - -Error - - - -
-

- -
- - \ No newline at end of file diff --git a/system/application/errors/error_php.php b/system/application/errors/error_php.php deleted file mode 100644 index f085c2037..000000000 --- a/system/application/errors/error_php.php +++ /dev/null @@ -1,10 +0,0 @@ -
- -

A PHP Error was encountered

- -

Severity:

-

Message:

-

Filename:

-

Line Number:

- -
\ No newline at end of file diff --git a/system/application/errors/index.html b/system/application/errors/index.html deleted file mode 100644 index c942a79ce..000000000 --- a/system/application/errors/index.html +++ /dev/null @@ -1,10 +0,0 @@ - - - 403 Forbidden - - - -

Directory access is forbidden.

- - - \ No newline at end of file diff --git a/system/application/helpers/filebin_helper.php b/system/application/helpers/filebin_helper.php deleted file mode 100644 index 3d6c30b76..000000000 --- a/system/application/helpers/filebin_helper.php +++ /dev/null @@ -1,10 +0,0 @@ - - - 403 Forbidden - - - -

Directory access is forbidden.

- - - \ No newline at end of file diff --git a/system/application/hooks/index.html b/system/application/hooks/index.html deleted file mode 100644 index c942a79ce..000000000 --- a/system/application/hooks/index.html +++ /dev/null @@ -1,10 +0,0 @@ - - - 403 Forbidden - - - -

Directory access is forbidden.

- - - \ No newline at end of file diff --git a/system/application/index.html b/system/application/index.html deleted file mode 100644 index c942a79ce..000000000 --- a/system/application/index.html +++ /dev/null @@ -1,10 +0,0 @@ - - - 403 Forbidden - - - -

Directory access is forbidden.

- - - \ No newline at end of file diff --git a/system/application/language/english/index.html b/system/application/language/english/index.html deleted file mode 100644 index c942a79ce..000000000 --- a/system/application/language/english/index.html +++ /dev/null @@ -1,10 +0,0 @@ - - - 403 Forbidden - - - -

Directory access is forbidden.

- - - \ No newline at end of file diff --git a/system/application/libraries/MemcacheLibrary.php b/system/application/libraries/MemcacheLibrary.php deleted file mode 100644 index dcc08b942..000000000 --- a/system/application/libraries/MemcacheLibrary.php +++ /dev/null @@ -1,179 +0,0 @@ - -* @license GNU General Public License -* @version 0.1 -*/ - - -class MemcacheLibrary { - - /** - * variable that holds memcached backend instance - * - * @var object - * @access public - */ - public $memcachedInstance; - - /** - * variable that holds servers for the memcache - * - * @var array - * @access public - */ - public $servers = array(); - - - /** - * main CodeIgniter instance - * - * @var object - * @access public - */ - public $CI; - - /** - * constructor function for the library - */ - public function __construct() { - - /* initialize memcached instance */ - if(class_exists("Memcache")) { - $this->memcachedInstance = new Memcache(); - } else { - throw new Exception( - "Memcached client doesn't exists in your PHP configuration" - ); - } - - /* load super CI instance */ - $this->CI =& get_instance(); - - /* load default server info */ - $this->CI->config->load("memcache"); - - /* connect to default server */ - if($this->CI->config->item("MEMCACHE_HOST") && $this->CI->config->item("MEMCACHE_PORT") !== false) { - $this->addServer($this->CI->config->item("MEMCACHE_HOST"), $this->CI->config->item("MEMCACHE_PORT")); - } - - } - - /** - * adder function for the memcache servers - * - * @access public - * @return void - */ - public function addServer($server, $port) { - $this->servers[] = array( - "server" => $server, - "port" => $port, - ); - - $this->memcachedInstance->addServer($server, $port); - } - - /** - * gets related key from the memcache - * - * @access public - */ - public function get($key) { - $this->logDebugMessage(sprintf("%s key requested from memcache", $key)); - return $this->memcachedInstance->get($key); - } - - /** - * sets related key to the memcache - * - * @access public - */ - public function set($key, $value, $expire = null) { - $this->logDebugMessage( - sprintf("%s key set to memcache. (expire: %s)",$key, $expire) - ); - return $this->memcachedInstance->set($key, $value, null, $expire); - } - - /** - * deletes related key from the memcache - * - * @access public - */ - public function delete($key) { - $this->logDebugMessage(sprintf("%s key deleted from memcache.", $key)); - return $this->memcachedInstance->delete($key); - } - - /** - * increments related key from the memcache - * - * @access public - */ - public function increment($key, $offset = 1) { - $this->logDebugMessage(sprintf("%s key incremented %s times", $key, $offset)); - return $this->memcachedInstance->increment($key, $offset); - } - - /** - * decrements related key from the memcache - * - * @access public - */ - public function decrement($key, $offset = 1) { - $this->logDebugMessage(sprintf("%s key decremented %s times", $key, $offset)); - return $this->memcachedInstance->decrement($key, $offset); - } - - /** - * gets running memcached servers. - * - * @access public - * @return array - */ - public function getRunningServers() { - return $this->servers; - } - - /** - * array of server statistics, one entry per server. - * - * @access public - * @return array - */ - public function getStatistics() { - return $this->memcachedInstance->getStats(); - } - - /** - * Invalidates all items from the memcache. - * - * @access public - * @return boolean - */ - public function flush($delay = 0) { - $this->logDebugMessage(sprintf("memcache flushed! (delay: %s)", $delay)); - return $this->memcachedInstance->flush($delay); - } - - /** - * logs the memcache actions to the codeigniter's main logging system. - * - * @access private - */ - private function logDebugMessage($message) { - log_message("debug", $message); - } -} - -# vim: set noet: diff --git a/system/application/libraries/contrib/aliased.php b/system/application/libraries/contrib/aliased.php deleted file mode 100644 index 32bec9239..000000000 --- a/system/application/libraries/contrib/aliased.php +++ /dev/null @@ -1,124 +0,0 @@ - - * @version $Id: aliased.php 785 2006-07-19 10:09:45Z oracleshinoda $ - */ - -// Your config here -define("SOURCE_ROOT", "/var/www/your/source/root/"); - -// Assume you've put geshi in the include_path already -require_once("geshi.php"); - -// Get path info -$path = SOURCE_ROOT.$_SERVER['PATH_INFO']; - -// Check for dickheads trying to use '../' to get to sensitive areas -$base_path_len = strlen(SOURCE_ROOT); -$real_path = realpath($path); -if(strncmp($real_path, SOURCE_ROOT, $base_path_len)) { - exit("Stop that."); -} - -// Check file exists -if(!file_exists($path)) { - exit("File not found ($path)."); -} - -// Gather contents -$contents = file_get_contents($path); - -// Prepare GeSHi instance -$geshi =& new GeSHi($contents, "PHP"); -$geshi->set_header_type(GESHI_HEADER_PRE); -$geshi->enable_classes(); -$geshi->enable_line_numbers(GESHI_FANCY_LINE_NUMBERS, 10); -$geshi->set_overall_style('color: #000066; border: 1px solid #d0d0d0; background-color: #f0f0f0;', true); -$geshi->set_line_style('font: normal normal 95% \'Courier New\', Courier, monospace; color: #003030;', 'font-weight: bold; color: #006060;', true); -$geshi->set_code_style('color: #000020;', 'color: #000020;'); -$geshi->set_link_styles(GESHI_LINK, 'color: #000060;'); -$geshi->set_link_styles(GESHI_HOVER, 'background-color: #f0f000;'); -$geshi->set_header_content('Source code viewer'); -$geshi->set_header_content_style('font-family: Verdana, Arial, sans-serif; color: #808080; font-size: 70%; font-weight: bold; background-color: #f0f0ff; border-bottom: 1px solid #d0d0d0; padding: 2px;'); -$geshi->set_footer_content('Parsed in