Yeah, indeed, i haven't choose the best way to arrange the coding. I like to make it very readable because i have lacks of memory when i see scrambled code or smth of this. Everybody told me i have to give up against "mysql_*" function because it is starting to get deprecated. It is already on GitHub, so everybody can cotribute about its root. Have any ideas? Go and make some changes on the repository.
To be honest, i use some constants in the SETTINGS.php file which are imported in the func.config.php file. Firstly, i made them so i could make settings.php and func.config.php separately for the fact that i started to distribute it with obfuscated source, which wasn't a great idea. It remained the same in a week or two i should make major changes. Thanks a lot for the suggestion, too! You rock!