Current time: 09-23-2024, 04:08 AM Hello There, Guest! (LoginRegister)


Post Reply 
Ajouter un champ lors de la saisie du domaine
Author Message
lepetitalbert Offline
Junior Member
*

Posts: 17
Joined: Jun 2008
Reputation: 0
Post: #6
RE: Ajouter un champ lors de la saisie du domaine
Salut,

alors je suis sur une RC4 !

ispcp/gui/reseller/rau1.php :
Code:
function check_user_data() {
    global $dmn_name; // Domain name
++  global $dmn_ext; // Domain ext
    global $dmn_chp; // choosed hosting plan;
    global $dmn_pt;
    global $cfg, $sql;
    // personal template
    $even_txt = "";

++    if (isset($_POST['dmn_ext'])) {
++        $dmn_ext = strtolower($_POST['dmn_ext']);
++        //$dmn_name = encode_idna($dmn_name);
++    }


    if (isset($_POST['dmn_name'])) {
        $dmn_name = strtolower($_POST['dmn_name']);
++      $dmn_name .= $dmn_ext;
        $dmn_name = encode_idna($dmn_name);
    }

ispcp/gui/themes/omega_original/reseller/rau1.tpl ligne 79
Code:
<!-- BDP: add_form -->
<tr>
    <td width="25">&nbsp;</td>
mod    <td colspan="3" class="content3">{TR_CORE_DATA}</td> mod : colspan=3
</tr>
<tr>
    <td width="25">&nbsp;</td>
    <td class="content2" width="200">
{TR_DOMAIN_NAME} <img src="{THEME_COLOR_PATH}/images/icons/help.png" width="16" height="16" onMouseOver="showTip('dmn_help', event)" onMouseOut="hideTip('dmn_help')" />
</td>
    <td class="content">
        <input type="text" name=dmn_name value="{DMN_NAME_VALUE}" style="width:210px" class="textinput">
    </td>
++    <td class="content">
++        <select name="dmn_ext">
++            <option>.fr</option>
++            <option>.org</option>
++            <option>.com</option>
++        </select>
++    </td>
</tr>
<!-- BDP: add_user -->

Il faut rajouter un des tests selon ce que tu veux :

- test -> ext .fr -> test.fr

- test.com -> ext .fr -> test.com.fr

A+
10-03-2008 11:17 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Ajouter un champ lors de la saisie du domaine - lepetitalbert - 10-03-2008 11:17 PM

Forum Jump:


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