From 9cd88aec5758c6e32dc45ced5f5f9095cb9ce818 Mon Sep 17 00:00:00 2001 From: patelfenil Date: Thu, 24 Sep 2015 01:03:32 +0530 Subject: [PATCH] integrating technovit --- public/Inside/technovit/comments.php | 676 ++++++++++++++++++++ public/Inside/technovit/connectivitieee.php | 567 ++++++++++++++++ public/Inside/technovit/diseno.php | 567 ++++++++++++++++ public/Inside/technovit/informal.php | 567 ++++++++++++++++ public/Inside/technovit/qubit.php | 567 ++++++++++++++++ public/Inside/technovit/taikuun.php | 567 ++++++++++++++++ public/Inside/technovit/vitness.php | 567 ++++++++++++++++ signup_verify_app.php | 1 + 8 files changed, 4079 insertions(+) create mode 100755 public/Inside/technovit/comments.php create mode 100755 public/Inside/technovit/connectivitieee.php create mode 100755 public/Inside/technovit/diseno.php create mode 100755 public/Inside/technovit/informal.php create mode 100755 public/Inside/technovit/qubit.php create mode 100755 public/Inside/technovit/taikuun.php create mode 100755 public/Inside/technovit/vitness.php diff --git a/public/Inside/technovit/comments.php b/public/Inside/technovit/comments.php new file mode 100755 index 0000000..c343904 --- /dev/null +++ b/public/Inside/technovit/comments.php @@ -0,0 +1,676 @@ + + + + + + + + + + + + + + + + + + Comments + + + + + + + + + + + + + + + + + + + + + +
+ + +
+
+ + +
+
+ +
+
+
+
+ +
+
+
+ +
+
+ +
+
+ +
+ +
+ +
+
+

+ =$sz)break; + } + //echo $var."
"; + $disp=$disp."
"; + + } + } + $disp=$disp.$st[$ind]; + $ind++; + if($ind>=$sz)break; + } + if($ind>=$sz)break; + if($st[$ind]==' ') + { + $i=$ind; + $disp=$disp.$st[$ind]; + continue; + } + while($st[$ind]!=' '&& $st[$ind]!='#') + { + $disp=$disp.$st[$ind]; + $ind++; + if($ind>=$sz) + { + $disp=$disp.""; + break; + } + } + if($ind<$sz) + { + $disp=$disp.""; + } + $i=$ind-1; + } + else $disp=$disp.$st[$i]; + } + + + + //echo ucfirst($view_post['postion']); + $pattern = '#[-a-zA-Z0-9@:%_\+.~\#?&//=]{2,256}\.[a-z]{2,4}\b(\/[-a-zA-Z0-9@:%_\+.~\#?&//=]*)?#si'; + $str =ucfirst(ucfirst($disp)); + $num_found = preg_match_all($pattern, $str, $out); + $str1=serialize($out); + $start=0; + for($i=0;$i<$num_found;$i++) + { + $flag=0; + $s=strpos($str1,'http',$start); + if(!$s) + { + $s=strpos($str1,'www',$start); + $flag++; + } + $s1=strpos($str1,';',$s); + $s1=$s1-2; + //echo $s." ".$s1."
"; + $start=$s1; + $link=substr($str1,$s,$s1-$s+1); + + if($flag==1) + { + $link1="https://".$link; + } + else + $link1=$link; + //echo $link."
"; + $str=str_replace($link,"$link1",$str); + } + echo nl2br($str). " "; + ?>

+
+ '; + } + ?> +

+ +
+ + + Comment ( + + ) + + +
    + +
    > +
  • +
    + + + '; + if($dpcounter>0) + echo ''; + else + echo ''; + } + ?> +
    +
    +
    + +
    + "; + $start=$s1; + $link=substr($str1,$s,$s1-$s+1); + + if($flag==1) + { + $link1="https://".$link; + } + else + $link1=$link; + //echo $link."
    "; + $str=str_replace($link,"$link1",$str); + } + echo nl2br($str). " "; + + ?> +
    + + + + + + +
    +
    + +
  • + + '; + if($dpcounter>0) + echo ''; + else + echo ''; + } + ?> +
+
+
+ +
+ "; + $start=$s1; + $link=substr($str1,$s,$s1-$s+1); + + if($flag==1) + { + $link1="https://".$link; + } + else + $link1=$link; + //echo $link."
"; + $str=str_replace($link,"$link1",$str); + } + echo nl2br($str). " "; + ?> +
+ + + + + + +
+
+
+
> +
  • +
    + + + '; + if($dpcounter>0) + echo ''; + else + echo ''; + } + ?> +
    +
    +
    &school="> + + +
    +
  • + + + + +
    +
    + +
    + +
    +
    + + + + + + + + + + + + + + + + + + + + diff --git a/public/Inside/technovit/connectivitieee.php b/public/Inside/technovit/connectivitieee.php new file mode 100755 index 0000000..40ecf6a --- /dev/null +++ b/public/Inside/technovit/connectivitieee.php @@ -0,0 +1,567 @@ + + + + + +0) + $dp_url = "http://cambuzz.co.in/public/Inside/images/".$imageid."_".$dpcounter.".jpg"; + else + $dp_url = "http://cambuzz.co.in/public/Inside/images/".$imageid.".jpg"; + } + $post_user = $current_user; + date_default_timezone_set('Asia/Calcutta'); + $post_time = date("Y-m-d\TH:i:s"); + $school="connectivitieee"; + $query = "INSERT INTO technovit (content, picset, post_user, post_time , school) VALUES ('{$content}', {$picset}, '{$post_user}', '{$post_time}', '{$school}')"; + $sql = mysqli_query($conn, $query); + $council = "connectivitieee"; + $main_query = "INSERT INTO app (content, picset, post_user, post_time, council, po_url, dp_url) VALUES ('{$content}', {$picset}, '{$post_user}', '{$post_time}', '{$council}', '{$po_url}', '{$dp_url}')"; + $main_sql = mysqli_query($conn, $main_query); +} + +if((isset($_POST['searchsubmit']))&&(isset($_POST['search']))) +{ + $str1=mysqli_real_escape_string($conn,htmlspecialchars($_POST['search'])); + $str="search_tag.php?word=".urlencode($str1).""; + redirect_to($str); +} + +$query = "SELECT * FROM technovit WHERE school='connectivitieee' ORDER BY id DESC"; +$result = mysqli_query($conn, $query); +confirm_query($result); +?> + + + + + + + + + connectiVITieee | technoVIT'15 + + + + + + + + + + + + + + + + + + + + +
    + + +
    +
    + +
    +
    + +
    +
    +
    +
    + +
    +
    +
    +
    +
    + + +
    +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/Inside/technovit/diseno.php b/public/Inside/technovit/diseno.php new file mode 100755 index 0000000..5ef01fa --- /dev/null +++ b/public/Inside/technovit/diseno.php @@ -0,0 +1,567 @@ + + + + + +0) + $dp_url = "http://cambuzz.co.in/public/Inside/images/".$imageid."_".$dpcounter.".jpg"; + else + $dp_url = "http://cambuzz.co.in/public/Inside/images/".$imageid.".jpg"; + } + $post_user = $current_user; + date_default_timezone_set('Asia/Calcutta'); + $post_time = date("Y-m-d\TH:i:s"); + $school="diseno"; + $query = "INSERT INTO technovit (content, picset, post_user, post_time , school) VALUES ('{$content}', {$picset}, '{$post_user}', '{$post_time}', '{$school}')"; + $sql = mysqli_query($conn, $query); + $council = "diseno"; + $main_query = "INSERT INTO app (content, picset, post_user, post_time, council, po_url, dp_url) VALUES ('{$content}', {$picset}, '{$post_user}', '{$post_time}', '{$council}', '{$po_url}', '{$dp_url}')"; + $main_sql = mysqli_query($conn, $main_query); +} + +if((isset($_POST['searchsubmit']))&&(isset($_POST['search']))) +{ + $str1=mysqli_real_escape_string($conn,htmlspecialchars($_POST['search'])); + $str="search_tag.php?word=".urlencode($str1).""; + redirect_to($str); +} + +$query = "SELECT * FROM technovit WHERE school='diesno' ORDER BY id DESC"; +$result = mysqli_query($conn, $query); +confirm_query($result); +?> + + + + + + + + + Diseno | technoVIT'15 + + + + + + + + + + + + + + + + + + + + +
    + + +
    +
    + +
    +
    + +
    +
    +
    +
    + +
    +
    +
    +
    +
    + +
    + + +
    +
    +
    +
    +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/Inside/technovit/informal.php b/public/Inside/technovit/informal.php new file mode 100755 index 0000000..788518a --- /dev/null +++ b/public/Inside/technovit/informal.php @@ -0,0 +1,567 @@ + + + + + +0) + $dp_url = "http://cambuzz.co.in/public/Inside/images/".$imageid."_".$dpcounter.".jpg"; + else + $dp_url = "http://cambuzz.co.in/public/Inside/images/".$imageid.".jpg"; + } + $post_user = $current_user; + date_default_timezone_set('Asia/Calcutta'); + $post_time = date("Y-m-d\TH:i:s"); + $school="informal"; + $query = "INSERT INTO technovit (content, picset, post_user, post_time , school) VALUES ('{$content}', {$picset}, '{$post_user}', '{$post_time}', '{$school}')"; + $sql = mysqli_query($conn, $query); + $council = "informal"; + $main_query = "INSERT INTO app (content, picset, post_user, post_time, council, po_url, dp_url) VALUES ('{$content}', {$picset}, '{$post_user}', '{$post_time}', '{$council}', '{$po_url}', '{$dp_url}')"; + $main_sql = mysqli_query($conn, $main_query); +} + +if((isset($_POST['searchsubmit']))&&(isset($_POST['search']))) +{ + $str1=mysqli_real_escape_string($conn,htmlspecialchars($_POST['search'])); + $str="search_tag.php?word=".urlencode($str1).""; + redirect_to($str); +} + +$query = "SELECT * FROM technovit WHERE school='informal' ORDER BY id DESC"; +$result = mysqli_query($conn, $query); +confirm_query($result); +?> + + + + + + + + + Informal/Gaming | technoVIT'15 + + + + + + + + + + + + + + + + + + + + +
    + + +
    +
    + +
    +
    + +
    +
    +
    +
    + +
    +
    +
    +
    +
    + +
    + + +
    +
    +
    +
    +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/Inside/technovit/qubit.php b/public/Inside/technovit/qubit.php new file mode 100755 index 0000000..ef6f216 --- /dev/null +++ b/public/Inside/technovit/qubit.php @@ -0,0 +1,567 @@ + + + + + +0) + $dp_url = "http://cambuzz.co.in/public/Inside/images/".$imageid."_".$dpcounter.".jpg"; + else + $dp_url = "http://cambuzz.co.in/public/Inside/images/".$imageid.".jpg"; + } + $post_user = $current_user; + date_default_timezone_set('Asia/Calcutta'); + $post_time = date("Y-m-d\TH:i:s"); + $school="qubit"; + $query = "INSERT INTO technovit (content, picset, post_user, post_time , school) VALUES ('{$content}', {$picset}, '{$post_user}', '{$post_time}', '{$school}')"; + $sql = mysqli_query($conn, $query); + $council = "qubit"; + $main_query = "INSERT INTO app (content, picset, post_user, post_time, council, po_url, dp_url) VALUES ('{$content}', {$picset}, '{$post_user}', '{$post_time}', '{$council}', '{$po_url}', '{$dp_url}')"; + $main_sql = mysqli_query($conn, $main_query); +} + +if((isset($_POST['searchsubmit']))&&(isset($_POST['search']))) +{ + $str1=mysqli_real_escape_string($conn,htmlspecialchars($_POST['search'])); + $str="search_tag.php?word=".urlencode($str1).""; + redirect_to($str); +} + +$query = "SELECT * FROM technovit WHERE school='qubit' ORDER BY id DESC"; +$result = mysqli_query($conn, $query); +confirm_query($result); +?> + + + + + + + + + Qubit | technoVIT'15 + + + + + + + + + + + + + + + + + + + + +
    + + +
    +
    + +
    +
    + +
    +
    +
    +
    + +
    +
    +
    +
    +
    + +
    + + +
    +
    +
    +
    +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/Inside/technovit/taikuun.php b/public/Inside/technovit/taikuun.php new file mode 100755 index 0000000..7a13ec5 --- /dev/null +++ b/public/Inside/technovit/taikuun.php @@ -0,0 +1,567 @@ + + + + + +0) + $dp_url = "http://cambuzz.co.in/public/Inside/images/".$imageid."_".$dpcounter.".jpg"; + else + $dp_url = "http://cambuzz.co.in/public/Inside/images/".$imageid.".jpg"; + } + $post_user = $current_user; + date_default_timezone_set('Asia/Calcutta'); + $post_time = date("Y-m-d\TH:i:s"); + $school="taikuun"; + $query = "INSERT INTO technovit (content, picset, post_user, post_time , school) VALUES ('{$content}', {$picset}, '{$post_user}', '{$post_time}', '{$school}')"; + $sql = mysqli_query($conn, $query); + $council = "taikuun"; + $main_query = "INSERT INTO app (content, picset, post_user, post_time, council, po_url, dp_url) VALUES ('{$content}', {$picset}, '{$post_user}', '{$post_time}', '{$council}', '{$po_url}', '{$dp_url}')"; + $main_sql = mysqli_query($conn, $main_query); +} + +if((isset($_POST['searchsubmit']))&&(isset($_POST['search']))) +{ + $str1=mysqli_real_escape_string($conn,htmlspecialchars($_POST['search'])); + $str="search_tag.php?word=".urlencode($str1).""; + redirect_to($str); +} + +$query = "SELECT * FROM technovit WHERE school='taikuun' ORDER BY id DESC"; +$result = mysqli_query($conn, $query); +confirm_query($result); +?> + + + + + + + + + Taikuun | technoVIT'15 + + + + + + + + + + + + + + + + + + + + +
    + + +
    +
    + +
    +
    + +
    +
    +
    +
    + +
    +
    +
    +
    +
    + +
    + + +
    +
    +
    +
    +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/Inside/technovit/vitness.php b/public/Inside/technovit/vitness.php new file mode 100755 index 0000000..0afba91 --- /dev/null +++ b/public/Inside/technovit/vitness.php @@ -0,0 +1,567 @@ + + + + + +0) + $dp_url = "http://cambuzz.co.in/public/Inside/images/".$imageid."_".$dpcounter.".jpg"; + else + $dp_url = "http://cambuzz.co.in/public/Inside/images/".$imageid.".jpg"; + } + $post_user = $current_user; + date_default_timezone_set('Asia/Calcutta'); + $post_time = date("Y-m-d\TH:i:s"); + $school="vitness"; + $query = "INSERT INTO technovit (content, picset, post_user, post_time , school) VALUES ('{$content}', {$picset}, '{$post_user}', '{$post_time}', '{$school}')"; + $sql = mysqli_query($conn, $query); + $council = "vitness"; + $main_query = "INSERT INTO app (content, picset, post_user, post_time, council, po_url, dp_url) VALUES ('{$content}', {$picset}, '{$post_user}', '{$post_time}', '{$council}', '{$po_url}', '{$dp_url}')"; + $main_sql = mysqli_query($conn, $main_query); +} + +if((isset($_POST['searchsubmit']))&&(isset($_POST['search']))) +{ + $str1=mysqli_real_escape_string($conn,htmlspecialchars($_POST['search'])); + $str="search_tag.php?word=".urlencode($str1).""; + redirect_to($str); +} + +$query = "SELECT * FROM technovit WHERE school='vitness' ORDER BY id DESC"; +$result = mysqli_query($conn, $query); +confirm_query($result); +?> + + + + + + + + + VITness | technoVIT'15 + + + + + + + + + + + + + + + + + + + + +
    + + +
    +
    + +
    +
    + +
    +
    +
    +
    + +
    +
    +
    +
    +
    + +
    + + +
    +
    +
    +
    +
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + diff --git a/signup_verify_app.php b/signup_verify_app.php index 3c46623..5c6fff5 100755 --- a/signup_verify_app.php +++ b/signup_verify_app.php @@ -2,6 +2,7 @@