Wants Some Gud Testers Lol

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    i made xhytml passed thats easy as pie
    Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
    Visit: WapMasterz Coming Back Soon!
    _______
    SCRIPTS FOR SALE BY SUBZERO
    Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
    FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
    _______
    Info & Tips
    php.net
    w3schools.com

    Comment


      #17
      its not a lava engine lol and the only resizer in gallery is phpThumb which dnt touch the original pics

      Comment


        #18
        and my gallery dnt use database for uploading or viewing pics only db bit is getting the sex of the user lol and users can del there own pics used the unlink() function

        Comment


          #19
          Code:
          <?php
          include(&#39;../core/main.inc&#39;);
          header_type();
          cleardata();
          if(ipbanned(ip(),browser())){
          if(!shield(getuid_sid($sid))){
          echo head_tag("Ip Blocked!!!",0,0);
          echo ipbanned_msg();
          echo foot_tag();
          exit();
          }
          }
          if(!islogged($sid)){
          echo head_tag("Error!!!",0,0);
          echo session_expired();
          echo foot_tag();
          exit();
          }
          if(banned(getuid_sid($sid))){
          echo head_tag("Error!!!",1,getnick_sid($sid));
          echo banned_msg($sid);
          echo foot_tag();
          exit();
          }
          mysql_query("UPDATE users SET browser=&#39;".browser()."&#39;, ipaddress=&#39;".ip()."&#39;, host=&#39;".subno()."&#39; WHERE id=&#39;".getuid_sid($sid)."&#39;");
          
          /////////////////////////////GALLERY/////////////////////////////
          
          addonline(getuid_sid($sid),"Viewing Gallery","");
          echo head_tag(getnick_sid($sid)."@Gallery",1,getnick_sid($sid));
          $title="<img src=\"../images/male.gif\" alt=\"\"/><img src=\"../images/female.gif\" alt=\"\"/>
          [u][i][b]Gallery Pics[/b][/i][/u]";    
          $main="<p align=\"center\">\n";
          $items_per_page="5";
          if(!isset($page)){$page=0;}
          $total=0;
          if(!($dp=opendir("./"))) die ("Cannot open ./");
          $file_array=array();
          while($file=readdir($dp)){
          if(substr($file,0,1)!=&#39;.&#39; and $file!="gallery.php" and $file!="upload.php"){$file_array[]=$file;}
          }
          $file_count=count($file_array);
          sort($file_array);
          if($file_count>0){
          $first_record = $page * $items_per_page;
          $last_record = $first_record + $items_per_page;
          while(list($fileIndexValue, $file_name)=each($file_array)){
          if(($fileIndexValue>=$first_record)AND($fileIndexValue<$last_record)){
          $pic=explode(".",$file_name);
          $nick=explode("(",$file_name);
          $sex=mysql_fetch_array(mysql_query("SELECT sex FROM profiles WHERE uid=&#39;".getuid_nick($nick[0])."&#39;"));
          if($sex[0]=="M"){$sex="<img src=\"../images/male.gif\" alt=\"(M)\"/>";$style=" style=\"color:#0000FF\"";}
          if($sex[0]=="F"){$sex="<img src=\"../images/female.gif\" alt=\"(F)\"/>";$style=" style=\"color:#FF0066\"";}
          if((getnick_sid($sid)==$nick[0])||(delpics(getuid_sid($sid)))){
          
          $main.="<img src=\"../phpThumb/phpThumb.php?src=../gallery/$file_name&amp;w=150&amp;f=$pic[1]&amp;sia=$nick[0]\" alt=\"$pic[0]\"/>
          
          
          $sex<a href=\"./$file_name\"$style>$pic[0]</a> ".round(filesize($file_name)/1024,1)."kb
          <a href=\"./gallery.php?page=$page&amp;sid=$sid&amp;delete=$file_name\"><img src=\"../images/error.gif\" alt=\"[x]\"/></a>
          \n";
          }else{
          $main.="<img src=\"../phpThumb/phpThumb.php?src=../gallery/$file_name&amp;w=150\" alt=\"$pic[0]\"/>
          
          $sex<a href=\"./$file_name\"$style>$pic[0]</a> ".round(filesize($file_name)/1024,1)."kb
          \n";
          }
          if($delete==$file_name){
          if((getnick_sid($sid)==$nick[0])||(delpics(getuid_sid($sid)))){
          unlink("./$file_name");
          $main.="
          $file_name deleted successfully
          
          <meta http-equiv=Refresh content=1;url=./gallery.php?page=$page&amp;sid=$sid>\n";
          echo xhtml($sid,$title,0,0,0,0,0,0,0,0,0,$main);
          echo foot_tag();
          exit;
          }
          }
          $total=$total+filesize($file_name);
          }
          }
          $pages=(int)ceil($file_count/$items_per_page);
          $pages=($pages-1);
          if(($file_count>0)AND($page!=0)){
          $main.="<a href=\"".$_SERVER["PHP_SELF"]."?action=pics&amp;page=".($page-1)."&amp;sid=$sid&amp;script=$script\"><img src=\"../images/prev.gif\" alt=\"Prev\"/></a> |";
          }
          if(($file_count >0)AND($last_record < $file_count)){
          $main.=" <a href=\"".$_SERVER["PHP_SELF"]."?action=pics&amp;page=".($page+1)."&amp;sid=$sid&amp;script=$script\"><img src=\"../images/next.gif\" alt=\"Next\"/></a>\n";
          }
          $main.="
          Directory: $file_count ";
          if($file_count==1){$main.="file";}
          else{$main.="files";}
          }
          $main.="
          
          <a href=\"./upload.php?sid=$sid\">Upload</a>
          \n";
          closedir($dp);
          $main.="</p>\n";
          $L1="&lt;- <a href=\"../main.php?sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Main Menu</a>";
          echo xhtml($sid,$title,1,$L1,0,0,0,0,0,0,0,$main);
          echo foot_tag();
          ?>
          Code:
          <?php
          include(&#39;../core/main.inc&#39;);
          header_type();
          cleardata();
          if(ipbanned(ip(),browser())){
          if(!shield(getuid_sid($sid))){
          echo head_tag("Ip Blocked!!!",0,0);
          echo ipbanned_msg();
          echo foot_tag();
          exit();
          }
          }
          if(!islogged($sid)){
          echo head_tag("Error!!!",0,0);
          echo session_expired();
          echo foot_tag();
          exit();
          }
          if(banned(getuid_sid($sid))){
          echo head_tag("Error!!!",1,getnick_sid($sid));
          echo banned_msg($sid);
          echo foot_tag();
          exit();
          }
          mysql_query("UPDATE users SET browser=&#39;".browser()."&#39;, ipaddress=&#39;".ip()."&#39;, host=&#39;".subno()."&#39; WHERE id=&#39;".getuid_sid($sid)."&#39;");
          
          /////////////////////////////GALLERY/////////////////////////////
          
          addonline(getuid_sid($sid),"Uploading Pic","");
          echo head_tag(getnick_sid($sid)."@Gallery",1,getnick_sid($sid));
          $title="[u][i][b]Upload[/b][/i][/u]
          ";    
          $main="<p align=\"center\">
          Image Files
          \n";
          $size_bytes=2048000;
          $kb=$size_bytes/1024;
          $mb=$kb/1024;
          $main.="Max [b]$mb[/b] Mb
          
          <img src=\"../images/point.gif\" alt=\"!\"/>You can email ur pic to
          
          [b]afta_drk@hotmail.com[/b]
          
          wif ur username attached or use the below uploader
          </p>
          <div class=\"center\">
          <form method=\"post\" enctype=\"multipart/form-data\" action=\"./upload.php?upload=yes&amp;sid=$sid\">
          <input type=\"file\" name=\"filetoupload\"/>
          
          <input type=\"submit\" name=\"uploadform\" value=\"Upload\"/>
          </form>
          </div>
          <p align=\"center\">\n";
          $extlimit="yes";
          $limitedext=array(".jpg",".jpeg",".gif",".png");
          $ext=strtolower(strrchr($_FILES[&#39;filetoupload&#39;][name],&#39;.&#39;));
          $file_type=$_FILES[&#39;filetoupload&#39;][&#39;type&#39;];
          $file_name=$_FILES[&#39;filetoupload&#39;][&#39;name&#39;];
          $file_size=$_FILES[&#39;filetoupload&#39;][&#39;size&#39;];
          $file_tmp=$_FILES[&#39;filetoupload&#39;][&#39;tmp_name&#39;];
          if($upload=="yes"){
          if(!is_uploaded_file($_FILES[&#39;filetoupload&#39;][&#39;tmp_name&#39;])){
          $main.="<img src=\"../images/error.gif\" alt=\"[x]\"/>No file selected!
          
          
          
          <a href=\"./gallery.php?sid=$sid\">Gallery Pics</a>\n";
          }
          else if($extlimit=="yes" && !in_array($ext,$limitedext)){
          $main.="<img src=\"../images/error.gif\" alt=\"[x]\"/>Invalid file type!
          
          
          
          <a href=\"./gallery.php?sid=$sid\">Gallery Pics</a>\n";
          }
          else if($file_size>$size_bytes){
          $main.="<img src=\"../images/error.gif\" alt=\"[x]\"/>Exceeded File size limit! Maximum [b]$kb[/b] Kb.
          
          
          
          <a href=\"./gallery.php?sid=$sid\">Gallery Pics</a>\n";
          }
          else if(file_exists("./$file_name")){
          $main.="<img src=\"../images/error.gif\" alt=\"[x]\"/>Filename already exists!
          
          
          
          <a href=\"./gallery.php?sid=$sid\">Gallery Pics</a>\n";
          }
          else if(file_exists("./".getnick_sid($sid)."(5)".$ext)){
          $main.="<img src=\"../images/error.gif\" alt=\"[x]\"/>
          [b]Error!!![/b]
          5 pics hav already been uploaded...
          
          
          
          <a href=\"./gallery.php?sid=$sid\">Gallery Pics</a>\n";
          }
          else if($file_size){
          if(!file_exists("./".getnick_sid($sid)."(1)".$ext)){$pic=getnick_sid($sid)."(1)".$ext;}
          if(file_exists("./$pic")){$pic=getnick_sid($sid)."(2)".$ext;}
          if(file_exists("./$pic")){$pic=getnick_sid($sid)."(3)".$ext;}
          if(file_exists("./$pic")){$pic=getnick_sid($sid)."(4)".$ext;}
          if(file_exists("./$pic")){$pic=getnick_sid($sid)."(5)".$ext;}
          move_uploaded_file($file_tmp, "./$pic");
          $main.="
          <img src=\"../phpThumb/phpThumb.php?src=../gallery/$pic&amp;w=150\" alt=\"$pic\"/>
          
          <img src=\"../images/ok.gif\" alt=\":o)\"/>
          
          $file_name
          
          sucessfully uploaded!
          
          
          
          <a href=\"./gallery.php?sid=$sid\">Gallery Pics</a>\n";
          }
          else{
          $main.="<img src=\"../images/error.gif\" alt=\"[x]\"/>Unknown error! Pls try again...
          
          
          
          <a href=\"./gallery.php?sid=$sid\">Gallery Pics</a>\n";
          }
          }
          $main.="</p>\n";
          $L1="&lt;- <a href=\"../main.php?sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Main Menu</a>";
          echo xhtml($sid,$title,1,$L1,0,0,0,0,0,0,0,$main);
          echo foot_tag();
          ?>

          Comment


            #20
            oh and if u cant use that code dnt bother asking how to lol

            Comment


              #21
              Nice on chris, i remember when you first started that script... its looking good! well done.

              Comment


                #22
                why you not upload relase of your script???is cool
                if like my post click:

                http://coding-talk.com/images/totall...ost_thanks.gif

                Comment


                  #23
                  why you not upload relase of your script???is cool [/b]
                  ffs is that all you can say in this forum? what happens if he releases his script you wil only ask for the next script somebody makes
                  and the topic asked for ppl helping him to find weak points in his script not if anyone wants it!!

                  Comment


                    #24
                    lol amylee, its a good script...like his engine k:
                    http://ngeo.ro

                    Comment


                      #25
                      i will NOT be releasing my new script as amylee said i jus want help testing for problems inly ppl that get the script are 1s i can trust and even then they stil pay me 4 script and i give them all updates as they become available 4 sites including mine hav it lol only reason i shared my gallery code was 2 show ppl how im doing it which reali u wuld need the files in my core folder to know properly anyway

                      and ppl always want but never give... i dnt mind helping most ppl cant help me wif my level of coding anyway but some parts i dnt mind sharing but u stil hav to do the work yaself ill prob be working on this script for another 6 months b4 could class it as finished

                      Comment


                        #26
                        i see your flag... do you know much more english like me
                        http://ngeo.ro

                        Comment


                          #27
                          yes i can speak english very well lol

                          Comment

                          Working...
                          X