Пример #1
0
function do_register0()
{
    echo '<div class="recoverpass" style="text-align:center"><h4><a href="login.php?op=recover">' . _('¿has olvidado la contraseña?') . '</a></h4></div>';
    echo '<form action="' . get_auth_link() . 'register.php" method="post" id="thisform" onSubmit="return check_checkfield(\'acceptlegal\', \'' . _('no has aceptado las condiciones de uso') . '\')">' . "\n";
    echo '<fieldset>' . "\n";
    echo '<legend><span class="sign">' . _("datos del usuario") . '</span></legend>' . "\n";
    echo '<p><label for="name">' . _("nombre de usuario") . ':</label><br />' . "\n";
    echo '<input type="text" name="username" id="name" value="" onkeyup="enablebutton(this.form.checkbutton1, this.form.submit, this)" size="25" tabindex="1"/>' . "\n";
    echo '<span id="checkit"><input type="button" class="button" id="checkbutton1" disabled="disabled" value="' . _('verificar') . '" onclick="checkfield(\'username\', this.form, this.form.username)"/></span>' . "\n";
    echo '&nbsp;<span id="usernamecheckitvalue"></span></p>' . "\n";
    echo '<p><label for="email">email:</label><br />' . "\n";
    echo '<span class="note">' . _('es importante que sea correcta, recibirás un correo para validar la cuenta') . '</span> <br />';
    echo '<input type="text" id="email" name="email" value=""  onkeyup="enablebutton(this.form.checkbutton2, this.form.submit, this)" size="25" tabindex="2"/>' . "\n";
    echo '<input type="button" class="button" id="checkbutton2" disabled="disabled" value="' . _('verificar') . '" onclick="checkfield(\'email\', this.form, this.form.email)"/>' . "\n";
    echo '&nbsp;<span id="emailcheckitvalue"></span></p>' . "\n";
    echo '<p><label for="password">' . _("clave") . ':</label><br />' . "\n";
    echo '<span class="note">' . _('al menos ocho caracteres, incluyendo mayúsculas, minúsculas y números') . ' </span><br />';
    echo '<input type="password" id="password" name="password" size="25" tabindex="3" onkeyup="return securePasswordCheck(this.form.password);"/><span id="password1-warning"></span></p>' . "\n";
    echo '<p><label for="verify">' . _("verificación de clave") . ': </label><br />' . "\n";
    echo '<input type="password" id="verify" name="password2" size="25" tabindex="4" onkeyup="checkEqualFields(this.form.password2, this.form.password)"/></p>' . "\n";
    echo '<p><label><span class="note">' . _('has leído y aceptas las ');
    do_legal(_('condiciones de uso'), 'target="_blank"', false);
    echo ' <input type="checkbox" id="acceptlegal" name="acceptlegal" value="accept" tabindex="5"/></span></label></p>' . "\n";
    echo '<p><input type="submit" class="button" disabled="disabled" name="submit" value="' . _('crear usuario') . '" class="log2" tabindex="6" /></p>' . "\n";
    echo '<input type="hidden" name="process" value="1"/>' . "\n";
    echo '<div style="margin-top: 20px" style="text-align:center">';
    print_oauth_icons($_REQUEST['return']);
    echo '</div>' . "\n";
    echo '</fieldset>' . "\n";
    get_form_auth_ip();
    echo '</form>' . "\n";
}
Пример #2
0
function do_register0()
{
    echo '<div class="recoverpass" align="center"><h4><a href="login.php?op=recover">' . _('¿Has olvidado la contraseña?') . '</a></h4></div>';
    echo '<form action="register.php" method="post" id="thisform" onSubmit="return check_checkfield(\'acceptlegal\', \'' . _('no has aceptado las condiciones de legales de uso') . '\')">' . "\n";
    echo '<fieldset>' . "\n";
    echo '<legend><span class="sign">' . _("registro") . '</span></legend>' . "\n";
    echo '<p class="l-top"><label for="name">' . _("nombre de usuario") . ':</label><br />' . "\n";
    echo '<input type="text" name="username" id="name" value="" onkeyup="enablebutton(this.form.checkbutton1, this.form.submit, this)" size="25" tabindex="1"/>' . "\n";
    echo '<span id="checkit"><input type="button" id="checkbutton1" disabled="disabled" value="' . _('verificar') . '" onclick="checkfield(\'username\', this.form, this.form.username)"/></span>' . "\n";
    echo '<br/><span id="usernamecheckitvalue"></span></p>' . "\n";
    echo '<p class="l-mid"><label for="email">email:</label><br />' . "\n";
    echo _('es importante que sea correcta, recibirás un correo para validar la cuenta') . ' <br />';
    echo '<input type="text" id="email" name="email" value=""  onkeyup="enablebutton(this.form.checkbutton2, this.form.submit, this)" size="25" tabindex="2"/>' . "\n";
    echo '<input type="button" id="checkbutton2" disabled="disabled" value="' . _('verificar') . '" onclick="checkfield(\'email\', this.form, this.form.email)"/>' . "\n";
    echo '<br/><span id="emailcheckitvalue"></span></p>' . "\n";
    echo '<p class="l-mid"><label for="password">' . _("clave") . ':</label><br />' . "\n";
    echo _('al menos cinco caracteres') . ' <br />';
    echo '<input type="password" id="password" name="password" size="25" tabindex="3"/></p>' . "\n";
    echo '<p class="l-mid"><label for="verify">' . _("verificación de clave") . ': </label><br />' . "\n";
    echo '<input type="password" id="verify" name="password2" size="25" tabindex="4"/></p>' . "\n";
    echo '<p>' . _('has leído y aceptas las ');
    do_legal(_('condiciones de uso'), 'target="_blank"');
    echo ' <input type="checkbox" id="acceptlegal" name="acceptlegal" value="accept" tabindex="5"/></p>' . "\n";
    echo '<p class="l-bot"><input type="submit" disabled="disabled" name="submit" value="' . _('crear usuario') . '" class="log2" tabindex="6" /></p>' . "\n";
    echo '<input type="hidden" name="process" value="1"/>' . "\n";
    echo '</fieldset>' . "\n";
    echo '</form>' . "\n";
}
Пример #3
0
function do_credits()
{
    global $dblang, $globals;
    echo "</div><!--#container closed-->\n";
    // 	echo '<br style="clear: both;" />' . "\n";
    echo '<div class="credits-wrapper">' . "\n";
    echo '<div class="credits-strip">' . "\n";
    echo '<span class="credits-strip-text">' . "\n";
    echo '<strong>';
    do_legal(_('condiciones legales'));
    echo '</strong>';
    // IMPORTANT: links change in every installation, CHANGE IT!!
    // contact info
    if (preg_match('/meneame.net$/', get_server_name())) {
        echo '<br/><a href="' . $globals['base_url'] . 'faq-' . $dblang . '.php#we">' . _('quiénes somos, contacto') . '</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="http://socialmediasl.com" title="agencia de publicidad en menéame">contratar publicidad</a>&nbsp;&nbsp;|&nbsp;&nbsp;alojamiento en <a href="http://www.ferca.com">Ferca Network</a><br />';
        // delete this link, is a meneame.net sponsor!<br />';
    } else {
        echo _('<br/>why are you and contact link here') . '<br />';
    }
    // code link and licenses
    if (preg_match('/meneame.net$/', get_server_name())) {
        echo _('código: ') . '<a href="' . $globals['base_url'] . 'COPYING">' . _('licencia') . '</a>, <a href="http://svn.meneame.net/index.cgi/branches/version2/">' . _('descargar') . '</a>';
        echo '&nbsp;&nbsp;|&nbsp;&nbsp;<a href="http://creativecommons.org/licenses/by-sa/2.5/">' . _('licencia de los gráficos') . '</a>' . "\n";
        echo '&nbsp;&nbsp;|&nbsp;&nbsp;';
        echo '<a href="http://creativecommons.org/licenses/by/2.5/es/">' . _('licencia del contenido') . '</a><br />';
    } else {
        echo _('link to code and licenses here (please respect the menéame Affero license and publish your own code!)') . '<br />';
    }
    // IMPORTANT: read above
    echo '</span>' . "\n";
    echo '<span class="credits-strip-buttons">' . "\n";
    echo '<a href="http://validator.w3.org/check?uri=referer"><img style="border:0;width:80px;height:15px" src="' . $globals['base_url'] . 'img/common/valid-xhtml10.gif" alt="Valid XHTML 1.0 Transitional" /></a>' . "\n";
    echo '<br />' . "\n";
    echo '<a href="http://jigsaw.w3.org/css-validator/check/referer"><img style="border:0;width:80px;height:15px" src="' . $globals['base_url'] . 'img/common/valid-css.gif" alt="Valid CSS" /></a>' . "\n";
    echo '<br />' . "\n";
    echo '<a href="http://feedvalidator.org/check.cgi?url=http://meneame.net/rss2.php"><img style="border:0;width:80px;height:15px" src="' . $globals['base_url'] . 'img/common/valid-rss.gif" alt="Valid RSS" title="Validate my RSS feed" /></a>' . "\n";
    echo '</span>' . "\n";
    echo '</div>' . "\n";
    echo '</div>' . "\n";
    echo "<!--ben-tmp-functions:do_credits-->\n";
}
Пример #4
0
function do_register0()
{
    echo '<form action="' . get_auth_link() . 'register" method="post" id="thisform" onSubmit="return check_checkfield(\'acceptlegal\', \'' . _('no has aceptado las condiciones de uso') . '\')">' . "\n";
    ob_start();
    echo _('he leído y acepto las ');
    do_legal(_('condiciones de uso'), 'target="_blank"', false);
    $legal = ob_get_clean();
    ob_start();
    print_oauth_icons($_REQUEST['return']);
    $oauthIconsHtml = ob_get_clean();
    $rememberPasswordText = _('¿has olvidado la contraseña?');
    echo <<<EOT
<div class="row bigform">
  <section class="col-lg-10 col-lg-offset-1 col-md-10 col-md-offset-1 col-xs-12 col-sm-offset-0">
    <div class="well well-lg">
      <div class="row">
        <div class="col-sm-6 col-xs-12">
          <div class="row">
            <div class="col-xs-12"><h3>Registro social</h3></div>
          </div>
          <div class="row">
            <div class="col-xs-12"><p>Evita quebraderos de cabeza.</p></div>
          </div>
          <div class="row">
            <div class="col-xs-12">
              {$oauthIconsHtml}             
            </div>
          </div>
        </div>
        <div class="col-sm-6 col-xs-12">
          <div class="row">
            <div class="col-xs-12"><h3>Registro clásico</h3></div>
          </div>
          <div class="row">
            <div class="col-xs-12">
              
                <div class="input-group">
                  <span class="input-group-addon"><i class="fa fa-user fa-2x"></i></span>
                  <input id="name" name="username" value="" onkeyup="enablebutton(this.form.checkbutton1, this.form.submit, this)" class="form-control input-lg" placeholder="Nombre de usuario" required="required" maxlength="100" type="text" data-original-title="" title="">
              \t\t<span class="input-group-btn btn-group-lg">
                  \t<button class="btn btn-default" type="button" id="checkbutton1" disabled="disabled" onclick="checkfield('username', this.form, this.form.username)">
                     \tVerificar
                  \t</button>
               \t\t</span>                  
                </div>

                <div class="input-group">
                  <span class="input-group-addon"><i class="fa fa-envelope fa-2x"></i></span>
                  <input id="email" name="email" value="" onkeyup="enablebutton(this.form.checkbutton2, this.form.submit, this)" class="form-control input-lg" placeholder="Correo electrónico" required="required" maxlength="100" type="text" data-original-title="" title="">
              \t\t<span class="input-group-btn btn-group-lg">
                  \t<button class="btn btn-default" type="button" id="checkbutton2" disabled="disabled" onclick="checkfield('email', this.form, this.form.email)">
                     \tVerificar
                  \t</button>
               \t\t</span>                  
                </div>
                
                <div class="input-group">
                  <span class="input-group-addon"><i class="fa fa-asterisk fa-2x"></i></span>
                  <input id="password" name="password" class="form-control input-lg" placeholder="Clave" required="required" maxlength="60" type="password" data-original-title="" title="">
                </div>

                <div class="input-group">
                  <span class="input-group-addon"><i class="fa fa-asterisk fa-2x"></i></span>
                  <input id="verify" name="password2" class="form-control input-lg" placeholder="Repita la clave" required="required" maxlength="60" type="password" data-original-title="" title="">
                </div>

                {$captchaHtml}

                <div class="form-group">
                  <button type="submit" value="login" id="btn-signup" class="btn btn-block btn-primary btn-lg">Crear usuario</button>
                </div>

                <div class="checkbox">
                  <label>
                    <input id="acceptlegal" name="acceptlegal" type="checkbox" value="accept" />
                    {$legal}
                  </label>
                </div>

                <div class="input-group">
                  <a href="login?op=recover">{$rememberPasswordText}</a>
                </div>

              
            </div><!-- end of column -->
          </div><!-- end of row -->
        </div><!-- end of column 2 -->
      </div><!-- end of well row -->
    </div><!-- end of well -->
  </section>
</div>

<input type="hidden" name="process" value="1"/>

EOT;
    get_form_auth_ip();
    echo '</form>' . "\n";
    /*
    echo '<div class="recoverpass" style="text-align:center"><h4><a href="login?op=recover">'._('¿has olvidado la contraseña?').'</a></h4></div>';
    
    echo '<form action="'.get_auth_link().'register" method="post" id="thisform" onSubmit="return check_checkfield(\'acceptlegal\', \''._('no has aceptado las condiciones de uso').'\')">' . "\n";
    echo '<fieldset>' . "\n";
    echo '<legend><span class="sign">' . _("datos del usuario") . '</span></legend>' . "\n";
    echo '<p><label for="name">' . _("nombre de usuario") . ':</label><br />' . "\n";
    
    echo '<input type="text" name="username" id="name" value="" onkeyup="enablebutton(this.form.checkbutton1, this.form.submit, this)" size="25" tabindex="1"/>' . "\n";
    echo '<span id="checkit"><input type="button" class="button" id="checkbutton1" disabled="disabled" value="'._('verificar').'" onclick="checkfield(\'username\', this.form, this.form.username)"/></span>' . "\n";
    echo '&nbsp;<span id="usernamecheckitvalue"></span></p>' . "\n";
    
    echo '<p><label for="email">email:</label><br />' . "\n";
    echo '<span class="note">'._('es importante que sea correcta, recibirás un correo para validar la cuenta').'</span> <br />';
    echo '<input type="text" id="email" name="email" value=""  onkeyup="enablebutton(this.form.checkbutton2, this.form.submit, this)" size="25" tabindex="2"/>' . "\n";
    	echo '<input type="button" class="button" id="checkbutton2" disabled="disabled" value="'._('verificar').'" onclick="checkfield(\'email\', this.form, this.form.email)"/>' . "\n";
    echo '&nbsp;<span id="emailcheckitvalue"></span></p>' . "\n";
    
    echo '<p><label for="password">' . _("clave") . ':</label><br />' . "\n";
    echo '<span class="note">'._('al menos ocho caracteres, incluyendo mayúsculas, minúsculas y números').' </span><br />';
    echo '<input type="password" id="password" name="password" size="25" tabindex="3" onkeyup="return securePasswordCheck(this.form.password);"/><span id="password1-warning"></span></p>' . "\n";
    echo '<p><label for="verify">' . _("verificación de clave") . ': </label><br />' . "\n";
    
    echo '<input type="password" id="verify" name="password2" size="25" tabindex="4" onkeyup="checkEqualFields(this.form.password2, this.form.password)"/></p>' . "\n";
    
    echo '<p><label><span class="note">'._('has leído y aceptas las ');
    do_legal(_('condiciones de uso'), 'target="_blank"', false);
    echo ' <input type="checkbox" id="acceptlegal" name="acceptlegal" value="accept" tabindex="5"/></span></label></p>' . "\n";
    
    echo '<p><input type="submit" class="button" disabled="disabled" name="submit" value="'._('crear usuario').'" class="log2" tabindex="6" /></p>' . "\n";
    echo '<input type="hidden" name="process" value="1"/>' . "\n";
    
    echo '<div style="margin-top: 20px" style="text-align:center">';
    print_oauth_icons($_REQUEST['return']);
    echo '</div>'."\n";
    
    echo '</fieldset>' . "\n";
    get_form_auth_ip();
    echo '</form>' . "\n";
    */
}
Пример #5
0
function do_credits()
{
    global $dblang, $globals;
    echo '<br style="clear: both;" />' . "\n";
    echo '<div class="credits-strip">' . "\n";
    echo '<span class="credits-strip-text">' . "\n";
    echo '<strong>';
    do_legal(_('información legal y condiciones de uso'));
    echo '</strong>&nbsp;&nbsp;|&nbsp;&nbsp;';
    echo '<a href="' . $globals['base_url'] . 'faq-' . $dblang . '.php#we">' . _('quiénes somos') . '</a>';
    echo '&nbsp;&nbsp;|&nbsp;&nbsp;';
    echo '<a href="http://blog.meneame.net">' . _('blog oficial') . '</a>';
    echo '<br />';
    echo '<a href="http://meneame.wikispaces.com/" title="wiki meneame">' . _('wiki') . '</a>' . "\n";
    echo '&nbsp;&nbsp;|&nbsp;&nbsp;' . _('código: ') . ' <a href="' . $globals['base_url'] . 'COPYING">' . _('licencia') . '</a>, <a href="' . $globals['base_url'] . 'archives/meneame-src.tgz">' . _('descargar') . '</a>';
    echo '&nbsp;&nbsp;|&nbsp;&nbsp;<a href="http://creativecommons.org/licenses/by-sa/2.5/">' . _('licencia de los gráficos') . '</a>' . "\n";
    echo '</span>' . "\n";
    echo '<span class="credits-strip-buttons">' . "\n";
    echo '<a href="http://validator.w3.org/check?uri=referer"><img src="' . $globals['base_url'] . 'img/common/valid-xhtml10.png" alt="Valid XHTML 1.0 Transitional" height="31" width="88" /></a>' . "\n";
    echo '&nbsp;&nbsp;' . "\n";
    echo '<a href="http://jigsaw.w3.org/css-validator/check/referer"><img style="border:0;width:88px;height:31px" src="' . $globals['base_url'] . 'img/common/vcss.png" alt="Valid CSS!" /></a>&nbsp;&nbsp;' . "\n";
    echo '<a href="http://feedvalidator.org/check.cgi?url=http://meneame.net/rss2.php"><img src="' . $globals['base_url'] . 'img/common/valid-rss.png" alt="[Valid RSS]" title="Validate my RSS feed" /></a>' . "\n";
    echo '</span>' . "\n";
    echo '</div>' . "\n";
    echo "<!--ben-tmp-functions:do_credits-->\n";
}