",$str);
+
+ $pattern = "/KERNING=\"(.*?)\"/i";
+ $str = preg_replace($pattern,"",$str);
+
+ $pattern = "/LETTERSPACING=\"(.*?)\"/i";
+ $str = preg_replace($pattern,"",$str);
+
+ $pattern = "//i";
+ $str = preg_replace($pattern, "
",$str);
+
+ $pattern = "//i";
+ $str = preg_replace($pattern, "",$str);
+
+ return($str);
+ }
+
+function send_mail($to, $body, $subject, $fromaddress, $fromname, $notification=0) {
+
$eol="\r\n";
$mime_boundary=md5(time());
+ $body = "$body\n \nIf you wish to change how you receive future notifications, please click here . \nIf you have any questions, please contact support@tuve.tv .
\n© 2008, Ubix Media Group
";
+
# Common Headers
$headers .= "From: ".$fromname."<".$fromaddress.">".$eol;
$headers .= "Reply-To: ".$fromname."<".$fromaddress.">".$eol;
@@ -20,53 +70,26 @@
# Boundry for marking the split & Multitype Headers
$headers .= 'MIME-Version: 1.0'.$eol;
- $headers .= "Content-Type: multipart/alternative; $eol boundary=\"".$mime_boundary."\"".$eol;
+ $headers .= "Content-Type: multipart/alternative; $eol boundary=------------$mime_boundary"; //$eol";
$msg = "This is a multi-part message in MIME format.$eol";
# Open the first part of the mail
- $msg .= "--".$mime_boundary.$eol;
# Text Version
- $msg .= "--".$mime_boundary.$eol;
- $msg .= "Content-Type: text/plain; charset=iso-8859-1".$eol;
- $msg .= "Content-Transfer-Encoding: 8bit".$eol.$eol;
- $msg .= strip_tags(str_replace(" ", "\r\n", substr($body, (strpos($body, "")+6)))).$eol.$eol;
+ $msg .= "--------------$mime_boundary$eol";
+ $msg .= "Content-Type: text/plain; charset=iso-8859-1; format=flowed".$eol;
+ $msg .= "Content-Transfer-Encoding: 7bit".$eol.$eol;
+ $msg .= strip_tags(str_ireplace(" ", "\r\n",$body)) .$eol . $eol;
+ #$msg .= strip_tags(str_replace(" ", "\r\n", substr($body, (strpos($body, "")+6)))).$eol.$eol;
# HTML Version
- $msg .= "--".$mime_boundary.$eol;
+ $msg .= "--------------$mime_boundary$eol";
$msg .= "Content-Type: text/html; charset=iso-8859-1".$eol;
- $msg .= "Content-Transfer-Encoding: 8bit".$eol.$eol;
+ $msg .= "Content-Transfer-Encoding: 7bit".$eol.$eol;
+ $msg .= "$eol$eol$eol$eol$eol";
$msg .= $body.$eol.$eol;
+ $msg .= "$eol$eol";
- if ($attachments !== false)
- {
- for($i=0; $i < count($attachments); $i++)
- {
- if (is_file($attachments[$i]["file"]))
- {
- # File for Attachment
- $file_name = substr($attachments[$i]["file"], (strrpos($attachments[$i]["file"], "/")+1));
-
- $handle=fopen($attachments[$i]["file"], 'rb');
- $f_contents=fread($handle, filesize($attachments[$i]["file"]));
- $f_contents=chunk_split(base64_encode($f_contents)); //Encode The Data For Transition using base64_encode();
- $f_type=filetype($attachments[$i]["file"]);
- fclose($handle);
-
- # Attachment
- $msg .= "--".$mime_boundary.$eol;
- $msg .= "Content-Type: ".$attachments[$i]["content_type"]."; name=\"".$file_name."\"".$eol; // sometimes i have to send MS Word, use 'msword' instead of 'pdf'
- $msg .= "Content-Transfer-Encoding: base64".$eol;
- $msg .= "Content-Description: ".$file_name.$eol;
- $msg .= "Content-Disposition: attachment; filename=\"".$file_name."\"".$eol.$eol; // !! This line needs TWO end of lines !! IMPORTANT !!
- $msg .= $f_contents.$eol.$eol;
- }
- }
- }
-
- # Finished
- $msg .= "--".$mime_boundary."--".$eol.$eol; // finish with two eol's for better security. see Injection.
-
# SEND THE EMAIL
ini_set(sendmail_from,$fromaddress); // the INI lines are to force the From Address to be used !
$mail_sent = mail($to, $subject, $msg, $headers);
@@ -74,8 +97,7 @@
ini_restore(sendmail_from);
return $mail_sent;
-}
-
+ }
function makeRating($rating) {
$ret = "\n";
@@ -90,68 +112,4 @@
return($ret);
}
-
-
-
-function getCompany($data,$cid) {
- if ($cid == -1)
- return("Everyone");
- else {
- $query = "SELECT company FROM users WHERE UID='$cid'";
- $result = mysql_query($query);
- return(mysql_result($result,0,'company'));
- }
- }
-
-function getGroup($data,$gid) {
- $query = "SELECT * FROM groups WHERE id='$gid'";
- $result = mysql_query($query);
- return(mysql_result($result,0,'group'));
- }
-
-function mkGroupList($data) {
- $group = "Select Group \n";
- if ($data[lg] != "") {
- $query = "SELECT * FROM groups WHERE id > 1";
- $gid = $data[lg];
- }
- else {
- $query = "SELECT * FROM groups";
- $gid = $data[gid];
- }
- $result = mysql_query($query);
- $rows = mysql_numrows($result);
- for ($i=0;$i<$rows;$i++) {
- $id = mysql_result($result,$i,'id');
- if ($gid == $id)
- $sel = "SELECTED";
- else
- $sel = "";
- $group .= "" . mysql_result($result,$i,'group') . " \n";
- }
- return($group);
- }
-
-function mkCompanyList($data) {
- $company = "Select Company \n";
- if ($data[gid] == 1)
- $query = "SELECT company,uid FROM users WHERE GID = 2 AND active = 1 ORDER BY company";
- else
- $query = "SELECT company,uid FROM users WHERE UID='$data[uid]' ORDER BY company";
- $result = mysql_query($query);
- $num = mysql_numrows($result);
- if ($data[company] == -1)
- $sel = "SELECTED";
- $company .= "All Companies \n";
- for ($i=0;$i<$num;$i++) {
- $uid = mysql_result($result,$i,'uid');
- if ($data[company] == $uid)
- $sel = "SELECTED";
- else
- $sel = "";
- $company .= "" . mysql_result($result,$i,'company') . " \n";
- }
- return($company);
- }
-
?>
diff --git a/include/site.inc b/include/site.inc
index 584961e..cf33956 100755
--- a/include/site.inc
+++ b/include/site.inc
@@ -8,11 +8,18 @@
}
if ($_REQUEST['user']) {
- $data[user] = $_REQUEST['user'];
+ $data['user'] = $_REQUEST['user'];
}
else {
$data['user'] = $_POST['user'];
}
+
+ if ($_REQUEST['active'])
+ $data['active'] = $_REQUEST['active'];
+ if ($_REQUEST['email'])
+ $data['email'] = $_REQUEST['email'];
+
+ $data['HTTP_REFERER'] = $_SERVER['HTTP_REFERER'];
/* Main includes */
include("fasttemp.inc");
diff --git a/templates/index/index.html b/templates/index/index.html
index 91f16b4..bdcc309 100644
--- a/templates/index/index.html
+++ b/templates/index/index.html
@@ -10,18 +10,26 @@
@@ -29,7 +37,7 @@
+
diff --git a/templates/main.html b/templates/main.html
index 0b40c0d..7e36131 100644
--- a/templates/main.html
+++ b/templates/main.html
@@ -1,8 +1,116 @@
-
+
+
+
+
+
+
+
+
TUvé's Newest Videos:
+
+{NEW_VIDS}
+
+
+
+
+
TUvé's Newest Members:
+{NEW_MEMBERS}
TUvé News
New Chat Widget. We've created a small chat widget which you integrate into your web site for people to join the tuve network.
Click Here To see this widget in action.
We'd like to welcome on board our newest exclusive content provider, Sean O'Donnell. Sean has been doing his own show for about a year now. You can check out his episodes at
http://seanodonnell.tuve.tv (following this link will launch TUvé in a new window).
@@ -11,7 +119,7 @@
Windows 98/2000/XP/Vista with IE/Firefox/Opera
OSX with Firefox/Safari
-
+
diff --git a/templates/news.html b/templates/news.html
index 16381c9..7cdcf36 100644
--- a/templates/news.html
+++ b/templates/news.html
@@ -4,6 +4,9 @@
News
+
2008-04-22 - Mail System
+Our new mail system is now online. E-Mail can now be found under the communication tab. This allows you to send messages to all of your buddies.
+
2008-06-02 - New Chat Widget, ubChattin
New Chat Widget. We've created a small chat widget which you integrate into your web site for people to join the tuve network.
Click Here To see this widget in action.
2008-23-01 - New Features
diff --git a/templates/profile.html b/templates/profile.html
index 8241741..ceb15fe 100644
--- a/templates/profile.html
+++ b/templates/profile.html
@@ -8,8 +8,10 @@
{USER}
-
- {CAPTION} {GENDER} {AGE} Years Old {LOCATION} Member Since: {REGISTERED} {ONLINE}
+
+
+ {CAPTION} {GENDER} {AGE} Years Old {LOCATION} Member Since: {REGISTERED} {ONLINE}
+
@@ -24,6 +26,7 @@
+
See More Channels
@@ -40,6 +43,14 @@
+
+
{USER}'s Comments:
+
+
Leave Comment
+
+
diff --git a/templates/register-success.html b/templates/register-success.html
index 0e0ea91..b77ce0b 100644
--- a/templates/register-success.html
+++ b/templates/register-success.html
@@ -6,7 +6,11 @@
How TUvé Works
TUvé Registration Successful
-Congratulations your account is now registered. Please confirm your email address than log into your account.
+Congratulations your account is now registered.
+Shortly you will be receiving an activation letter in your inbox to confirm your email address.
+Please follow the instruction provided in your activation letter to active your account.
+To also avoid any delays this letter will be coming from support@tuve.tv if you use a white list please ensure that you add this address to it otherwise if you do not receive it shortly please check your spam folder for this letter.
+If you are still having difficulties please feel free to contact us the support address is support@tuve.tv
diff --git a/templates/register.html b/templates/register.html
index 348fea5..94c8a7d 100644
--- a/templates/register.html
+++ b/templates/register.html
@@ -15,10 +15,13 @@
* Country:{COUNTRY}
* Birthday:{BMONTH} {BDAY} {BYEAR}
* Username:
+* Gender:{GENDER}
* Password:
* Confirm Password:
* E-mail:
* Confirm E-mail:
+Referral Code:
+ I agree to the terms of use and privacy policy.
diff --git a/templates/view-row.html b/templates/view-row.html
index a48f215..2a612ab 100644
--- a/templates/view-row.html
+++ b/templates/view-row.html
@@ -1,7 +1,7 @@
-
+
diff --git a/templates/view.html b/templates/view.html
index df3e550..5e46c97 100644
--- a/templates/view.html
+++ b/templates/view.html
@@ -99,17 +99,31 @@
+
+Embed:
+
- More From {USER}
+
{NEW_VIDS}
+
+
+
+
Biography:
+
{BIOGRAPHY}
+
+
+
Description:
+
{DESCRIPTION}
+
+
diff --git a/templates/vs-rows.html b/templates/vs-rows.html
index f967519..bf0aac0 100644
--- a/templates/vs-rows.html
+++ b/templates/vs-rows.html
@@ -1,5 +1,5 @@
-
+
{ARTIST} - {TITLE} Length: {LENGTH} From: {USERNAME} Views: {VIEWS}