Commit Graph

24 Commits

Author SHA1 Message Date
fgerlits 6efc50520c reverted the storageServer, archiveServer, storageAdmin and htmlUI modules to their branches/campcaster-1.2 (last known working) state 2007-05-10 09:57:06 +00:00
paul 0cd289c48b In BasicStor.php, converted many functions to STATIC because thats what they were. This in turn converted many other functions to STATIC in other files. Commented out functions that were not in use. Removed code that was already commented out. The Prefs class no longer requires the greenbox in its constructor. Changed the poorly named "upload2Hub" to "uploadToHub". Changed "uploadFileToHub" to "uploadFileAsync" (partly because the idea of a Hub no longer exists). Added public/private keywords to functions in Transport.php. Converted some comments mentioning LS to CC. DataEngine class no longer needs a Greenbox object to initialize it. Expanded LocStor::searchMetadata() to handle remote searches as well as local searches. 2007-03-05 13:54:55 +00:00
paul e5ea53f8ac Fix for #2186 - funky characters in file names cause import script to crash. 2007-02-13 16:42:20 +00:00
paul f41791c944 Added documentation 2007-02-13 12:09:07 +00:00
paul be56bbd453 Fixed bug where clicking on a column name in the search results gave you no results from that point forward. Now if you click on a column name it will sort by the column. Fixed #2173 - This was done by removing the sorting by track number. However, and upgrade script has been added to clean track numbers (convert from things like "20/1" to "1"), and this same function is used when importing from the command line and the web (however, not from the studio). More fixes for #2107 - changed the way the Web BROWSE columns work so that they matched how the studio works (i.e. each column is dependent on the previous column). 2007-02-09 15:38:57 +00:00
paul c76376e327 print out error message when copy/link operation fails so i can debug whats going wrong with dougs bug 2007-01-24 17:37:43 +00:00
tomash 8818ae3537 #2058 cancel transport kill already running transport processes too 2007-01-24 03:04:56 +00:00
paul 6700878ccb Fixed bug with missing include file 2007-01-21 06:09:57 +00:00
paul 488dad1fd9 Cleaned up BasicStor::bsPutFile()/StoredFile::Insert() by making a better set of more extensible parameters. This allowed me to pass in the MD5 and MIME type values, which means those values do not have to be re-calculated when this function is called. This means adding files will be faster now (each calculation of an MD5 value is .25 of a second on my machine). Added a cache to the Metadata class (this class needs serious cleaning up), so that you only have to do one database call and the rest of the time you just use the cache. The number of calls to getMetadataValue() should speedups due to this. Merged the LsPlaylist class into the Playlist class. Importing through the import script and web interface now reads the COMMENT tag and the COMPOSER tag (bug #2108). Moved from using (ls:genre) to (dc:type) for the metadata label for genre and added to the upgrade script to take this into account. Fixed bug in StoredFile::Recall() so that Playlists work again, added an MD5 parameter for this function so that all the Recall functions work in the same way, changed the return value to NULL if the Recall function does not find the record. Made a lot of code more readable and easier to debug. Added StoredFile::getGunid(). 2007-01-21 03:31:19 +00:00
paul 7aaabb2165 Minor code formatting tweaks. 2007-01-12 06:13:13 +00:00
paul 623be37d8a Fix for the bug where you could not upload files (the first part of bug #2114). Converted StoredFile into a real class that mapped the database table properly. Renamed some functions to be consistent with each other and with coding standards. 2007-01-11 19:24:45 +00:00
paul e910361aa0 Combined the RawMediaData class into the StoredFile class in order to simplify things. Fixed a bug related to the variable NAME (filename - which is now called FNAME) in the StoredFile class. Added code documentation. 2007-01-10 16:55:17 +00:00
paul 997814e78a Added md5 checksum to FILES table in the database. The XML-RPC function call storeAudioClipOpen now returns error code 888 if the file uploaded is a duplicate of an existing file. Started an upgrade script, but still needs a little bit of work. Removed unused className argument to StoredFile::recall functions. Fixed xr_cli_test.php to use Console_GetOpt PEAR class and fixed code formatting. Fixed code documentation. Fixed some function names to conform to coding standards. 2007-01-09 21:11:45 +00:00
tomash 1cbc14025c #1855 copying of media files replaces by making symlink in import script 2007-01-08 00:41:32 +00:00
paul 425212bfb8 Possible fix for #2100 - scheduler user is not created. There is now a more verbose output when this step is taken, and also there were previous steps, that if they failed, would prevent this step from happening; so this has been fixed as well. Converted more functions to static functions because thats what they were in the first place...they were just pretending to be member functions. 2006-12-20 02:46:29 +00:00
paul 4733682a62 Refactored Alib to reveal its true nature: a bunch of static functions inside of classes. This makes it much easier to understand what is going on, and removes 4 layers of class heirarchies (now only 4 left). There are now two important global variables: CC_DBC, the database connection, and CC_CONFIG, the config variables. These used to be passed around to all classes, but since they are always the same they should be global. Refactored the StorageServer install scripts to live outside of the classes. They now live in the storageServer install scripts. A lot of functions in the StorageServer have become static as well, but there are definitely more that I didnt get to. Lots of code cleanup as well. This is a big update. 2006-12-16 06:36:22 +00:00
paul c1d4c33b31 Added public/private/static definitions to functions 2006-12-08 04:28:50 +00:00
tomash 9ab775b5b7 several public keyword added 2006-11-23 14:42:33 +00:00
paul cb921c1b02 Changing various function names to be more obvious and consistent. Get rid of unneeded data copying ( = = someFunction()). 2006-11-23 06:57:22 +00:00
paul 94a0be4e6a Added documentation, removed function _idFromGunid(), which was not used. 2006-11-21 15:47:48 +00:00
paul bb00be70bb Started to convert code to PHP5 using public/private/protected/static and __construct() method, got rid of =& when constructing objects. Improved documentation in many places. Commented out functions that are no longer in use. Got rid of double-copy operations when checking for errors (e.g. $foo = $r = myMethod()). Tweaked code here and there to fit coding conventions. 2006-11-14 19:09:20 +00:00
tomash 42891b2059 minor fixes (prevention of warnings) 2006-11-03 21:07:06 +00:00
paul 9d98920a49 Make sure not to double-escape strings used in SQL. Fixed some formatting to comply with style guidelines. 2006-10-25 20:36:52 +00:00
paul fe31d2dfab Renaming top-level livesupport directory (/trunk/livesupport) to campcaster (trunk/campcaster). 2006-10-19 14:55:07 +00:00