Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * @author UnknownKind
- * @copyright 2010
- */
- class CMS
- {
- private $connection;
- function __construct()
- {
- $this->MysqlConnect('localhost','killa_ki4234234llavb','FUCKYOU','killa234_vb4');
- }
- public function MysqlConnect($host='',$user='',$password='',$database='')
- {
- $this->connection = mysql_connect($host,$user,$password);
- if(!$this->connection)
- {
- die(mysql_error());
- }
- if(!mysql_select_db($database,$this->connection))
- {
- die(mysql_error());
- }
- return $this->connection;
- }
- }
- $cms = new CMS();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement