From a759c5b75b66894b1902327097185840a2557f86 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Mon, 8 Feb 2021 12:00:34 +0100 Subject: [PATCH] move website into php library directory --- lib/setup/SetupClass.php | 3 +-- {website => lib/website}/deletable.php | 0 {website => lib/website}/details.php | 0 {website => lib/website}/lookup.php | 0 {website => lib/website}/polygons.php | 0 {website => lib/website}/reverse.php | 0 {website => lib/website}/search.php | 0 {website => lib/website}/status.php | 0 8 files changed, 1 insertion(+), 2 deletions(-) rename {website => lib/website}/deletable.php (100%) rename {website => lib/website}/details.php (100%) rename {website => lib/website}/lookup.php (100%) rename {website => lib/website}/polygons.php (100%) rename {website => lib/website}/reverse.php (100%) rename {website => lib/website}/search.php (100%) rename {website => lib/website}/status.php (100%) diff --git a/lib/setup/SetupClass.php b/lib/setup/SetupClass.php index 4e9daaf8..2a498287 100755 --- a/lib/setup/SetupClass.php +++ b/lib/setup/SetupClass.php @@ -754,8 +754,7 @@ class SetupFunctions fwriteConstDef($rFile, 'Use_US_Tiger_Data', getSettingBool('USE_US_TIGER_DATA')); fwriteConstDef($rFile, 'MapIcon_URL', getSetting('MAPICON_URL')); - // XXX scripts should go into the library. - fwrite($rFile, 'require_once(\''.CONST_DataDir.'/website/'.$sScript."');\n"); + fwrite($rFile, 'require_once(\''.CONST_LibDir.'/website/'.$sScript."');\n"); fclose($rFile); chmod(CONST_InstallDir.'/website/'.$sScript, 0755); diff --git a/website/deletable.php b/lib/website/deletable.php similarity index 100% rename from website/deletable.php rename to lib/website/deletable.php diff --git a/website/details.php b/lib/website/details.php similarity index 100% rename from website/details.php rename to lib/website/details.php diff --git a/website/lookup.php b/lib/website/lookup.php similarity index 100% rename from website/lookup.php rename to lib/website/lookup.php diff --git a/website/polygons.php b/lib/website/polygons.php similarity index 100% rename from website/polygons.php rename to lib/website/polygons.php diff --git a/website/reverse.php b/lib/website/reverse.php similarity index 100% rename from website/reverse.php rename to lib/website/reverse.php diff --git a/website/search.php b/lib/website/search.php similarity index 100% rename from website/search.php rename to lib/website/search.php diff --git a/website/status.php b/lib/website/status.php similarity index 100% rename from website/status.php rename to lib/website/status.php -- 2.45.2