Calificación:
  • 0 voto(s) - 0 Media
  • 1
  • 2
  • 3
  • 4
  • 5
Problema script PASTE Softaculous
#1
Tuve un problemilla en el script mientras lo traducía, se que es muy dificil que alguien haga esto pero que error tiene?

MENSAJE: Parse error: syntax error, unexpected '}' in /home/danne/public_html/xec.me/templates/default/theme.php on line 1

DEMO: http://xare.me/28

CODIGO THEME.PHP ( El único archivo que edité ):
Código:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><meta http-equiv="Content-Type" content="application/xhtml+xml; charset=iso-8859-1" /><title><?php echo $page['title']?></title><script type="text/javascript" src="<?php echo $CONF['url'] . 'templates/' . $CONF['template']?>/tab.js"></script><link rel="shortcut icon" href="<?php echo $CONF['url'] . 'templates/' . $CONF['template']?>/images/favicon.ico" /><link rel="stylesheet" type="text/css" media="screen" href="<?php echo $CONF['url'] . 'templates/' . $CONF['template']?>/style.css" /><?php if (isset($page['post']['codecss'])){ echo '<style type="text/css">'."\n"; echo $page['post']['codecss']; echo '</style>'."\n";}?></head> <body>  <div class="header">   <a href="<?php echo $CONF['url'] ?>"><img src="<?php echo $CONF['url'] . 'templates/' . $CONF['template']?>/images/logo.png" alt="<?php echo $CONF['title']?>" title="<?php echo $CONF['title'] ?>" class="logo" /></a>    <ul class="tabs">     <li><a href="<?php echo $CONF['url']?>" title="Enviar un nuevo paste">Enviar</a></li>     <li><a href="<?php echo $CONF['url']?>?archive" title="List all public pastes">Archivador</a></li>    </ul></div><div id="menu"><h1>Pastes recientes</h1><ul><?php      foreach($page['recent'] as $idx=>$entry)    {        if ($entry['pid']==$pid)            $cls=" class=\"highlight\"";        else            $cls="";                    echo "<li" . $cls . "><a href=\"{$entry['url']}\">";        echo $entry['poster'];        echo "</a><br/>{$entry['agefmt']}<br /><br /></li>\n";    }?></ul></div><div id="content"><br /><h1>Bienvenido! Aqui puedes poner pastes de codigos, puedes colocar una clave si es para uso privado o solo para ti.</h1><div id="topInfo"><?php// Show errors.if (count($pastebin->errors)){    echo "<h1>Error</h1><div id=\"errors\"><ul>";    foreach($pastebin->errors as $err)    {        echo "<li>$err</li>";    }    echo "</ul></div>";   $page['post']['editcode']=$_POST['code2'];   $page['current_format']=$_POST['format'];   $page['expiry']=$_POST['expiry'];      if ($_POST['password'] != 'EMPTY') {      $page['post']['password']=$_POST['password'];   }   $page['poster']=$_POST['poster'];}// Show a paste.function showMe(){    global $sep;    global $page;    global $post;    global $followups;    global $CONF;    if (strlen($page['post']['posttitle']))    {            echo "<h1>{$page['post']['posttitle']}";            if ($page['post']['parent_pid']>0)            {                echo " (Modification of post by <a href=\"{$page['post']['parent_url']}\" title=\"View original post\">{$page['post']['parent_poster']}</a>)";            }            echo "<br/>";            $followups=count($page['post']['followups']);            if ($followups)            {                echo "View followups from ";                $sep="";                foreach($page['post']['followups'] as $idx=>$followup)                {                    echo $sep."<a title=\"posted {$followup['postfmt']}\" href=\"{$followup['followup_url']}\">{$followup['poster']}</a>";                    $sep=($idx<($followups-2))?", ":" and ";                    }                echo " | ";            }            echo "<a href=\"{$page['post']['downloadurl']}\" title=\"Download this paste\">Descargar</a> | ";            echo "<a href=\"{$CONF['url']}\" title=\"Hacer nuevo paste\">Hacer nuevo paste</a>";            echo "</h1>";    }    if (isset($page['post']['pid']))    {        echo "<div id=\"syntax\">".$page['post']['codefmt']."</div>";    }}// Check for a password.$postPass = $_POST['thePassword'];if ($pid >0){    global $pid;    mysql_connect($CONF['dbhost'], $CONF['dbuser'], $CONF['dbpass']) or die(mysql_error());    $newPID = mysql_real_escape_string($pid);    mysql_select_db($CONF['dbname']) or die(mysql_error());    $result = mysql_query("SELECT * from paste where pid = " . $newPID);    $row = mysql_fetch_array($result);    $pass = $row['password'];    if (isset($pass) && ($pass != "EMPTY"))    {        if (!isset($postPass))        {               echo "<center><form name=\"editor\" method=\"post\" action=\"\"";               echo "<label class=\"passProtected\" for=\"thePass\">Clave </label>";               echo "<input type=\"password\" name=\"thePassword\" /> ";               echo "<input type=\"submit\" name=\"showUs\" value=\"Enviar\" />";               echo "</form></center>";        }        else if (strcmp($postPass, $pass) == 0) {           showMe();        }        else {        echo "<h1>Oops!</h1><br />";           echo "<center><span class=\"error\"> Lo sentimos pero la clave es incorrecta, intenta con otra.<br /><br /></span></center>";        }    }        else {       showMe();    }    mysql_close();}if (isset($_GET['archive'])){    ?>    <h1>Archivos (Esto puede tardar un poco a cargar)</h1>    <?php    mysql_connect($CONF['dbhost'], $CONF['dbuser'], $CONF['dbpass']) or die(mysql_error());    mysql_select_db($CONF['dbname']) or die(mysql_error());    $pastes = mysql_query("SELECT * FROM paste ORDER BY posted DESC");        echo "<table class=\"archive\">";    echo "<tr><th></th><th>Name</th><th class=\"padright\">Lenguaje</th><th>Posteado en</th><th>Expira</th></tr>";        while ($row = mysql_fetch_array($pastes))    {      $pass = ($row['password'] == "EMPTY") ? "" : "<img src=\"templates/default/images/lock.png\" title=\"Password protected\" />";        echo "<tr>";      echo "<td>" . $pass . "</td>";        echo "<td class=\"padright\"><a title=\"" . date("l F j, Y, g:i a", strtotime($row['posted'])) . "\" href=\"". $CONF['pastebin'] . "/" . $row['pid'] . "\">" . $row['poster'] . "</a></td>";        echo "<td>" . $CONF['geshiformats'][$row['format']] . "</td>";      echo "<td class=\"padright\">" . date("m-d-y, g:i A", strtotime($row['posted'])) . "</td>";      echo "<td>" . ((is_null($row['expires'])) ? "Never" : date("m-d-y, g:i A", strtotime($row['expires'])))  . "</td>";        echo "</tr>";    }        echo "</table>";    mysql_close();}else{?></div><? if (!(isset($pass) && strcmp($postPass, $pass) != 0) || $pass == "EMPTY") {?><form name="editor" method="post" action="index.php"> <input type="hidden" name="parent_pid" value="<?php echo $page['post']['pid'] ?>"/> <div id="paste"> <div id="fmt">Lenguaje: <select name="format"><?php// Show popular GeSHi formatsforeach ($CONF['geshiformats'] as $code=>$name){    if (in_array($code, $CONF['popular_syntax']))    {        $sel=($code==$page['current_format'])?"selected=\"selected\"":"";        echo "<option $sel value=\"$code\">$name</option>";    }}echo "<option value=\"text\">----------------------------</option>";// Show all GeSHi formats.foreach ($CONF['geshiformats'] as $code=>$name){    $sel=($code==$page['current_format'])?"selected=\"selected\"":"";    if (in_array($code, $CONF['popular_syntax']))        $sel="";    echo "<option $sel value=\"$code\">$name</option>";}?> </select></div><div id="notes">Para relucir lineas, pon antes de empezarlas <?php echo $CONF['highlight_prefix'] ?></div><!-- Code edit box --> <textarea id="code" class="codeedit" name="code2" cols="90" rows="20" onkeydown="return catchTab(this,event)"><?php echo htmlspecialchars($page['post']['editcode']) ?></textarea></div><div id="pasteInfo"><div class="end"></div><!-- The name box --><div id="namebox"> <label for="poster">Nombre/Titulo (Opcional)</label><br/> <input type="text" maxlength="24" size="24" id="poster" name="poster" value="<?php echo $page['poster'] ?>" /> <input type="submit" name="paste" value="Acabar"/> <br /></div><!-- The expiry buttons --><div id="expirybox">  <div id="expiryradios"><label>Cuanto tiempo quieres que exista tu paste?</label><br/>    <input type="radio" id="expiry_day" name="expiry" value="d" /> <?php if ($page['expiry']=='d') echo 'checked="checked"'; ?> <label id="expiry_day_label" for="expiry_day">Un dia</label>   <input type="radio" id="expiry_month" name="expiry" value="m" <?php if ($page['expiry']=='m') echo 'checked="checked"'; ?> /> <label id="expiry_month_label" for="expiry_month">Un mes</label>   <input type="radio" id="expiry_forever" name="expiry" value="f" <?php if ($page['expiry']=='f') echo 'checked="checked"'; ?> /> <label id="expiry_forever_label" for="expiry_forever">Para siempre</label>  </div> <div id="expiryinfo"></div></div><!-- The password box --><div id="password"> <label class="passProtected" for="password">Clave (Opcional)</label><br /> <input type="password" class="bringDown" size="21" value="<?php if (strcmp($page['post']['password'],'EMPTY') != 0) { echo $page['post']['password']; } else { echo ''; } ?>" name="password" /></div><?phpif ($CONF['useRecaptcha']) {require_once('classes/recaptchalib.php');?> <!-- reCAPTCHA --> <script>var RecaptchaOptions = {   theme : 'clean'};</script><div id="recaptcha"> <?php echo recaptcha_get_html($CONF['pubkey'])."\n"; ?></div><?php } ?> <?php } ?><div class="end"></div><?php } ?> <br />  <h1>&copy; <?php echo date("Y"); ?> - Ofrecido por <a href="http://xare.me">ACORTADOR XARE.ME</a> - <a href="http://apesteguia.me">BLOG APESTEGUIA.ME</a> - <a href="http://hispan.in">FORO HISPAN.IN</a> </h1>    </div>   </form>  </div> </body></html>
#2
TEMA CERRADO - Script eliminado


Posibles temas similares...
Tema Autor Respuestas Vistas Último mensaje
  Conexion ios script php efbsfcd 0 71 08-05-2018, 06:59 AM
Último mensaje: efbsfcd
Bug Problema conectando con MySql remoto yuma2009 2 148 01-02-2018, 11:52 AM
Último mensaje: easy english
  Solucionado: problema con insert into sql efbsfcd 5 168 26-01-2018, 11:40 AM
Último mensaje: Vicen
  Problema conexion remota mysql efbsfcd 2 260 07-07-2017, 07:19 AM
Último mensaje: efbsfcd
Exclamación [Duda] Error en script CarlosAlberto 3 337 03-01-2017, 12:17 AM
Último mensaje: CarlosAlberto
  Script PHP Web Porno CarlosAlberto 4 518 01-12-2016, 10:05 PM
Último mensaje: zeuz
  [Duda] con photoswipe script web carlsmartg 3 421 24-08-2016, 09:19 PM
Último mensaje: Rodrigo Soto
  script simple para embeber videos en sitio canpios 1 389 18-01-2015, 05:58 AM
Último mensaje: garcon
  script bueno para secuencia imagenes canpios 7 798 19-12-2014, 06:01 AM
Último mensaje: amplox
  Problema con la web dormio 5 378 17-12-2014, 03:26 PM
Último mensaje: jebcalix



Usuarios navegando en este tema: 1 invitado(s)