![]() |
Many duplicate files and folders while restoring archive of web app CI 2 - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6) +--- Forum: CodeIgniter 2.x (https://forum.codeigniter.com/forumdisplay.php?fid=18) +--- Thread: Many duplicate files and folders while restoring archive of web app CI 2 (/showthread.php?tid=75470) Pages:
1
2
|
Many duplicate files and folders while restoring archive of web app CI 2 - cipyrocms - 02-09-2020 Pages will not render when trying to restore Codeigniter app from proven tar.gz. When the app was in live environment I was able to make and see edits made to files following the path: /public_html/x/application/views/y.php \public_html\x\index.php identifies SYSTEM FOLDER NAME of $system_path = 'system'; and APPLICATION FOLDER NAME of $application_folder = 'application'; I've assumed the application folder is "application" and system folder is "system" Their are numerous sets of subfolders with duplicate files and names. \public_html\index.php identifies SYSTEM FOLDER NAME of $system_path = 'system/codeigniter'; and APPLICATION FOLDER NAME of $application_folder = 'system/pyrocms'; - folders exist in those locations with complete sets of files as do others there are 110 index.php, 18 config.php, 15 routes.php files identifying different System and Application folders and default controllers. About half have the first letter lowercase and other differences I don't know how to prioritize... There is a production and test environment. RE: Many duplicate files and folders while restoring archive of web app CI 2 - jreklund - 02-09-2020 I'm afraid that's impossible to say really. As we don't see your code and only you know what's real and what's not. Depending on the size of the project, just re-write it again instead. If you don't want to re-write it you can grab the latest CI 2 here, and you will need to match it against a real strucute: https://codeigniter.com/en/download PS. I moved the thread into CodeIgniter 2.x as this are considered legacy. RE: Many duplicate files and folders while restoring archive of web app CI 2 - cipyrocms - 02-09-2020 Thank you for getting right back to me. It is a large project and previously the hosting company was able to restore in less than an hour. I was hoping there was a fundamental rule or two that could correct my current confusion. RE: Many duplicate files and folders while restoring archive of web app CI 2 - jreklund - 02-09-2020 It feels like they restored it multiple times, if you end up with multiple sub-folders containing the same data. They odd part are that the index.php points to different system and/or application folder namnes. The main one that tries to load right now are /public_html/index.php but if it's the one you want... we can't tell you. RE: Many duplicate files and folders while restoring archive of web app CI 2 - cipyrocms - 02-09-2020 That sounds good. I will configure the setting to start from there and do my best to follow the routing. Thank you.I was told it was done to generate confusion... RE: Many duplicate files and folders while restoring archive of web app CI 2 - jreklund - 02-09-2020 That just utterly stupid to create an application that include unusable code. A honeypot with multiple files... RE: Many duplicate files and folders while restoring archive of web app CI 2 - cipyrocms - 02-13-2020 I'm still not able to figure things out. If you get and chance and can look below a the /public_html/index.php contents I would appreciate it. PHP Code: /* APPLICATION ENVIRONMENT RE: Many duplicate files and folders while restoring archive of web app CI 2 - cipyrocms - 02-13-2020 Most recent Notes: System Folder is $system_path = 'system/codeigniter'; $application_folder = 'system/pyrocms'; $addon_folder = 'addons'; \public_html\system\codeigniter: folders: core; database; fonts; helpers;language; libraries; .htaccess file (just says deny from all) and index.html (directory access is forbidden) These are the cleanest folders I've seen. Inside core folder: Benchmark.php;Codeigniter.php;Common.php;Config.php;Controllers.php;Exceptions.php;Hooks.php;index.html;Input.php;Lang.php;Loader.php;Model.php;Output.php;Router.php;URI.php;Utf8.php \public_html\system\pyrocms: Has 18 folders; assets; cache; cache_client; config; controllers; core; errors; helpers; hooks; language; libraries; logs; migrations; modules; plugins; themes; views; widgets; and index.html that is blank public_html\system\pyrocms\controllers only 3 controllers - all lower case admin.php; ajax.php; upgrade.php public_html\system\pyrocms\config\routes.php config folder has 25 files and there is no pages controller in controllers folder $route['default_controller'] = 'pages'; $route['404_override'] = 'pages'; $route['admin/help/([a-zA-Z_-]+)'] = 'admin/help/$1'; $route['admin/([a-zA-Z_-]+)/(:any)'] = '$1/admin/$2'; $route['admin/(login|logout)'] = 'admin/$1'; $route['admin/([a-zA-Z_-]+)'] = '$1/admin/index'; $route['register'] = 'users/register'; $route['user/([\w]+)'] = 'users/profile/view/$1'; $route['my-profile'] = 'users/profile/in RE: Many duplicate files and folders while restoring archive of web app CI 2 - jreklund - 02-14-2020 Sounds correct to me. The framework itself are in system/codeigniter, normally named system. And the application are in system/pyrocms, normally named application. So maybe you can ignore/remove everything else... But if that's the main index.php file I do not know. Do a search in all your files for $system_path and see if they have selected a different folder. RE: Many duplicate files and folders while restoring archive of web app CI 2 - cipyrocms - 02-14-2020 Thanks for getting back to me. I'm not sure if there is a better way to send things The only other place I see it identified is the subfolder public_html\dox\index.php: $system_path = 'system'; We previously had this setup up: Production: https:\\falconcredi...com/dox Development: https:\\client.falconcredit...com/dox There were many duplicates for production but client.falcon only showed up in a few spots. H:\public_html\system\pyrocms - has default controller from client.falco config.php H:public_html\client\index.php $system_folder = "system"; $application_folder = "application";BASEPATH.'codeigniter/CodeIgniter'.EXT; homedir\public_html\clear.php: only locations for client.falconcredi public_html\client\system\application\config\config.php: $config['base_url'] = "https://client.falconcredit.com/"; public_html\system\pyrocms\config\database.php: 62 // Live 63 switch($_SERVER['HTTP_HOST']) { 64: case 'client.falconcre.com': 65 $db['live']['hostname'] = 'localhost'; 66 $db['live']['username'] = 'falconcr_clientn'; public_html\system\pyrocms\config\pyrocache.php: 4 5 switch($_SERVER['HTTP_HOST']) { 6: case 'client.falconcreditm.com': 7 $config['cache_dir'] = APPPATH.'cache_client/'; 8 break; H:\public_html\client\ \public_html\index.php: System Folder is $system_path = 'system/codeigniter'; $application_folder = 'system/pyrocms'; $addon_folder = 'addons'; $system_path = 'system/codeigniter'; |