query($sql); if (PEAR::isError($result)) { echo "* Failed inserting data into cc_country".PHP_EOL; echo "* Message {$result->getMessage()}".PHP_EOL; exit(1); } $ini = parse_ini_file(__DIR__."/airtime-install.ini"); $stor_dir = realpath($ini["storage_dir"])."/"; echo "* Inserting stor directory location $stor_dir into music_dirs table".PHP_EOL; $sql = "INSERT INTO cc_music_dirs (directory, type) VALUES ('$stor_dir', 'stor')"; $result = $CC_DBC->query($sql); if (PEAR::isError($result)) { echo "* Failed inserting {$stor_dir} in cc_music_dirs".PHP_EOL; echo "* Message {$result->getMessage()}".PHP_EOL; exit(1); } //create cron file for phone home stat AirtimeInstall::CreateCronFile(); //old database had a "fullpath" column that stored the absolute path of each track. We have to //change it so that the "fullpath" column has