* This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU Affero General Public License for more details. * * * * You should have received a copy of the GNU Affero General Public License * * along with this program. If not, see <http://www.gnu.org/licenses/>. * * * *******************************************************************************/ global $args, $SqlDatabase, $User; // Include API require 'php/friend.php'; // TODO: Only run this the first time ------------------------------------------ // Check database! $o = new DbTable('DockItem'); if (!$o->LoadTable()) { $SqlDatabase->query(' CREATE TABLE DockItem ( ID bigint(20) NOT NULL auto_increment, `Parent` bigint(20) default \'0\', UserID bigint(20) default \'0\', `Application` varchar(255), ShortDescription varchar(255), SortOrder int(11) default \'0\', PRIMARY KEY(ID) ) '); } // End run things first time --------------------------------------------------- // Let's examine arguments!