Testsite<br> <a href="<?php echo multiSite2_Link("main"); ?> ">go Back</a>
<?php if (!isset($_GET["file"])) { header("Location: " . multiSite2_Link()); exit; } loadingBar_showLoadingBar("Uploading " . $_GET["file"] . "...", "Done!", '10');
Hello <?php echo $api->getSynchroUsername(); ?> ! You mail is: <?php echo $api->getMail(); ?> <br> This plugin is just a test. 'Real' plugins will come in the future!<br> Pluginname: <?php echo getValue(readSDB("examplePlugin.sdb"), "NAME"); ?> <br> Pluginversion: <?php echo getValue(readSDB("examplePlugin.sdb"), "VERSION"); ?> <br> <a href="<?php echo multiSite2_Link("test"); ?> ">MultiSite example</a><br> <?php echo basename($_SERVER["SCRIPT_FILENAME"]); tiles_createTile("Test tile", "This is an example of the 'tiles' package", multiSite2_Link("test"), "pencil");
function getMimeType($file) { $file_info = new finfo(FILEINFO_MIME); $mime_type = $file_info->buffer(file_get_contents($file)); return $mime_type; } $files = $api->getFileList("files"); ?> <br> YouTube Uploader v<?php echo $plugin["ytUpload"]["version"]; ?> . Please choose a video you want to upload:<br> <?php foreach ($files as $file) { if (isVideo($file)) { ?> <a href="<?php echo multiSite2_Link("upload"); ?> &file=<?php echo $file; ?> " class="btn btn-primary btn-raised btn-block btn-lg"><?php echo $file; ?> </a> <?php } }
<?php if (!SDB_exists("fileDownloader.downloadList.sdb")) { createSDB("fileDownloader.downloadList.sdb"); } $downloadList = readSDB("fileDownloader.downloadList.sdb"); ?> Welcome to File Downloader. This plugin allows you to download files from other websites directly to your Synchro.<br> Please notice that this plugin is still in an early beta state.<br><br> <a href="<?php echo multiSite2_Link("addFile"); ?> " class="btn btn-lg btn-raised btn-block btn-primary">Add file to the Downloadlist</a><br> <table class="table table-striped"> <tr> <th> Your Downloadlist: </th> </tr> <?php foreach ($downloadList as $downloadItem) { ?> <tr> <td> <?php echo $downloadItem; ?> </td> </tr> <?php }