function parse_content(&$toparse) { $toparse = htmlspecialchars_decode($toparse); $explo = explode('|', $toparse); foreach ($explo as $index => $part) { $part = trim($part); if ($part[0] == '+') { $func = explode(',', $part, 4); switch ($func[0]) { case "+img": $explo[$index] = imgtag($func[1], $func[2]); break; case "+spacer": $explo[$index] = spacertag($func[1]); break; case "+atvgall": $explo[$index] = build_atv_gallery(); break; case "+imagegall": $explo[$index] = '<h1>Image Gallery</h1>' . imageupload() . '<p><br><br></p>' . delimage() . '<p><br><br></p>' . buildgallery(); break; case "+csv": $explo[$index] = csvfileupload(); break; case "+viparea": $explo[$index] = viparea(); break; case "+dbviewer": $explo[$index] = dbcontrol() . printusers() . printfiles() . printnotes() . printcms(); break; case "+filedeposit": $explo[$index] = filedeposit(); break; case "+newsfeed": $explo[$index] = build_newsfeed(); break; case "+projfeed": $explo[$index] = build_projectfeed($func[1]); break; case "+login": $explo[$index] = login_page(); break; case "+contactprofile": $explo[$index] = profilepage(); break; } } } $toparse = implode($explo); }
function _hktsignupdata($aditi) { $fname = $_POST["fname"]; $lname = $_POST["lname"]; $id = $_POST["id"]; //$_POST["mobileno"]; $password = $_POST["password"]; $rpassword = $_POST["rpassword"]; $gender = $_POST["gender"]; $time = time(); $hkid = md5($fname . time() . $lname . $id); $pass = md5($password); if (check_valid_signup($id, $password, $rpassword, $fname, $lname, $gender)) { $sql = "INSERT INTO userinfo(ID,FNAME,LNAME,PASSWORD,GENDER,HKID,TIME ) VALUES('{$id}','{$fname}','{$lname}','{$pass}','{$gender}','{$hkid}','{$time}')"; mysql_query($sql); makeprofiledatatable($hkid); include "userdata.php"; $aducode = 'mythinkmywaymylovemydayudontrememberme'; profilepage($id, $hkid, $aducode); } else { echo "haikent coding kr iss part ki ,,, love u... gudan...mycollegephp.php"; } }