MantisBT - ATutor
View Issue Details
0004444ATutorAdminpublic2010-08-02 04:302010-12-20 10:19
greg 
cindy 
normalminoralways
closedfixed 
 
2.0.1 
SVN
0004444: update url to lang db
Post a patch with the new URL to the location of the language db on atutor.ca
No tags attached.
Issue History
2010-08-02 04:30gregNew Issue
2010-08-02 04:30gregAffects version => SVN
2010-08-04 05:50harrisStatusnew => assigned
2010-08-04 05:50harrisAssigned To => harris
2010-08-04 07:42harrisNote Added: 0004481
2010-08-04 08:13harrisNote Added: 0004482
2010-08-04 08:13harrisNote Edited: 0004482
2010-09-13 08:56harrisAssigned Toharris => greg
2010-09-18 13:26gregNote Added: 0004611
2010-09-22 07:03gregAssigned Togreg => cindy
2010-09-22 07:06gregNote Added: 0004624
2010-10-06 09:37cindyStatusassigned => resolved
2010-10-06 09:37cindyFixed in Version => 2.0.1
2010-10-06 09:37cindyResolutionopen => fixed
2010-10-06 09:37cindyNote Added: 0004695
2010-12-20 10:19gregStatusresolved => closed

Notes
(0004481)
harris   
2010-08-04 07:42   
atutor.ca doesn't seem to be the valid address.


Warning: mysql_connect() [function.mysql-connect]: Access denied for user
(0004482)
harris   
2010-08-04 08:13   
Should we allow non-localhost access to our database? I don't think it's a good idea to. atutor.ca timeout issues was probably related to this. Some host might have used the mysql access to overflow our database to cause timeout.

(0004611)
greg   
2010-09-18 13:26   
bump
(0004624)
greg   
2010-09-22 07:06   
We need to change how partical language pack are imported into ATutor. Replace direct access to mysql, with a cron that generates all language packs nightly, that can be imported the same way published language packs are. Create a directory at the same level as the version number directories called incomplete/ .
(0004695)
cindy   
2010-10-06 09:37   
SVN revision: 10300

Solution: To prevent exposing the mysql login of the language database @atutor.ca:
1. A new script @ atutor.ca to retrieve the request language pack;
2. Modified atutor "Translate" page to use the new atutor.ca script to retrieve and import the remote partial language pack.

New script @ atutor.ca
http://atutor.ca/atutor/translate/get_lang_pack.php?lang_code=.. [^]

Modified scripts in ATutor:
include/lib/constants.inc.php
mods/_core/languages/classes/LanguageManager.class.php
mods/_core/languages/language_import.php