Ankündigung

Einklappen
Keine Ankündigung bisher.

Eine Frage

Einklappen

Neue Werbung 2019

Einklappen
X
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • Eine Frage

    Hallo leute ich würde gern wissen,wie ich hier mehrere seiten eintragen kann.
    Jetzt ist es nur möglich eine Seite einzutragen,ich will aber um die 5-6 Seiten.Wie mache ich es?

    hier ist die joinform.html seite.Hier will ich mehrere Seiten eintragen können.
    Code:
    <p class="{$error_style_top}">{$error_top}</p>
    
    <form action="index.php?a=join" method="post" name="join_form">
    <fieldset>
    <legend>{$lng->join_user}</legend>
    <div class="{$error_style_username}"><label class="form">{$lng->g_username}<br />
    <input type="text" name="u" size="20" value="{$username}" />
    {$error_username}
    </label></div><br />
    <div class="{$error_style_password}">
    <label class="form" style="float: left; margin-right: 2em;">{$lng->g_password}<br />
    <input type="password" name="password" size="20" />
    </label>
    <label class="form">{$lng->join_confirm_password}<br/ >
    <input type="password" name="confirm_password" size="20" />
    {$error_password}
    </label></div>
    </fieldset>
    
    <fieldset>
    <legend>{$lng->join_website}</legend>
    <div class="{$error_style_url}"><label class="form">{$lng->g_url}<br />
    <input type="text" name="url" size="50" value="{$url}" />
    {$error_url}
    </label></div><br />
    <div class="{$error_style_title}"><label class="form">{$lng->g_title}<br />
    <input type="text" name="title" size="50" value="{$title}" />
    {$error_title}
    </label></div><br />
    <label class="form">{$lng->g_description}<br />
    <textarea cols="40" rows="5" name="description">{$description}</textarea><br /><br />
    </label>
    <label class="form">{$lng->g_category}<br />
    {$categories_menu}<br /><br />
    </label>
    <div class="{$error_style_banner_url}"><label class="form">{$lng->g_banner_url} {$join_banner_size}<br />
    <input type="text" name="banner_url" size="50" value="{$banner_url}" />
    {$error_banner_url}
    </label></div><br />
    <div class="{$error_style_email}"><label class="form">{$lng->g_email}<br />
    <input type="text" name="email" size="50" value="{$email}" />
    {$error_email}
    </label></div>
    </fieldset>
    
    <fieldset>
    <legend>{$lng->join_security}</legend>
    {$join_captcha}
    {$join_question}
    <input name="submit" type="submit" value="{$lng->join_header}" />
    </fieldset>
    </form>

  • #2
    und hier ist die join.php seite

    Code:
     <?php
    
    class join extends join_edit {
      function join() {
        global $FORM, $LNG, $TMPL;
    
        $TMPL['header'] = $LNG['join_header'];
    
        $TMPL['error_username'] = '';
        $TMPL['error_style_username'] = '';
        $TMPL['error_password'] = '';
        $TMPL['error_style_password'] = '';
        $TMPL['error_url'] = '';
        $TMPL['error_style_url'] = '';
        $TMPL['error_email'] = '';
        $TMPL['error_style_email'] = '';
        $TMPL['error_title'] = '';
        $TMPL['error_style_title'] = '';
        $TMPL['error_banner_url'] = '';
        $TMPL['error_style_banner_url'] = '';
        $TMPL['error_top'] = '';
        $TMPL['error_style_top'] = '';
        $TMPL['error_captcha'] = '';
        $TMPL['error_style_captcha'] = '';
        $TMPL['error_question'] = '';
        $TMPL['error_style_question'] = '';
    
        if (!isset($FORM['submit'])) {
          $this->form();
        }
        else {
          $this->process();
        }
      }
    
      function form() {
        global $CONF, $FORM, $LNG, $TMPL;
    
        // Display the CAPTCHA?
        if ($CONF['captcha']) {
          $TMPL['rand'] = rand(1, 1000000);
          $TMPL['join_captcha'] = $this->do_skin('join_captcha');
        }
        else {
          $TMPL['join_captcha'] = '';
        }
    
       



    unten gehts weiter....


    Kommentar


    • #3
      join.php

      Code:
      
          else 
            $TMPL['join_banner_size'] = '';
          }
      
          if (!isset($TMPL['username'])) { $TMPL['username'] = ''; }
          if (!isset($TMPL['url'])) { $TMPL['url'] = 'http://'; }
          if (!isset($TMPL['title'])) { $TMPL['title'] = ''; }
          if (!isset($TMPL['description'])) { $TMPL['description'] = ''; }
          if (!isset($TMPL['banner_url'])) { $TMPL['banner_url'] = 'http://'; }
          if (!isset($TMPL['email'])) { $TMPL['email'] = ''; }
      
          if (isset($TMPL['url'])) { $TMPL['url'] = stripslashes($TMPL['url']); }
          if (isset($TMPL['title'])) { $TMPL['title'] = stripslashes($TMPL['title']); }
          if (isset($TMPL['description'])) { $TMPL['description'] = 

      Kommentar


      • #4
        Sind ja über zig tausend linien sorry.

        Code:
        stripslashes($TMPL['description']); }
            if (isset($TMPL['category'])) { $TMPL['category'] = stripslashes($TMPL['category']); }
            if (isset($TMPL['banner_url'])) { $TMPL['banner_url'] = stripslashes($TMPL['banner_url']); }
            if (isset($TMPL['email'])) { $TMPL['email'] = stripslashes($TMPL['email']); }
        
            $TMPL['content'] = $this->do_skin('join_form');
          }
        
          function process() {
            global $CONF, $DB, $FORM, $LNG, $TMPL;
        
            $TMPL['username'] = $DB->escape($FORM['u'], 1);
            $TMPL['url'] = $DB->escape($FORM['url'], 1);
            $TMPL['title'] = $DB->escape($FORM['title'], 1);
            $FORM['description'] = str_replace(array("\r\n", "\n", "\r"), ' ', $FORM['description']);
            $TMPL['description'] = $DB->escape($FORM['description'], 1);
            $TMPL['category'] = $DB->escape($FORM['category'], 1);
            $TMPL['banner_url'] = $DB->escape($FORM['banner_url'], 1);
            $TMPL['email'] = $DB->escape($FORM['email'], 1);
        
            $TMPL['title'] = $this->bad_words($TMPL['title']);
            $TMPL['description'] = $this->bad_words($TMPL['description']);
        
            if ($this->check_ban('join')) {
              if ($this->check_input('join')) {
                $password = md5($FORM['password']);
        
                require_once("{$CONF['path']}/inc/in.php");
                $short_url = in::short_url($TMPL['url']);
        
                $join_date = date('Y-m-d', time() + (3600*$CONF['time_offset']));
        
                $user_ip = $DB->escape($_SERVER['REMOTE_ADDR'], 1);
        
                $DB->query("INSERT INTO {$CONF['sql_prefix']}_sites (username, password, url, short_url, title, description, category, banner_url, email, join_date, active, openid, user_ip)
                          VALUES ('{$TMPL['username']}', '{$password}', '{$TMPL['url']}', '{$short_url}', '{$TMPL['title']}', '{$TMPL['description']}', '{$TMPL['category']}', '{$TMPL['banner_url']}', '{$TMPL['email']}', '{$join_date}', {$CONF['active_default']}, 0, '{$user_ip}')", __FILE__, __LINE__);
                $DB->query("INSERT INTO {$CONF['sql_prefix']}_stats (username) VALUES ('{$TMPL['username']}')", __FILE__, __LINE__);
        
        ?> 
        ist gekürtz.

        Kommentar

        Lädt...
        X