Example #1
0
 $bref = netutralize($bref, $connection);
 $desc = netutralize($desc, $connection);
 if (isset($piroity) && !empty($piroity)) {
     $piroity = netutralize($piroity, $connection);
 }
 if (isset($exlink) && !empty($exlink)) {
     $exlink = netutralize($exlink, $connection);
 }
 if (isset($img) && !empty($img)) {
     //netutralization script for it
 }
 mysqli_close($connection);
 // contitions to check the input data
 // if all data inputed is correct then give this data to register class to register the user
 if ($pass) {
     $add_notice = new addnotice();
     $add_notice->title = $title;
     $add_notice->cat = $cat;
     $add_notice->tags = $tags;
     $add_notice->bref = $bref;
     $add_notice->description = $desc;
     if (isset($piroity) && !empty($piroity)) {
         $add_notice->piroity = $piroity;
     } else {
         $add_notice->piroity = '0';
         //0 means low pirority
     }
     if (isset($exlink) && !empty($exlink)) {
         $add_notice->exlink = $exlink;
     } else {
         $add_notice->exlink = '';
Example #2
0
 $desc = netutralize($desc, $connection);
 if (isset($piroity) && !empty($piroity)) {
     $piroity = netutralize($piroity, $connection);
 }
 if (isset($exlink) && !empty($exlink)) {
     $exlink = netutralize($exlink, $connection);
 }
 if (isset($img) && !empty($img)) {
     //netutralization script for it
 }
 mysqli_close($connection);
 // terminate database connection
 // contitions to check the input data
 // if all data inputed is correct then give this data to add notice class to update the notice
 if ($pass) {
     $add_notice = new addnotice();
     $add_notice->title = $title;
     $add_notice->cat = $cat;
     $add_notice->tags = $tags;
     $add_notice->bref = $bref;
     $add_notice->description = $desc;
     if (isset($piroity) && !empty($piroity)) {
         $add_notice->piroity = $piroity;
     } else {
         $add_notice->piroity = '0';
         //0 means low pirority
     }
     if (isset($exlink) && !empty($exlink)) {
         $add_notice->exlink = $exlink;
     } else {
         $add_notice->exlink = '';