<?php
// --- GOLD MEDIA --- //
require GOLD_BASE.'gold-config.php';
class GOLD_CONNECT {
var $host;
var $username;
var $password;
var $table;
var $user_username;
var $user_password;
var $user_email;
public function connect() {
mysql_connect($this->host,$this->username,$this->password) or die("Gold MEDIA could not connect to MYSQL database " . mysql_error());
mysql_select_db($this->table) or die("Gold MEDIA could not select database " . mysql_error());
mysql_query("SET CHARACTER SET utf8");
mysql_query("SET NAMES 'utf8'");
if($this->host != '' && $this->username != '' && $this->username != '' && $this->table != '') {
$check = mysql_query("SELECT * FROM gold_settings WHERE set_name = 'gold_skin' AND set_content != '' LIMIT 1");
$check_num_row = mysql_num_rows($check);
if($check_num_row != '0') {
$path = "gold-app/gold-includes/";
$sql_filename = "gold.sql";
$sql_contents = file_get_contents($path.$sql_filename);
$sql_contents = explode(";", $sql_contents);
foreach($sql_contents as $query)
{
$result = mysql_query($query);
$result .= mysql_query('UPDATE gold_users SET user_username="'.$this->user_username.'", user_password="'.md5($this->user_password).'", user_email="'.$this->user_email.'" WHERE user_id="1"');
$register_html = '<style type=text/css> /* CLIENT-SPECIFIC STYLES */ #outlook a{padding:0;} /* Force Outlook to provide a view in browser message */ .ReadMsgBody{width:100%;} .ExternalClass{width:100%;} /* Force Hotmail to display emails at full width */ .ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div {line-height: 100%;} /* Force Hotmail to display normal line spacing */ body, table, td, a{-webkit-text-size-adjust:100%; -ms-text-size-adjust:100%;} /* Prevent WebKit and Windows mobile changing default text sizes */ table, td{mso-table-lspace:0pt; mso-table-rspace:0pt;} /* Remove spacing between tables in Outlook 2007 and up */ img{-ms-interpolation-mode:bicubic;} /* Allow smoother rendering of resized image in Internet Explorer */ /* RESET STYLES */ body{margin:0; padding:0;} img{border:0; height:auto; line-height:100%; outline:none; text-decoration:none;} table{border-collapse:collapse !important;} body{height:100% !important; margin:0; padding:0; width:100% !important;} /* iOS BLUE LINKS */ .appleBody a {color:#68440a; text-decoration: none;} .appleFooter a {color:#999999; text-decoration: none;} /* MOBILE STYLES */ @media screen and (max-width: 525px) { /* ALLOWS FOR FLUID TABLES */ table[class=wrapper]{ width:100% !important; } /* ADJUSTS LAYOUT OF LOGO IMAGE */ td[class=logo]{ text-align: left; padding: 20px 0 20px 0 !important; } td[class=logo] img{ margin:0 auto!important; } /* USE THESE CLASSES TO HIDE CONTENT ON MOBILE */ td[class=mobile-hide]{ display:none;} img[class=mobile-hide]{ display: none !important; } img[class=img-max]{ max-width: 100% !important; height:auto !important; } /* FULL-WIDTH TABLES */ table[class=responsive-table]{ width:100%!important; } /* UTILITY CLASSES FOR ADJUSTING PADDING ON MOBILE */ td[class=padding]{ padding: 10px 5% 15px 5% !important; } td[class=padding-copy]{ padding: 10px 5% 10px 5% !important; text-align: center; } td[class=padding-meta]{ padding: 30px 5% 0px 5% !important; text-align: center; } td[class=no-pad]{ padding: 0 0 20px 0 !important; } td[class=no-padding]{ padding: 0 !important; } td[class=section-padding]{ padding: 50px 15px 50px 15px !important; } td[class=section-padding-bottom-image]{ padding: 50px 15px 0 15px !important; } /* ADJUST BUTTONS ON MOBILE */ td[class=mobile-wrapper]{ padding: 10px 5% 15px 5% !important; } table[class=mobile-button-container]{ margin:0 auto; width:100% !important; } a[class=mobile-button]{ width:80% !important; padding: 15px !important; border: 0 !important; font-size: 16px !important; } }</style><!-- HEADER --><table border=0 cellpadding=0 cellspacing=0 width=100%> <tbody><tr> <td bgcolor=#ffffff> <div align=center style=padding: 0px 15px 0px 15px;> <table border=0 cellpadding=0 cellspacing=0 width=500 class=wrapper> <!-- LOGO/PREHEADER TEXT --> <tbody><tr> <td style=padding: 20px 0px 30px 0px; class=logo> <table border=0 cellpadding=0 cellspacing=0 width=100%> <tbody><tr> <td width=160 align=left style= border-radius: 40px; background-color: #DF0000;><a href={$root} target=_blank><img alt=Logo src={$skin}/images/logo.png style=display: block; font-family: Helvetica, Arial, sans-serif; color: #666666; font-size: 16px; border=0></a></td> <td bgcolor=#ffffff width=400 align=right class=mobile-hide> <table border=0 cellpadding=0 cellspacing=0> <tbody><tr> <td align=right style=padding: 0 0 5px 0; font-size: 14px; font-family: Arial, sans-serif; color: #666666; text-decoration: none;><span style=color: #666666; text-decoration: none;>Gold MEDIA - MEDIA SHARE SCRIPT<br>Create Media Website.</span></td> </tr> </tbody></table> </td> </tr> </tbody></table> </td> </tr> </tbody></table> </div> </td> </tr></tbody></table><!-- ONE COLUMN SECTION --><table border=0 cellpadding=0 cellspacing=0 width=100%> <tbody><tr> <td bgcolor=#ffffff align=center style=padding: 70px 15px 70px 15px; class=section-padding> <table border=0 cellpadding=0 cellspacing=0 width=500 class=responsive-table> <tbody><tr> <td> <table width=100% border=0 cellspacing=0 cellpadding=0> <tbody><tr> <td> <!-- HERO IMAGE --> <table width=100% border=0 cellspacing=0 cellpadding=0> <tbody> <tr> <td class=padding-copy> <table width=100% border=0 cellspacing=0 cellpadding=0> <tbody><tr> <td> <a href={$root} target=_blank><img src={$skin}/images/responsive-email.jpg width=500 height=200 border=0 alt=Can an email really be responsive? style=display: block; padding: 0; color: #666666; text-decoration: none; font-family: Helvetica, arial, sans-serif; font-size: 16px; width: 500px; height: 200px; class=img-max></a> </td> </tr> </tbody></table> </td> </tr> </tbody> </table> </td> </tr> <tr> <td> <!-- COPY --> <table width=100% border=0 cellspacing=0 cellpadding=0> <tbody><tr> <td align=center style=font-size: 25px; font-family: Helvetica, Arial, sans-serif; color: #333333; padding-top: 30px; class=padding-copy>Registration Complete</td> </tr> <tr> <td align=center style=padding: 20px 0 0 0; font-size: 16px; line-height: 25px; font-family: Helvetica, Arial, sans-serif; color: #666666; class=padding-copy>Thanks for registering on our media website. We will be happy, if you will be our website active member.</td> </tr> </tbody></table> </td> </tr> <tr> <td> <!-- BULLETPROOF BUTTON --> <table width=100% border=0 cellspacing=0 cellpadding=0 class=mobile-button-container> <tbody><tr> <td align=center style=padding: 25px 0 0 0; class=padding-copy> <table border=0 cellspacing=0 cellpadding=0 class=responsive-table> <tbody><tr> <td align=center><a href={$root}/confirm/{$confirmation_code}/ target=_blank style=font-size: 16px; font-family: Helvetica, Arial, sans-serif; font-weight: normal; color: #ffffff; text-decoration: none; background-color: #EC3A39; border-top: 15px solid #EC3A39; border-bottom: 15px solid #EC3A39; border-left: 25px solid #EC3A39; border-right: 25px solid #EC3A39; border-radius: 3px; -webkit-border-radius: 3px; -moz-border-radius: 3px; display: inline-block; class=mobile-button>Confirm Registration →</a></td> </tr> </tbody></table> </td> </tr> </tbody></table> </td> </tr> </tbody></table> </td> </tr> </tbody></table> </td> </tr></tbody></table><!-- FOOTER --><table border=0 cellpadding=0 cellspacing=0 width=100%> <tbody><tr> <td bgcolor=#ffffff align=center> <table width=100% border=0 cellspacing=0 cellpadding=0 align=center> <tbody><tr> <td style=padding: 20px 0px 20px 0px;> <!-- UNSUBSCRIBE COPY --> <table width=500 border=0 cellspacing=0 cellpadding=0 align=center class=responsive-table> <tbody><tr> <td align=center valign=middle style=font-size: 12px; line-height: 18px; font-family: Helvetica, Arial, sans-serif; color:#666666;> <span class=appleFooter style=color:#666666;>Gold MEDIA - MEDIA SHARE SCRIPT</span><br> </td> </tr> </tbody></table> </td> </tr> </tbody></table> </td> </tr></tbody></table>';
$forgot_html = '<style type=text/css> /* CLIENT-SPECIFIC STYLES */ #outlook a{padding:0;} /* Force Outlook to provide a view in browser message */ .ReadMsgBody{width:100%;} .ExternalClass{width:100%;} /* Force Hotmail to display emails at full width */ .ExternalClass, .ExternalClass p, .ExternalClass span, .ExternalClass font, .ExternalClass td, .ExternalClass div {line-height: 100%;} /* Force Hotmail to display normal line spacing */ body, table, td, a{-webkit-text-size-adjust:100%; -ms-text-size-adjust:100%;} /* Prevent WebKit and Windows mobile changing default text sizes */ table, td{mso-table-lspace:0pt; mso-table-rspace:0pt;} /* Remove spacing between tables in Outlook 2007 and up */ img{-ms-interpolation-mode:bicubic;} /* Allow smoother rendering of resized image in Internet Explorer */ /* RESET STYLES */ body{margin:0; padding:0;} img{border:0; height:auto; line-height:100%; outline:none; text-decoration:none;} table{border-collapse:collapse !important;} body{height:100% !important; margin:0; padding:0; width:100% !important;} /* iOS BLUE LINKS */ .appleBody a {color:#68440a; text-decoration: none;} .appleFooter a {color:#999999; text-decoration: none;} /* MOBILE STYLES */ @media screen and (max-width: 525px) { /* ALLOWS FOR FLUID TABLES */ table[class=wrapper]{ width:100% !important; } /* ADJUSTS LAYOUT OF LOGO IMAGE */ td[class=logo]{ text-align: left; padding: 20px 0 20px 0 !important; } td[class=logo] img{ margin:0 auto!important; } /* USE THESE CLASSES TO HIDE CONTENT ON MOBILE */ td[class=mobile-hide]{ display:none;} img[class=mobile-hide]{ display: none !important; } img[class=img-max]{ max-width: 100% !important; height:auto !important; } /* FULL-WIDTH TABLES */ table[class=responsive-table]{ width:100%!important; } /* UTILITY CLASSES FOR ADJUSTING PADDING ON MOBILE */ td[class=padding]{ padding: 10px 5% 15px 5% !important; } td[class=padding-copy]{ padding: 10px 5% 10px 5% !important; text-align: center; } td[class=padding-meta]{ padding: 30px 5% 0px 5% !important; text-align: center; } td[class=no-pad]{ padding: 0 0 20px 0 !important; } td[class=no-padding]{ padding: 0 !important; } td[class=section-padding]{ padding: 50px 15px 50px 15px !important; } td[class=section-padding-bottom-image]{ padding: 50px 15px 0 15px !important; } /* ADJUST BUTTONS ON MOBILE */ td[class=mobile-wrapper]{ padding: 10px 5% 15px 5% !important; } table[class=mobile-button-container]{ margin:0 auto; width:100% !important; } a[class=mobile-button]{ width:80% !important; padding: 15px !important; border: 0 !important; font-size: 16px !important; } }</style><!-- HEADER --><table border=0 cellpadding=0 cellspacing=0 width=100%> <tbody><tr> <td bgcolor=#ffffff> <div align=center style=padding: 0px 15px 0px 15px;> <table border=0 cellpadding=0 cellspacing=0 width=500 class=wrapper> <!-- LOGO/PREHEADER TEXT --> <tbody><tr> <td style=padding: 20px 0px 30px 0px; class=logo> <table border=0 cellpadding=0 cellspacing=0 width=100%> <tbody><tr> <td width=160 align=left style= border-radius: 40px; background-color: #DF0000;><a href={$root} target=_blank><img alt=Logo src={$skin}/images/logo.png style=display: block; font-family: Helvetica, Arial, sans-serif; color: #666666; font-size: 16px; border=0></a></td> <td bgcolor=#ffffff width=400 align=right class=mobile-hide> <table border=0 cellpadding=0 cellspacing=0> <tbody><tr> <td align=right style=padding: 0 0 5px 0; font-size: 14px; font-family: Arial, sans-serif; color: #666666; text-decoration: none;><span style=color: #666666; text-decoration: none;>Gold MEDIA - MEDIA SHARE SCRIPT<br>Create Media Website.</span></td> </tr> </tbody></table> </td> </tr> </tbody></table> </td> </tr> </tbody></table> </div> </td> </tr></tbody></table><!-- ONE COLUMN SECTION --><table border=0 cellpadding=0 cellspacing=0 width=100%> <tbody><tr> <td bgcolor=#ffffff align=center style=padding: 70px 15px 70px 15px; class=section-padding> <table border=0 cellpadding=0 cellspacing=0 width=500 class=responsive-table> <tbody><tr> <td> <table width=100% border=0 cellspacing=0 cellpadding=0> <tbody><tr> <td> <!-- HERO IMAGE --> <table width=100% border=0 cellspacing=0 cellpadding=0> <tbody> <tr> <td class=padding-copy> <table width=100% border=0 cellspacing=0 cellpadding=0> <tbody><tr> <td> <a href={$root} target=_blank><img src={$skin}/images/responsive-email.jpg width=500 height=200 border=0 alt=Can an email really be responsive? style=display: block; padding: 0; color: #666666; text-decoration: none; font-family: Helvetica, arial, sans-serif; font-size: 16px; width: 500px; height: 200px; class=img-max></a> </td> </tr> </tbody></table> </td> </tr> </tbody> </table> </td> </tr> <tr> <td> <!-- COPY --> <table width=100% border=0 cellspacing=0 cellpadding=0> <tbody><tr> <td align=center style=font-size: 25px; font-family: Helvetica, Arial, sans-serif; color: #333333; padding-top: 30px; class=padding-copy>Password Reset</td> </tr> <tr> <td align=center style=padding: 20px 0 0 0; font-size: 16px; line-height: 25px; font-family: Helvetica, Arial, sans-serif; color: #666666; class=padding-copy>Thanks for password reseting on our media website. We will be happy, if you will be our website active member.</td> </tr> </tbody></table> </td> </tr> <tr> <td> <!-- BULLETPROOF BUTTON --> <table width=100% border=0 cellspacing=0 cellpadding=0 class=mobile-button-container> <tbody><tr> <td align=center style=padding: 25px 0 0 0; class=padding-copy> <table border=0 cellspacing=0 cellpadding=0 class=responsive-table> <tbody><tr> <td align=center><a target=_blank style=font-size: 16px; font-family: Helvetica, Arial, sans-serif; font-weight: normal; color: #ffffff; text-decoration: none; background-color: #EC3A39; border-top: 15px solid #EC3A39; border-bottom: 15px solid #EC3A39; border-left: 25px solid #EC3A39; border-right: 25px solid #EC3A39; border-radius: 3px; -webkit-border-radius: 3px; -moz-border-radius: 3px; display: inline-block; class=mobile-button>Your Temporary Password: <b>{$password}</b></a></td> </tr> </tbody></table> </td> </tr> </tbody></table> </td> </tr> </tbody></table> </td> </tr> </tbody></table> </td> </tr></tbody></table><!-- FOOTER --><table border=0 cellpadding=0 cellspacing=0 width=100%> <tbody><tr> <td bgcolor=#ffffff align=center> <table width=100% border=0 cellspacing=0 cellpadding=0 align=center> <tbody><tr> <td style=padding: 20px 0px 20px 0px;> <!-- UNSUBSCRIBE COPY --> <table width=500 border=0 cellspacing=0 cellpadding=0 align=center class=responsive-table> <tbody><tr> <td align=center valign=middle style=font-size: 12px; line-height: 18px; font-family: Helvetica, Arial, sans-serif; color:#666666;> <span class=appleFooter style=color:#666666;>Gold MEDIA - MEDIA SHARE SCRIPT</span><br> </td> </tr> </tbody></table> </td> </tr> </tbody></table> </td> </tr></tbody></table>';
$result .= mysql_query('UPDATE gold_settings SET set_content="'.$register_html.'" WHERE set_name="gold_email_template_register"');
$result .= mysql_query('INSERT INTO `gold_pages` (`page_id`, `name`, `title`, `content`, `status`) VALUES
(1, "about-us", "About us", "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.", 1)
');
$result .= mysql_query("INSERT INTO `gold_pages` (`page_id`, `name`, `title`, `content`, `status`) VALUES
(2, 'feedback', 'Feedback', '<form method=post id=contact_form action=../gold-app/gold-includes/GOLD.php><b class=success>Your message successfully sent!</b><p><label>Your Name <span class=req>*</span><em id=err_full_name class=error>required</em></label><input type=text id=full_name name=full_name class=text req_class></p><p><label>Email Address <span class=req>*</span><em id=err_email class=error>required</em></label><input type=text id=email name=email class=text req_class></p><p><label>Comments <span class=req>*</span><em id=err_comments class=error>required</em></label><textarea id=comments name=comments rows=5 cols=50 class=req_class style=outline: 0px; line-height: 25px; height: 160px; margin-top: 0px; margin-bottom: 12px;></textarea></p> <p class=button><input type=submit value=Submit name=submit_feedback id=contact_btn class=btn ajax_submit_btn style=padding: 6px 20px; margin: 10px 0px;border: none;></p></form><style>select, textarea, input[type=text], input[type=password], input[type=datetime], input[type=datetime-local], input[type=date], input[type=month], input[type=time], input[type=week], input[type=number], input[type=email], input[type=url], input[type=search], input[type=tel], input[type=color], .field { border: 2px solid rgb(177, 178, 179); } .wrap input:focus { border: 2px solid #EC3A39; } .wrap textarea:focus { border: 2px solid #EC3A39; }</style>', 1)
");
}
}
}
}
}
?>