clipbucket/upload/plugins/global_announcement/install_global_announcement.php
Arslan Hassan 5ef561f550 Fixed : Database Structre, now fully utf8
Fixed : Collection Caregories typo
Added : global annoucement collation
Fixed : Invalid verifaction code for comments fixed..
Added : add comment error css
2011-05-17 12:21:17 +00:00

23 lines
No EOL
590 B
PHP

<?php
require_once('../includes/common.php');
//Creating Table for anncoument if not exists
function install_global_announcement()
{
global $db;
$db->Execute(
'CREATE TABLE IF NOT EXISTS '.tbl("global_announcement").' (
`announcement` text NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8;;'
);
//inserting new announcment
$db->Execute("INSERT INTO ".tbl('global_announcement')." (announcement) VALUES ('')");
}
//This will first check if plugin is installed or not, if not this function will install the plugin details
install_global_announcement();
?>