clipbucket/upload/plugins/editors_pick/install_editors_picks.php
Arslan Hassan fcd28e49b8 ADDED : Editor's PICK plugins
UPDATE : Index Page
2009-11-05 21:50:39 +00:00

27 lines
No EOL
750 B
PHP

<?php
require_once('../includes/common.php');
//Creating Table for anncoument if not exists
function install_editors_pick()
{
global $db;
$db->Execute(
"CREATE TABLE IF NOT EXISTS `cb_editors_picks` (
`pick_id` int(225) NOT NULL AUTO_INCREMENT,
`videoid` int(225) NOT NULL,
`sort` bigint(5) NOT NULL DEFAULT '1',
`date_added` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`pick_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;"
);
//inserting new announcment
$db->Execute("INSERT INTO cb_global_announcement (announcement) VALUES ('')");
}
//This will first check if plugin is installed or not, if not this function will install the plugin details
install_editors_pick();
?>