CC-1695 Remove Campcaster Studio and make install easier
Fixed include paths for install.
This commit is contained in:
parent
2ece374513
commit
70bf3d6f1c
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
require_once (dirname(__FILE__).'/Crontab.php');
|
require_once (dirname(__FILE__).'/Crontab.php');
|
||||||
require_once (dirname(__FILE__).'/../conf.php');
|
require_once (dirname(__FILE__).'/../../conf.php');
|
||||||
/**
|
/**
|
||||||
* This class can call a PHP function from crontab.
|
* This class can call a PHP function from crontab.
|
||||||
* Example:
|
* Example:
|
||||||
|
|
|
@ -22,6 +22,7 @@ echo "*************************\n";
|
||||||
|
|
||||||
require_once(dirname(__FILE__).'/../conf.php');
|
require_once(dirname(__FILE__).'/../conf.php');
|
||||||
require_once(dirname(__FILE__).'/../backend/GreenBox.php');
|
require_once(dirname(__FILE__).'/../backend/GreenBox.php');
|
||||||
|
require_once(dirname(__FILE__).'/../backend/cron/Cron.php');
|
||||||
require_once(dirname(__FILE__)."/installInit.php");
|
require_once(dirname(__FILE__)."/installInit.php");
|
||||||
campcaster_db_connect(true);
|
campcaster_db_connect(true);
|
||||||
|
|
||||||
|
@ -516,8 +517,8 @@ if (!camp_db_table_exists($CC_CONFIG['prefTable'])) {
|
||||||
echo " * Inserting starting data into table ".$CC_CONFIG['prefTable']."...";
|
echo " * Inserting starting data into table ".$CC_CONFIG['prefTable']."...";
|
||||||
$stPrefGr = Subjects::GetSubjId($CC_CONFIG['StationPrefsGr']);
|
$stPrefGr = Subjects::GetSubjId($CC_CONFIG['StationPrefsGr']);
|
||||||
Prefs::Insert($CC_CONFIG["systemPrefId"], 'stationName', "Radio Station 1");
|
Prefs::Insert($CC_CONFIG["systemPrefId"], 'stationName', "Radio Station 1");
|
||||||
$genres = file_get_contents( dirname(__FILE__).'/../genres.xml');
|
// $genres = file_get_contents( dirname(__FILE__).'/../genres.xml');
|
||||||
Prefs::Insert($CC_CONFIG["systemPrefId"], 'genres', $genres);
|
// Prefs::Insert($CC_CONFIG["systemPrefId"], 'genres', $genres);
|
||||||
echo "done.\n";
|
echo "done.\n";
|
||||||
} else {
|
} else {
|
||||||
echo " * Skipping: database table already exists: ".$CC_CONFIG['prefTable']."\n";
|
echo " * Skipping: database table already exists: ".$CC_CONFIG['prefTable']."\n";
|
||||||
|
@ -566,7 +567,6 @@ echo "done.\n";
|
||||||
//------------------------------------------------------------------------
|
//------------------------------------------------------------------------
|
||||||
// Install Cron job
|
// Install Cron job
|
||||||
//------------------------------------------------------------------------
|
//------------------------------------------------------------------------
|
||||||
require_once(dirname(__FILE__).'/../cron/Cron.php');
|
|
||||||
$m = '*/2';
|
$m = '*/2';
|
||||||
$h ='*';
|
$h ='*';
|
||||||
$dom = '*';
|
$dom = '*';
|
||||||
|
|
|
@ -22,6 +22,7 @@ echo "***************************\n";
|
||||||
|
|
||||||
require_once(dirname(__FILE__).'/../conf.php');
|
require_once(dirname(__FILE__).'/../conf.php');
|
||||||
require_once(dirname(__FILE__).'/installInit.php');
|
require_once(dirname(__FILE__).'/installInit.php');
|
||||||
|
require_once(dirname(__FILE__).'/../backend/cron/Cron.php');
|
||||||
campcaster_db_connect(false);
|
campcaster_db_connect(false);
|
||||||
|
|
||||||
function camp_uninstall_delete_files($p_path)
|
function camp_uninstall_delete_files($p_path)
|
||||||
|
@ -57,7 +58,6 @@ if (!PEAR::isError($CC_DBC)) {
|
||||||
//------------------------------------------------------------------------
|
//------------------------------------------------------------------------
|
||||||
// Uninstall Cron job
|
// Uninstall Cron job
|
||||||
//------------------------------------------------------------------------
|
//------------------------------------------------------------------------
|
||||||
require_once(dirname(__FILE__).'/../cron/Cron.php');
|
|
||||||
$old_regex = '/transportCron\.php/';
|
$old_regex = '/transportCron\.php/';
|
||||||
echo " * Uninstall storageServer cron job...\n";
|
echo " * Uninstall storageServer cron job...\n";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue