Viewing file: index_form.php (1.97 KB) -rw-rw-r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
if( !defined('PHURL' ) ) {
header('HTTP/1.0 404 Not Found');
exit();
}
ini_set('display_errors', 0);
require_once('recaptchalib.php');
$publickey = "6Lc7YwsTAAAAAIfDdIXnuqUWoN9TnojDojmOGoMr";
$privatekey = "6Lc7YwsTAAAAAOMqS3heS3gkkyOzcAqs9aAJcceP";
$resp = null;
if ($lenguaje=get_languages("header")=="es"){
$Atrad=array(
"Create a short URL"=>"Acorta una URL",
"Enter web address (URL) here:"=>"Introduzca la URL aqui:",
"Custom alias (optional):"=>"Alias que desea (opcional):",
"May contain letters, numbers, dashes and underscores."=>"Solo puede tener numeros, letras y los simbolos '-' y '_'",
"Shorten"=>"Acortar"
);
}else{
$Atrad=array(
"Create a short URL"=>"Create a short URL",
"Enter web address (URL) here:"=>"Enter web address (URL) here:",
"Custom alias (optional):"=>"Custom alias (optional):",
"May contain letters, numbers, dashes and underscores."=>"May contain letters, numbers, dashes and underscores.",
"Shorten"=>"Shorten"
);
}
echo "<h2>".$Atrad["Create a short URL"]."</h2>";
print_errors() ?>
<div id="create_form">
<form method="post" action="index.php">
<p><?echo recaptcha_get_html($publickey);?></p>
<p><label for="url"><? echo $Atrad["Enter web address (URL) here:"];?></label><br />
<input id="url" type="text" name="url" value="<?php echo htmlentities(@$_GET['url']) ?>" />
<input class="button" type="submit" value="<? echo $Atrad["Shorten"];?>" /></p>
<p><label for="alias"><? echo $Atrad["Custom alias (optional):"];?></label><br />
<?php echo SITE_URL ?>/<input id="alias" maxlength="40" type="text" name="alias" value="<?php echo htmlentities(@$_GET['alias']) ?>" /><br />
<em><? echo $Atrad["May contain letters, numbers, dashes and underscores."];?></em></p>
<input type="hidden" name="usuario" value="fargsa" />
</form>
</div>
<script type="text/javascript">
//<![CDATA[
if (document.getElementById) {
document.getElementById('url').focus();
}
//]]>
</script>
|