/**
 * Created by PhpStorm.
 * User: salorium
 * Date: 12/12/2014
 * Time: 17:04
 */
?>
<div class="row">

    <fieldset>
        <legend>Upload</legend>
        <div class="row">
            <div class="columns">
                <label>Announce
                    <input onclick="this.select()" type="text" value="<?php 
echo \model\simple\Torrent::getAnnounceUser();
?>
"/>
                </label>

            </div>
        </div>

        <form data-abide class="custom" method="POST" enctype="multipart/form-data">
            <div class="row">
                <div class="columns">
                    <label>Torrent
                        <small>obligatoire</small>
                        <input name="torrent" type="file" required/>
                    </label>
                    <small class="error">Le fichier torrent est obligatoire !!</small>
Example #2
0
 function getTorrent($user = null)
 {
     \core\Mysqli::$default = "gazelle";
     \config\Conf::$torrentpass = $user;
     if (is_null($user)) {
         $user = String::random(5);
         $pass = String::random(32);
         \config\Conf::$torrentpass = $pass;
         Requete::addUser($user, $pass, "1");
     }
     $a = Torrents_files::getFile(12);
     $to = new Torrent($a->file);
     $to->announce(Torrent::getAnnounceUser());
     $to->send();
 }