Current time: 04-20-2024, 10:40 PM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GUI Bug since 1.0.0
Author Message
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #15
RE: GUI Bug since 1.0.0
(04-27-2011 08:55 PM)cuss Wrote:  Maybe you are relating username as prefix?

no - prefix (or better prefix and postfix) is meant for the user-id.

(04-27-2011 08:55 PM)cuss Wrote:  The problem is that que variable that is sent to the script is called 'id_pos', 'ID POSITION', it handles the values 'behind' and 'front'.

exactly

(04-27-2011 08:55 PM)cuss Wrote:  So,
if the id_pos == behing it should be id_username,
if the id_pos == front it should be username_id.

no!

if the id_pos == behind then name_id



client/sql_user_add.php:
Code:
...
                // we'll use domain_id in the name of the database;
                if (isset($_POST['use_dmn_id'])
                        && $_POST['use_dmn_id'] === 'on'
                        && isset($_POST['id_pos'])
                        && $_POST['id_pos'] === 'start') {
                        $db_user = $dmn_id . "_" . clean_input($_POST['user_name']);
                } else if (isset($_POST['use_dmn_id'])
                        && $_POST['use_dmn_id'] === 'on'
                        && isset($_POST['id_pos'])
                        && $_POST['id_pos'] === 'end') {
                        $db_user = clean_input($_POST['user_name']) . "_" . $dmn_id;
                }
...

client/sql_database_add.php:
Code:
...
        if (isset($_POST['use_dmn_id']) && $_POST['use_dmn_id'] === 'on') {

                // we'll use domain_id in the name of the database;
                if (isset($_POST['id_pos']) && $_POST['id_pos'] === 'start') {
                        $db_name = $dmn_id . "_" . clean_input($_POST['db_name']);
                } else if (isset($_POST['id_pos']) && $_POST['id_pos'] === 'end') {
                        $db_name = clean_input($_POST['db_name']) . "_" . $dmn_id;
                }
        }
...

so id_pos should be either "start" or "end"...

Id' really like to see the error somewhere...

/Joxi
04-27-2011 09:44 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
GUI Bug since 1.0.0 - cuss - 08-24-2010, 08:39 PM
RE: GUI Bug since 1.0.0 - RatS - 08-25-2010, 06:40 AM
RE: GUI Bug since 1.0.0 - Nuxwin - 08-25-2010, 05:42 PM
RE: GUI Bug since 1.0.0 - cuss - 08-31-2010, 04:33 AM
RE: GUI Bug since 1.0.0 - Nuxwin - 08-31-2010, 05:18 AM
RE: GUI Bug since 1.0.0 - sci2tech - 08-31-2010, 05:27 AM
RE: GUI Bug since 1.0.0 - Nuxwin - 08-31-2010, 05:49 AM
RE: GUI Bug since 1.0.0 - cuss - 04-22-2011, 02:55 AM
RE: GUI Bug since 1.0.0 - joximu - 04-22-2011, 07:42 AM
RE: GUI Bug since 1.0.0 - cuss - 04-26-2011, 07:11 PM
RE: GUI Bug since 1.0.0 - joximu - 04-27-2011, 08:15 PM
RE: GUI Bug since 1.0.0 - cuss - 04-27-2011, 08:20 PM
RE: GUI Bug since 1.0.0 - joximu - 04-27-2011, 08:30 PM
RE: GUI Bug since 1.0.0 - cuss - 04-27-2011, 08:55 PM
RE: GUI Bug since 1.0.0 - joximu - 04-27-2011 09:44 PM
RE: GUI Bug since 1.0.0 - cuss - 04-28-2011, 12:52 AM
RE: GUI Bug since 1.0.0 - joximu - 04-28-2011, 08:26 AM
RE: GUI Bug since 1.0.0 - cuss - 04-28-2011, 07:51 PM
RE: GUI Bug since 1.0.0 - joximu - 04-28-2011, 10:20 PM
RE: GUI Bug since 1.0.0 - cuss - 04-29-2011, 12:47 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)