Search:

Type: Posts; User: Visual Basic.Net

Page 1 of 7 1 2 3 4

Search: Search took 0.07 seconds.

  1. Replies
    2
    Views
    1,759

    Re: CKEditor And HTMLPurifier

    If anybody have any other method to use CKEditor and the same time protect the website from XSS. Please, tell me the way!
    Thank's in advance
  2. Replies
    2
    Views
    1,759

    Re: CKEditor And HTMLPurifier

    I tried appending this line:
    $config->set('HTML.Allowed','span[style],table,font');

    but all formats still removed even in:
    <span style="background-color: rgb(255, 0, 0);">

    background color...
  3. Replies
    2
    Views
    1,759

    CKEditor And HTMLPurifier

    Hi! I'm using HTMLPurifier to filter output of CKEditor. I want all format created by CKEditor remains, but without Malicious codes! I used following:


    function cleanhtml($htmltext){...
  4. Re: Compare Dates in SQL, one date is NULL

    OMG! I forget that simple solution! Thank you very much for your help. SOLVED!
  5. Re: Compare Dates in SQL, one date is NULL

    I want to count mydate1 as greater (newer) when other field mydate2 either has NULL value or a date that actually older than date stored in mydate1
  6. [RESOLVED] Compare Dates in SQL, one date is NULL

    hello, I need to return results depending on a condition which a date field is greater (newer) than other date field. using this for example:

    select * from mytable where mydate1>olddate2;

    the...
  7. Replies
    1
    Views
    841

    problem with mysql_fetch_field

    $queryq = mysql_query("(SELECT id,namee,agee from table1) UNION ALL (SELECT id,namee,agee from table2) UNION ALL
    (SELECT id,namee,agee from table3);");

    echo mysql_fetch_field($queryq,0)->name;...
  8. Re: Allow access to images only through my website pages

    SambaNeko... can you plz explain your code to me?

    what this line means?
    RewriteCond &#37;{HTTP_REFERER} !^$

    why when removed it... direct access disallowed?
  9. Re: Allow access to images only through my website pages

    SambaNeko... Thank you very much bro. your solution worked! now website visitors can access images only through my scripts (.php & .html pages).

    penagate... What u mean exactly... I didn't got it....
  10. Re: Allow access to images only through my website pages

    To be more clear. I want to deny direct access to this folder totally. I want only my local (php & html) pages to have the right display these images inside that folder.

    I thought about a solution...
  11. Re: Allow access to images only through my website pages

    I used it, but even after putting that code inside the .htaccess, still direct access is allowed!

    what I want, not only disallow other websites showing images from that folder. But also, I want to...
  12. Allow access to images only through my website pages

    Hi! I have a folder called "myfolder" on my server, it contains images(jpg,jpeg,gif...etc). my website domain is "www.mysitedomain.com". I want to deny direct access to any image inside that folder,...
  13. Re: call php function after page loaded(printed)?

    Thank's alot. I did it using AJAX. But the problem is that I print the content in the page in order to allow ajax reading it by using xmlhttp.responseText

    is there any more secure way? because the...
  14. call php function after page loaded(printed)?

    Hi! I have a page that contains a regular table, the data of the first column of the table is known and written in the source code of the page. The 2nd column needs data to be loaded from net (from...
  15. Replies
    4
    Views
    965

    Re: [SQL] DateDiff

    I used DATE_SUB instead of timediff, but I'm not sure if my expression is correct or not:


    mysql_query("select count(id) from user where datefield >= DATE_SUB('".gmdate("o-m-d,H:i:s")."',...
  16. Replies
    4
    Views
    965

    Re: [SQL] DateDiff

    if you could explain a little bit more about date_default_timezone_set(). when I use it and set the time zone I want, then store the date using date() function into the database. know, I retreive the...
  17. Replies
    4
    Views
    965

    [SQL] DateDiff

    Hi! I stored the GMT date in datefield by using this format:



    gmdate("o-m-d,H:i:s");


    Now, I want to display all records that are stored within last 24 hours. However, I used this code:
  18. Re: writing text on animated gif image?!

    Aha, Thank's alot bro.

    If any one have an example or ready class that do this task, please, share it with us.

    Thank's for all :)
  19. writing text on animated gif image?!

    Hi! I using this code to write on gif images. It works ok, but if the gif image is animated then it becames like a snapshot... I mean animation disappear and only one frame is shown with the text...
  20. Re: session weird problem!!!

    OMG ... thats so stupid :o
    I solved it



    session_start();
    if($_POST['changeit']!=""){
    $_SESSION['text1']="hello";
    header("LOCATION: samepage.php");
    }
  21. [RESOLVED] session weird problem!!!

    Hi! I face a very weird problem with sessions?!

    when I use this code (file name is samepage.php):


    session_start();
    if($_POST['changeit']!=""){
    $_SESSION['text1']="hello";
    ...
  22. Replies
    6
    Views
    2,261

    Re: old session value problem

    the above code always return the previous value of the session variable, so I can't check the captcha code entered by the user by javascript before sending the large request. Imagine that after 10 or...
  23. Replies
    6
    Views
    2,261

    Re: old session value problem

    Hi! I solved the problem using AJAX, but the way I used is not that safe. because I depend on echo the security code in a page once it required with a specific pass. once anyone know that pass by any...
  24. Replies
    6
    Views
    2,261

    Re: old session value problem

    http://www.white-hat-web-design.co.uk/articles/php-captcha.php

    I know what is the problem exactly, but I don't know how to solve it. the problem is that the main page loaded, then inside it, the...
  25. Replies
    6
    Views
    2,261

    Re: old session value problem

    by the way, the CaptchaSecurityImages php file is included in the main page that I use the above code inside it. the order is inclusion of CaptchaSecurityImages first, then the above code. and the...
  26. Replies
    6
    Views
    2,261

    old session value problem

    Hi! I'm using CaptchaSecurityImages that put the generated code into a session variable. on submitting the forum, I check if the $_POST['scode']==$_SESSION['capcode']; and its ok. But when I decided...
  27. Re: UTF8 and force download script

    The problem solved by changing the encoding of the file from UTF-8 to "system default"!!!
    Thank's alot for all :wave:
  28. Re: UTF8 and force download script

    Thank's alot bro... I replaced the funtion I used with this one:



    function dl_file_resumable($file, $filetitle111,$is_resume=TRUE)
    {
    if (!is_file($file))
    {
    die("<b>404 File...
  29. Re: UTF8 and force download script

    Note:
    When I download the file directly from server it opened without any problem.
    when I download the file through script it downloaded with the same size but corruptly. I got the following...
  30. Re: UTF8 and force download script

    Mr.kows, the first problem dosn't solved :confused: :confused: :confused:
    still some rar files downloaded corruptly through script, while correctly through direct downloading.

    I really tired with...
  31. Re: UTF8 and force download script

    Thank's alot kows, finally Solved!!! :)
    what do you mean by "indenting" ?

    last question plz: the downloading dialog box, appeared without progressbar. Just says for example "100Bytes Opened So...
  32. Re: UTF8 and force download script

    here is the full code I used:



    <? ob_start(); ?>
    <?php
    session_start();
    echo '<meta http-equiv="Content-Type" content="text/html;charset=utf-8" >';
    error_reporting(0);...
  33. Re: UTF8 and force download script

    But how the message will be displayed? as a messagebox or the download dialog will be closed, and the message will be printed in the browser?!
    I did change the code and tried to download the rar...
  34. Re: UTF8 and force download script

    if you see the comments in the above URL, there are also some people who have the same problem!
    I tried to reduce the chunk size but that dosn't solve the problem :(

    Thank's in advance
  35. Re: UTF8 and force download script

    Thank's alot SambaNeko, It solved, But another problem appeared!!

    when I upload a .rar file, and download it with the above force-download script, the resulted downloaded file is corrupt. while...
  36. Re: UTF8 and force download script

    Still have no solution!
  37. VS 2005 Re: Drawing on PictureBox erase when a window move on front

    cicatrix thats not what I need, but thank's anyway bro
  38. VS 2005 Re: Drawing on PictureBox erase when a window move on front

    how can I draw on bitmap ?

    thank's alot
  39. VS 2005 Drawing on PictureBox erase when a window move on front

    hi! I used a picturebox to allow user draw lines by mouse. I used this code in mouse down:


    Dim D As New System.Drawing.Pen(DrawingColor, 2)
    Dim g As Graphics =...
  40. VS 2005 Re: Is vb.net 2005 compatible with Vista?

    I tried to install VB.Net 2005 from the CDs I have... but a compatibility error appear..
    Is that means VB.net 2005 programs are not fully compatible with Vista?

    is there any files I can download...
Results 1 to 40 of 272
Page 1 of 7 1 2 3 4



Click Here to Expand Forum to Full Width