Exemplo n.º 1
0
function addTranslatedText( $translatedContentId, $languageId, $text ) {
	$textId = createText( $text );
	createTranslatedContent( $translatedContentId, $languageId, $textId );
}
Exemplo n.º 2
0
        executeQuery($query);
    } else {
        if ($text_type_code == 1) {
            $query = "INSERT INTO `subtitles`\n        (`text_id`,\n        `duration`)\n      VALUES\n        ({$text_id},\n        {$duration})";
            executeQuery($query);
        }
    }
    if (count($error) == 0) {
        header('Location: view.php?id=' . $text_id);
        die;
    }
}
//=================================== Основной код
$error = array();
if (checkLimit()) {
    createText();
}
$title = 'Ошибка создания';
include '../header.php';
?>

  <div class="content" style="border: 0px;">
    <div>
      <h1>Ошибка создания</h1>
      <div style="line-height: 1.5">
<?php 
foreach ($error as $value) {
    print "        " . $value . "<br>\n";
}
?>
        <br>