Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel authored and daniel committed Jul 16, 2019
1 parent cb42f5e commit 1341fae
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions install/installPluginsTables.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?php
//streamer config
require_once '../videos/configuration.php';

if(!isCommandLineInterface()){
return die('Command Line only');
}

function rsearch($folder, $pattern) {
$dir = new RecursiveDirectoryIterator($folder);
$ite = new RecursiveIteratorIterator($dir);
$files = new RegexIterator($ite, $pattern, RegexIterator::GET_MATCH);
$fileList = array();
foreach($files as $file) {
foreach ($file as $key => $value) {
$file[$key] = "{$folder}{$dir}/{$value}";
}
$fileList = array_merge($fileList, $file);
}
return $fileList;
}

$files = rsearch("{$global['systemRootPath']}plugin/", "/install\/install.sql$/i");
$templine = '';
foreach ($files as $value) {
$lines = file($value);
foreach ($lines as $line) {
if (substr($line, 0, 2) == '--' || $line == '')
continue;
$templine .= $line;
if (substr(trim($line), -1, 1) == ';') {
if (!$global['mysqli']->query($templine)) {
echo ($value.' Error performing query \'<strong>' . $templine . '\': ' . $global['mysqli']->error . '<br /><br />');
die(json_encode($obj));
}
$templine = '';
}
}
}
Binary file modified view/img/audio_wave.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified view/img/audio_waveThumbs.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified view/img/audio_waveThumbsSmall.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed view/img/audio_waveThumbsSmall_tmp10273
Binary file not shown.

0 comments on commit 1341fae

Please sign in to comment.