eevan79 Posted June 9, 2010 Share Posted June 9, 2010 I would like to add some variables via the admin panel (its forum script) that are defined in the file setup_options.php (in root)? So I just need to read the variable first and then I can edit them via the admin panel (eg. as dropdown or textarea). Here is some variables: $ DB = 'mysql'; $Dbhost = 'localhost'; $Dbname = 'myforum'; $DBusr = 'root'; $DBpwd =''; $Emailadmin = 0; $Emailusers = 2; $post_text_maxlength=10240; $Post_word_maxlength = 85; $Topic_max_length = 100; $Viewmaxtopic = 30; $Viewlastdiscussions = 20; $Viewmaxreplys = 15; $Viewmaxsearch = 20; $Viewpagelim = 5000; $ViewTopicsIfOnlyOneForum = 0; $ProtectWholeForum = 0; $ProtectWholeForumPwd = 'pwd'; $PostRange = 60; $DateOnlyFormat = 'j F Y'; $TimeOnlyFormat = 'H: i'; Basicly it is reading and writing. php file. How can I do that (I hope its not dificult)? Thanks. Link to comment https://forums.phpfreaks.com/topic/204273-readwrite-setupphp/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.