function print_send_comments_table($fileid){
    global $action,$id,$member_data,$content,$sec_img,$settings,$phrases;
  if($settings['files_comments_enable']){
    open_table("$phrases[send_comment]");
   if(check_member_login()){
   print "<form action='index.php' method=post>
   <table width=100% border=0>
   <input type=hidden name=id value='".intval($id)."'>
   <input type=hidden name=action value='".htmlspecialchars($action)."'>
    <input type=hidden name=op_comment value='send_comment'>

 <tr><td><b> $phrases[the_comment] : </b></td><td><textarea cols=30 rows=5 name=content>$content</textarea></td></tr>

         <tr>
         <td><b>$phrases[security_code] : </b></td><td>".$sec_img->output_input_box('sec_string','size=7')."
           <img src=\"sec_image.php\" alt=\"Verification Image\" /></td>
      </tr>
      <tr><td colspan=2 align=center><input type=submit value=' $phrases[send] '></td></tr>
</table></form>";
}else{
    print "<center> $phrases[please_login_first] </center>";
    }
   close_table();
  }
}
Example #2
0
open_table();


 if(!$HTTP_COOKIE_VARS[$cookie_name]){
if($id && $cid){
    
    $cid = (int) $cid;
    $id = (int) $id;
    
    
$data=db_qr_fetch("select * from mobile_files_comments where id='$cid'");

$msg = "Ηαγαέ : <a href=\"$scripturl/details_".$id.".html\">$scripturl/details_".$id.".html</a>";
$msg .= "<br><br>-----------------------<br>";
$msg .= "<br> $data[content] <br>";
$msg .= "<br>-----------------------<br>";
   
$mailResult = send_email($sitename,$mailing_email,$admin_email,"ΚΘανΫ",$msg,$settings['mailing_default_use_html'],$settings['mailing_default_encoding']);


print "<center> Κγ ΚΘανΫ ΗαΗΟΗΡΙ , ΤίΡΗ αί </center>";
}else{
        print "<center> ΡΗΘΨ ΞΗΨνΑ </center>";
}

}else{
print "<center>  αΗ νγίδί ΗαΚΘανΫ Ϊδ γαέ ΗαΗ ία 24 ΣΗΪΙ </center>";

        }
close_table();