rebelcreek Posted February 19, 2011 Share Posted February 19, 2011 Can anyone help me make this more secure? I want to link the info to .inc instead of pulling this info straite from the page // cPanel info $cpuser = 'userhere'; // cPanel username $cppass = 'passwordhere'; // cPanel password $cpdomain = 'mysite.com'; // cPanel domain or IP $cpskin = 'x'; // cPanel skin. Mostly x or x2. // See following URL to know how to determine your cPanel skin // http://www.zubrag.com/articles/determine-cpanel-skin.php // Default email info for new email accounts // These will only be used if not passed via URL $epass = 'hispassword'; // email password $edomain = 'mysite.com'; // email domain (usually same as cPanel domain above) $equota = 20; // amount of space in megabytes The only time it pulls the info is in this line // Create email account $f = fopen ("http://$cpuser:$cppass@$cpdomain:2082/frontend/$cpskin/mail/doaddpop.html?email=$euser&domain=$edomain&password=$epass"a=$equota", "r"); if (!$f) { $msg = 'Cannot create email account. Possible reasons: "fopen" function allowed on your server, PHP is running in SAFE mode'; break; } $msg = "<h2>Email account {$euser}@{$edomain} created.</h2>"; Thank you for the h elp once again Quote Link to comment https://forums.phpfreaks.com/topic/228210-making-a-code-mre-secure/ Share on other sites More sharing options...
cunoodle2 Posted February 19, 2011 Share Posted February 19, 2011 require_once "config.php"; ?? Quote Link to comment https://forums.phpfreaks.com/topic/228210-making-a-code-mre-secure/#findComment-1176921 Share on other sites More sharing options...
rebelcreek Posted February 19, 2011 Author Share Posted February 19, 2011 Sometimes I'm just stupid lol Thanks it worked except no .php but I use .inc for protection Quote Link to comment https://forums.phpfreaks.com/topic/228210-making-a-code-mre-secure/#findComment-1176953 Share on other sites More sharing options...
Pikachu2000 Posted February 19, 2011 Share Posted February 19, 2011 What do you mean you use .inc for protection? Quote Link to comment https://forums.phpfreaks.com/topic/228210-making-a-code-mre-secure/#findComment-1176955 Share on other sites More sharing options...
rebelcreek Posted February 19, 2011 Author Share Posted February 19, 2011 in my config its .inc instead of .php then I block it in my .htaccess Quote Link to comment https://forums.phpfreaks.com/topic/228210-making-a-code-mre-secure/#findComment-1176957 Share on other sites More sharing options...
Pikachu2000 Posted February 19, 2011 Share Posted February 19, 2011 That makes more sense than what it sounded like at first . . . Quote Link to comment https://forums.phpfreaks.com/topic/228210-making-a-code-mre-secure/#findComment-1176958 Share on other sites More sharing options...
rebelcreek Posted February 19, 2011 Author Share Posted February 19, 2011 lol sorry Quote Link to comment https://forums.phpfreaks.com/topic/228210-making-a-code-mre-secure/#findComment-1176959 Share on other sites More sharing options...
rebelcreek Posted February 19, 2011 Author Share Posted February 19, 2011 should I post full script if someone else wants it? Quote Link to comment https://forums.phpfreaks.com/topic/228210-making-a-code-mre-secure/#findComment-1176960 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.