Merge branch 'master' of dev.sourcefabric.org:campcaster
This commit is contained in:
commit
faee83440d
|
@ -560,6 +560,8 @@ class GreenBox extends BasicStor {
|
||||||
return;
|
return;
|
||||||
|
|
||||||
$res = $pl->lock($sessid);
|
$res = $pl->lock($sessid);
|
||||||
|
|
||||||
|
return $res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,17 +1,21 @@
|
||||||
<?php
|
<?php
|
||||||
|
$path = dirname(__FILE__).'/../../3rd_party/php/pear';
|
||||||
|
set_include_path(get_include_path() . PATH_SEPARATOR . $path);
|
||||||
|
|
||||||
require_once(dirname(__FILE__).'/../../conf.php');
|
require_once(dirname(__FILE__).'/../../conf.php');
|
||||||
require_once('DB.php');
|
require_once('DB.php');
|
||||||
require_once('PHPUnit.php');
|
require_once('PHPUnit.php');
|
||||||
require_once 'BasicStorTests.php';
|
//require_once 'BasicStorTests.php';
|
||||||
require_once 'SchedulerTests.php';
|
//require_once 'SchedulerTests.php';
|
||||||
require_once 'SchedulerExportTests.php';
|
//require_once 'SchedulerExportTests.php';
|
||||||
require_once 'PlayListTests.php';
|
require_once 'PlayListTests.php';
|
||||||
|
|
||||||
$suite = new PHPUnit_TestSuite("BasicStorTest");
|
$suite = new PHPUnit_TestSuite("PlayListTests");
|
||||||
|
//$suite = new PHPUnit_TestSuite("BasicStorTest");
|
||||||
//$suite = new PHPUnit_TestSuite("SchedulerTests");
|
//$suite = new PHPUnit_TestSuite("SchedulerTests");
|
||||||
$suite->addTestSuite("SchedulerTests");
|
//$suite->addTestSuite("SchedulerTests");
|
||||||
$suite->addTestSuite("SchedulerExportTests");
|
//$suite->addTestSuite("SchedulerExportTests");
|
||||||
$suite->addTestSuite("PlayListTests");
|
//$suite->addTestSuite("PlayListTests");
|
||||||
$result = PHPUnit::run($suite);
|
$result = PHPUnit::run($suite);
|
||||||
|
|
||||||
echo $result->toString();
|
echo $result->toString();
|
||||||
|
|
|
@ -1,8 +1,13 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once(dirname(__FILE__).'/../conf.php');
|
$path = dirname(__FILE__).'/../../3rd_party/php/pear';
|
||||||
require_once('PHPUnit.php');
|
set_include_path(get_include_path() . PATH_SEPARATOR . $path);
|
||||||
|
|
||||||
|
//require_once(dirname(__FILE__).'/../../conf.php');
|
||||||
require_once('DB.php');
|
require_once('DB.php');
|
||||||
|
require_once('PHPUnit.php');
|
||||||
|
|
||||||
|
require_once(dirname(__FILE__).'/../../conf.php');
|
||||||
require_once(dirname(__FILE__).'/../GreenBox.php');
|
require_once(dirname(__FILE__).'/../GreenBox.php');
|
||||||
require_once(dirname(__FILE__).'/../Playlist.php');
|
require_once(dirname(__FILE__).'/../Playlist.php');
|
||||||
|
|
||||||
|
@ -80,6 +85,7 @@ class PlayListTests extends PHPUnit_TestCase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
function testGBGetPLMetaData() {
|
function testGBGetPLMetaData() {
|
||||||
$pl = new Playlist();
|
$pl = new Playlist();
|
||||||
$name = "Testing";
|
$name = "Testing";
|
||||||
|
@ -132,6 +138,7 @@ class PlayListTests extends PHPUnit_TestCase {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -42,10 +42,10 @@
|
||||||
<td {include file=$action_handler} style="text-align: right; cursor: pointer">{assign var="_duration" value=$i.duration}{niceTime in=$_duration}</td>
|
<td {include file=$action_handler} style="text-align: right; cursor: pointer">{assign var="_duration" value=$i.duration}{niceTime in=$_duration}</td>
|
||||||
<td {include file=$action_handler} style="border: 0; text-align: center; cursor: pointer">
|
<td {include file=$action_handler} style="border: 0; text-align: center; cursor: pointer">
|
||||||
{if $i.type == 'playlist' && $PL->isAvailable($i.id) == false}
|
{if $i.type == 'playlist' && $PL->isAvailable($i.id) == false}
|
||||||
<div align="left"><img src="img/ico_lock.png">
|
<div align="left"><img src="html/img/ico_lock.png">
|
||||||
<img src="img/{$i.type|lower}.png" border="0" alt="{$i.type|lower|capitalize}" {* include file="sub/alttext.tpl" *} /></div>
|
<img src="html/img/{$i.type|lower}.png" border="0" alt="{$i.type|lower|capitalize}" {* include file="sub/alttext.tpl" *} /></div>
|
||||||
{else}
|
{else}
|
||||||
<img src="img/{$i.type|lower}.png" border="0" alt="{$i.type|lower|capitalize}" {* include file="sub/alttext.tpl" *} />
|
<img src="html/img/{$i.type|lower}.png" border="0" alt="{$i.type|lower|capitalize}" {* include file="sub/alttext.tpl" *} />
|
||||||
{/if}
|
{/if}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
@ -41,10 +41,10 @@
|
||||||
<td {include file="scratchpad/actionhandler.tpl"} style="text-align: right; cursor: pointer">{niceTime in=$_duration}</td>
|
<td {include file="scratchpad/actionhandler.tpl"} style="text-align: right; cursor: pointer">{niceTime in=$_duration}</td>
|
||||||
<td {include file="scratchpad/actionhandler.tpl"} style="border: 0; text-align: center; cursor: pointer">
|
<td {include file="scratchpad/actionhandler.tpl"} style="border: 0; text-align: center; cursor: pointer">
|
||||||
{if $i.type == 'playlist' && $PL->isAvailable($i.id) == false}
|
{if $i.type == 'playlist' && $PL->isAvailable($i.id) == false}
|
||||||
<div align="left"><img src="img/ico_lock.png">
|
<div align="left"><img src="html/img/ico_lock.png">
|
||||||
<img src="img/{$i.type}.png" border="0" alt="{$i.type|capitalize}" {* include file="sub/alttext.tpl"*} /></div>
|
<img src="html/img/{$i.type}.png" border="0" alt="{$i.type|capitalize}" {* include file="sub/alttext.tpl"*} /></div>
|
||||||
{else}
|
{else}
|
||||||
<img src="img/{$i.type}.png" border="0" alt="{$i.type|capitalize}" {* include file="sub/alttext.tpl" *} /> {/if}
|
<img src="html/img/{$i.type}.png" border="0" alt="{$i.type|capitalize}" {* include file="sub/alttext.tpl" *} /> {/if}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<!-- end item -->
|
<!-- end item -->
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<div id="logo">
|
<div id="logo">
|
||||||
<img src="img/logo.png">
|
<img src="html/img/logo.png">
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue