Branch: Tag:

2002-06-05

2002-06-05 10:18:18 by Martin Nilsson <mani@lysator.liu.se>

Moved etc to data

Rev: server/base_server/basic_defvar.pike:1.30
Rev: server/base_server/configuration.pike:1.518
Rev: server/base_server/global_variables.pike:1.89
Rev: server/base_server/roxen.pike:1.797
Rev: server/base_server/roxenloader.pike:1.329
Rev: server/bin/buildenv.pike:1.8
Rev: server/bin/create_configif.pike:1.41
Rev: server/bin/functions:1.11
Rev: server/data/.cvsignore:1.2
Rev: server/data/Makefile:1.3
Rev: server/data/Makefile.in:1.3
Rev: server/data/contenttypes:1.2
Rev: server/data/example_pages/eng/fonts.html:1.2
Rev: server/data/example_pages/eng/help.html:1.1
Rev: server/data/example_pages/eng/index.html:1.5
Rev: server/data/example_pages/index.html:1.2
Rev: server/data/example_pages/template:1.2
Rev: server/data/extensions:1.49
Rev: server/data/include/config.h:1.32
Rev: server/data/include/config_interface.h:1.10
Rev: server/data/include/module.h:1.55
Rev: server/data/include/module_constants.h:1.5
Rev: server/data/include/request_trace.h:1.10
Rev: server/data/include/roxen.h:1.23
Rev: server/data/include/security.h:1.1
Rev: server/data/include/stat.h:1.5
Rev: server/data/include/timers.h:1.1
Rev: server/data/include/udp.h:1.2
Rev: server/data/include/variables.h:1.12
Rev: server/data/include/version.h:1.538
Rev: server/data/maps/worldmap:1.1
Rev: server/data/modref.xml:1.1
Rev: server/data/more_extensions/apache:1.2
Rev: server/data/more_extensions/chemical:1.3
Rev: server/data/more_extensions/inlinetypes:1.2
Rev: server/data/mysql-template.tar:1.3
Rev: server/data/randomtext/README:1.1
Rev: server/data/randomtext/company:1.2
Rev: server/data/randomtext/poetry:1.2
Rev: server/data/roxen_master.pike:1.126
Rev: server/data/supports:1.91
Rev: server/data/test/config/Test_server_1:1.8
Rev: server/data/test/filesystem/10k.raw:1.1
Rev: server/data/test/filesystem/1k.raw:1.1
Rev: server/data/test/filesystem/hidden.inv:1.1
Rev: server/data/test/filesystem/index.html:1.1
Rev: server/data/test/filesystem/test1.html:1.1
Rev: server/data/test/filesystem/test_rxml_package:1.1
Rev: server/data/test/scripts/functions.pike:1.1
Rev: server/data/test/scripts/setup.pike:1.2
Rev: server/data/test/tests/RoxenTest_argcache.pike:1.4
Rev: server/data/test/tests/RoxenTest_base.pike:1.7
Rev: server/data/test/tests/RoxenTest_help.pike:1.4
Rev: server/data/test/tests/db/RoxenTest_dbbase.pike:1.1
Rev: server/data/test/tests/db/RoxenTest_dbmanager.pike:1.7
Rev: server/data/test/tests/echo.pike:1.2
Rev: server/data/test/tests/ftp/RoxenTest_ftp.pike:1.2
Rev: server/data/test/tests/ftp/ftp_test.pike:1.3
Rev: server/data/test/tests/http/RoxenTest_InternalImg.pike:1.1
Rev: server/data/test/tests/http/RoxenTest_http.pike:1.5
Rev: server/data/test/tests/http/http010.pike:1.2
Rev: server/data/test/tests/http/http09.pike:1.3
Rev: server/data/test/tests/http/http10.pike:1.8
Rev: server/data/test/tests/http/http_common.pike:1.7
Rev: server/data/test/tests/http/internal.pike:1.3
Rev: server/data/test/tests/http/ping.pike:1.2
Rev: server/data/test/tests/pike_async_process_test_common.pike:1.5
Rev: server/data/test/tests/pike_test_common.pike:1.10
Rev: server/data/test/tests/rxml/RoxenTest_BaseRXML.xml:1.48
Rev: server/data/test/tests/rxml/RoxenTest_Compat.xml:1.2
Rev: server/data/test/tests/rxml/RoxenTest_PikeTag.xml:1.1
Rev: server/data/test/tests/rxml/RoxenTest_RXMLTags.xml:1.28
Rev: server/data/test/tests/rxml/RoxenTest_SQLtag.xml:1.3
Rev: server/data/test/tests/rxml/RoxenTest_SessionTag.xml:1.2
Rev: server/data/test/tests/rxml/RoxenTest_Tablify.xml:1.1
Rev: server/data/test/tests/rxml/RoxenTest_WashHtmlTag.xml:1.2
Rev: server/data/test/tests/rxml/RoxenTest_Wiretap.xml:1.1
Rev: server/data/test/tests/userdbmodules/RoxenTest_userdbs.pike:1.6
Rev: server/etc/.cvsignore:1.2(DEAD)
Rev: server/etc/Makefile:1.3(DEAD)
Rev: server/etc/Makefile.in:1.3(DEAD)
Rev: server/etc/contenttypes:1.2(DEAD)
Rev: server/etc/example_pages/eng/fonts.html:1.2(DEAD)
Rev: server/etc/example_pages/eng/help.html:1.1(DEAD)
Rev: server/etc/example_pages/eng/index.html:1.5(DEAD)
Rev: server/etc/example_pages/index.html:1.2(DEAD)
Rev: server/etc/example_pages/template:1.2(DEAD)
Rev: server/etc/extensions:1.49(DEAD)
Rev: server/etc/include/config.h:1.32(DEAD)
Rev: server/etc/include/config_interface.h:1.10(DEAD)
Rev: server/etc/include/module.h:1.55(DEAD)
Rev: server/etc/include/module_constants.h:1.5(DEAD)
Rev: server/etc/include/request_trace.h:1.10(DEAD)
Rev: server/etc/include/roxen.h:1.23(DEAD)
Rev: server/etc/include/security.h:1.1(DEAD)
Rev: server/etc/include/stat.h:1.5(DEAD)
Rev: server/etc/include/timers.h:1.1(DEAD)
Rev: server/etc/include/udp.h:1.2(DEAD)
Rev: server/etc/include/variables.h:1.12(DEAD)
Rev: server/etc/include/version.h:1.538(DEAD)
Rev: server/etc/maps/worldmap:1.1(DEAD)
Rev: server/etc/modref.xml:1.1(DEAD)
Rev: server/etc/more_extensions/apache:1.2(DEAD)
Rev: server/etc/more_extensions/chemical:1.3(DEAD)
Rev: server/etc/more_extensions/inlinetypes:1.2(DEAD)
Rev: server/etc/mysql-template.tar:1.3(DEAD)
Rev: server/etc/randomtext/README:1.1(DEAD)
Rev: server/etc/randomtext/company:1.2(DEAD)
Rev: server/etc/randomtext/poetry:1.2(DEAD)
Rev: server/etc/roxen_master.pike:1.126(DEAD)
Rev: server/etc/supports:1.91(DEAD)
Rev: server/etc/test/config/Test_server_1:1.8(DEAD)
Rev: server/etc/test/filesystem/10k.raw:1.1(DEAD)
Rev: server/etc/test/filesystem/1k.raw:1.1(DEAD)
Rev: server/etc/test/filesystem/hidden.inv:1.1(DEAD)
Rev: server/etc/test/filesystem/index.html:1.1(DEAD)
Rev: server/etc/test/filesystem/test1.html:1.1(DEAD)
Rev: server/etc/test/filesystem/test_rxml_package:1.1(DEAD)
Rev: server/etc/test/scripts/functions.pike:1.1(DEAD)
Rev: server/etc/test/scripts/setup.pike:1.2(DEAD)
Rev: server/etc/test/tests/RoxenTest_argcache.pike:1.4(DEAD)
Rev: server/etc/test/tests/RoxenTest_base.pike:1.7(DEAD)
Rev: server/etc/test/tests/RoxenTest_help.pike:1.4(DEAD)
Rev: server/etc/test/tests/db/RoxenTest_dbbase.pike:1.1(DEAD)
Rev: server/etc/test/tests/db/RoxenTest_dbmanager.pike:1.7(DEAD)
Rev: server/etc/test/tests/echo.pike:1.2(DEAD)
Rev: server/etc/test/tests/ftp/RoxenTest_ftp.pike:1.2(DEAD)
Rev: server/etc/test/tests/ftp/ftp_test.pike:1.3(DEAD)
Rev: server/etc/test/tests/http/RoxenTest_InternalImg.pike:1.1(DEAD)
Rev: server/etc/test/tests/http/RoxenTest_http.pike:1.5(DEAD)
Rev: server/etc/test/tests/http/http010.pike:1.2(DEAD)
Rev: server/etc/test/tests/http/http09.pike:1.3(DEAD)
Rev: server/etc/test/tests/http/http10.pike:1.8(DEAD)
Rev: server/etc/test/tests/http/http_common.pike:1.7(DEAD)
Rev: server/etc/test/tests/http/internal.pike:1.3(DEAD)
Rev: server/etc/test/tests/http/ping.pike:1.2(DEAD)
Rev: server/etc/test/tests/pike_async_process_test_common.pike:1.5(DEAD)
Rev: server/etc/test/tests/pike_test_common.pike:1.10(DEAD)
Rev: server/etc/test/tests/rxml/RoxenTest_BaseRXML.xml:1.48(DEAD)
Rev: server/etc/test/tests/rxml/RoxenTest_Compat.xml:1.2(DEAD)
Rev: server/etc/test/tests/rxml/RoxenTest_PikeTag.xml:1.1(DEAD)
Rev: server/etc/test/tests/rxml/RoxenTest_RXMLTags.xml:1.28(DEAD)
Rev: server/etc/test/tests/rxml/RoxenTest_SQLtag.xml:1.3(DEAD)
Rev: server/etc/test/tests/rxml/RoxenTest_SessionTag.xml:1.2(DEAD)
Rev: server/etc/test/tests/rxml/RoxenTest_Tablify.xml:1.1(DEAD)
Rev: server/etc/test/tests/rxml/RoxenTest_WashHtmlTag.xml:1.2(DEAD)
Rev: server/etc/test/tests/rxml/RoxenTest_Wiretap.xml:1.1(DEAD)
Rev: server/etc/test/tests/userdbmodules/RoxenTest_userdbs.pike:1.6(DEAD)
Rev: server/modules/configuration/config_filesystem.pike:1.110
Rev: server/modules/configuration/roxen_test.pike:1.53
Rev: server/modules/examples/common_api.pike:1.9
Rev: server/modules/misc/contenttypes.pike:1.24
Rev: server/modules/misc/randomtext.pike:1.8
Rev: server/modules/tags/rxmltags.pike:1.373
Rev: server/pike_modules/DBManager.pmod:1.55
Rev: server/pike_modules/Map.pmod:1.5
Rev: server/start:1.197

5:   // @appears Configuration   //! A site's main configuration    - constant cvs_version = "$Id: configuration.pike,v 1.517 2002/06/03 20:36:10 per Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.518 2002/06/05 10:09:14 nilsson Exp $";   #include <module.h>   #include <module_constants.h>   #include <roxen.h>
1021:    // Disallow "internal-gopher-..", it won't really do much harm, but a list of    // all files in '..' might be retrieved (that is, the actual directory    // file was sent to the browser) -  Stdio.File f = lopen("etc/images/dir/"+from+".gif","r"); +  Stdio.File f = lopen("data/images/dir/"+from+".gif","r");    if (f)    return (["file":f, "type":"image/gif", "stat":f->stat(),]);    else
1153:    Stdio.File f;       if( !id->misc->internal_get ) -  if(f = lopen("etc/images/"+from+".gif", "r")) +  if(f = lopen("data/images/"+from+".gif", "r"))    return (["file":f, "type":"image/gif", "stat":f->stat()]);    -  if(f = lopen("etc/images/"+from+".png", "r")) +  if(f = lopen("data/images/"+from+".png", "r"))    return (["file":f, "type":"image/png", "stat":f->stat()]);    -  if(f = lopen("etc/images/"+from+".jpg", "r")) +  if(f = lopen("data/images/"+from+".jpg", "r"))    return (["file":f, "type":"image/jpeg", "stat":f->stat()]);    -  if(f = lopen("etc/images/"+from+".xcf", "r")) +  if(f = lopen("data/images/"+from+".xcf", "r"))    return (["file":f, "type":"image/x-gimp-image", "stat":f->stat()]);    -  if(f = lopen("etc/images/"+from+".gif", "r")) +  if(f = lopen("data/images/"+from+".gif", "r"))    return (["file":f, "type":"image/gif", "stat":f->stat()]);    // File not found.    return 0;