2013-10-07 12:17:06 +00:00
|
|
|
<?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 ".tbl('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
|
2014-05-26 06:30:39 +00:00
|
|
|
//$db->Execute("INSERT INTO ".tbl('global_announcement')." (announcement) VALUES ('')");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$db->Execute("ALTER TABLE ".tbl('video')." ADD `in_editor_pick` varchar(255) DEFAULT 'no' ");
|
|
|
|
|
2013-10-07 12:17:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//This will first check if plugin is installed or not, if not this function will install the plugin details
|
|
|
|
install_editors_pick();
|
|
|
|
|
|
|
|
?>
|