} $newduration = $tiempos[1]; $novalido = !isset($newduration) || $newduration == ''; if ($novalido) { $error = true; $errordesc = "{$wikilang_error_wrongformat}"; } $query = "select count(*) from links_data where linkID={$newLinkID}"; $result = mysql_query($query); $count = mysql_result($result, 0); if ($count < 5) { $error = true; $errordesc = $wikilang_error_less5; } $olang = bd_getOriginalLang($subID, $fversion); $original_count = bd_getLastSequence($subID, $olang, $fversion); //$secuencia--; if ($original_count != $secuencia) { $error = true; $errordesc = $wikilang_error_sequences; } } if ($error) { $query = "delete from links_data where linkID={$newLinkID}"; mysql_query($query); $query = "delete from links where linkID={$newLinkID}"; mysql_query($query); } else { $query = "update links set enabled=1 where linkID={$newLinkID}"; mysql_query($query); $url = bd_getUrl($subID);
<?php include 'includes/includes.php'; if (!isset($_SESSION['userID'])) { location('/login.php'); exit; } $id = $_GET['id']; $fversion = $_GET['fversion']; $title = bd_getTitle($id); $olang = bd_getOriginalLang($id, $fversion); $totalseq = bd_getLastSequence($id, $olang, $fversion); ?> <!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"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title> <?php echo "{$wikilang_link_version} {$title} - wikisubtitles"; ?> </title> <link href="/css/wikisubtitles.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="/js/mootools.v1.11.js"></script> </head> <body> <?php include 'header.php'; ?> <div align="center" class="titulo"> <img src="images/link.png" border="0" height="16" width="16"><?php