in reply to database correction

Phrase your question better, and don't give us the entire New York Phone Book as an example script. Thanks.

--
[ e d @ h a l l e y . c c ]

Replies are listed 'Best First'.
Re: Re: database correction
by demerphq (Chancellor) on Apr 14, 2004 at 19:02 UTC

    I think you forgot to mention How (not) to Ask A Question

    :-)


    ---
    demerphq

      First they ignore you, then they laugh at you, then they fight you, then you win.
      -- Gandhi


      I really dont know how I can explain my question without a piece of code.

        Ok, and thats fair. The question will be something like this: "im trying to do X with Y. Im expecting Z to happen but get W instead." Preferably with at most 10 lines of code. Please try to break things up so we can see it better. If you arent a native english speaker then try to explain as well as you can in short clear sentences and well see what we can do. Its a good sign that your still here. :-)


        ---
        demerphq

          First they ignore you, then they laugh at you, then they fight you, then you win.
          -- Gandhi


Re: Re: database correction
by Anonymous Monk on Apr 14, 2004 at 19:09 UTC

    Here is part of code that responsible(supposedly)for database works expiration, how to configure it that it work constantly?(not expired)

    <form name=\"form3\" action=\"$cgilocation\" method=post> Enter your code:<input name=\"box1\" type=text size=15> <input name=\"cgifunction\" type=hidden value=\"cache\"> <input type=submit value=\"submit registration\"> </form> "; if($num<0) {foreach (@parse) {print (chr($_))};$iCache=1;exit;} } else { @parse=(84,104,101,114,101,32,105,115,32,97,32,112,114,111,98,108, +101,109,32); push(@parse,119,105,116,104,32,116,104,101,32,114,101,103,105,115, +116,114,97,116,105,111,110,32,99,111,100,101); foreach (@parse) {print (chr($_))}; exit; }; }; print "<script>document.cookie=\"admin=$password\"</script>\n"; print " "; @fields=(); @types=(); open(FIELDS,"<$fieldnames") or &error("Could not open $fieldnames"); @fieldsData=<FIELDS>; close FIELDS; $usemulti=0; foreach (@fieldsData) { ($field,$type)=split(/::/); push(@fields,"$field\n"); push(@types,"$type"); $usemulti=1 if $type=~/upload/; }; shift(@fields); shift(@types); local $tmp=eval("\$k"."ey/307"); local $tmp2=eval("\$n"."um"); if ($tmp2>0) {if ($tmp2 != int(30-((time()-($b/307))/86400))) {$tmp=1. +25}}; if ($tmp != int($tmp)) { @parse=(84,104,101,114,101,32,105,115,32,97,32,112,114,111,98,108,10 +1,109,32); push(@parse,119,105,116,104,32,116,104,101,32,114,101,103,105,115,11 +6,114,97,116,105,111,110,32,99,111,100,101); foreach (@parse) {print (chr($_))}; exit; }; if ($num>30) {die "Invalid Date function"}; print "

    20040414 Edit by Corion: Added formatting. The code seems to be cut off here...

      I'm not completely clear on what your actual question is. I think you want to remove the expiration date/expiration check from that program.

      I think the easiest way to get that expiration check removed is to buy the software from its author, as any other way would be unlawful.

      If you don't want to remove the expiration check from the software, then please clarify your question some more, because that's about the only thing I guessed (wrongly then) from your post.

        Yes, you are completely right understand what I asked: yes, I want to remove the expiration date/expiration check from that script. But in second part you are not fully right: script have window called "submit registration", but in reality it does not work, i enter a code once, this not helped(!!), plus now it obsoleted and not supported more. Probably, there are some mistake in part that's responsible for registratin; so i think the best way is just completely remove or modify this part.