This is an archived, read-only copy of the United-TI subforum , including posts and topic from May 2003 to April 2012. If you would like to discuss any of the topics in this forum, you can visit Cemetech's General Open Topic subforum. Some of these topics may also be directly-linked to active Cemetech topics. If you are a Cemetech member with a linked United-TI account, you can link United-TI topics here with your current Cemetech topics.

This forum is locked: you cannot post, reply to, or edit topics. UTI Members Chat => General Open Topic
Author Message
Brazucs
I have no idea what my avatar is.


Super Elite (Last Title)


Joined: 31 Mar 2004
Posts: 3349

Posted: 11 Nov 2005 01:21:25 am    Post subject:

I'm gonna keep updating this so I don't rack up the kBs.

Working on parsing now with the help of ACC. If you guys have any recommendations, post 'em up here :)

[attachment=358:attachment]


Last edited by Guest on 26 May 2007 11:51:34 am; edited 1 time in total
Back to top
AlienCC
Creative Receptacle!


Know-It-All


Joined: 24 May 2003
Posts: 1927

Posted: 11 Nov 2005 02:02:15 am    Post subject:

Feel free to integrate what you've got into what I gave you Smile
I'll make your life a ton easier in the longhaul.

Shh!!! nobody download this!

--AlienCC


Last edited by Guest on 11 Nov 2005 02:04:31 am; edited 1 time in total
Back to top
elfprince13
Retired


Super Elite (Last Title)


Joined: 11 Apr 2005
Posts: 3500

Posted: 11 Nov 2005 08:00:34 am    Post subject:

Shhh!

what is it?
Back to top
DarkerLine
ceci n'est pas une |


Super Elite (Last Title)


Joined: 04 Nov 2003
Posts: 8328

Posted: 11 Nov 2005 04:03:21 pm    Post subject:

"Number of downloads: 1"

hehe...
Back to top
Vinthian
formerly known as shortround4271


Advanced Member


Joined: 24 May 2005
Posts: 258

Posted: 11 Nov 2005 05:14:00 pm    Post subject:

aliencc's web template thing, or website layout. it's used on his site, (aliencc.com)
Back to top
Arcane Wizard
`semi-hippie`


Super Elite (Last Title)


Joined: 02 Jun 2003
Posts: 8993

Posted: 12 Nov 2005 08:34:18 am    Post subject:

http://en.wikipedia.org/wiki/Content_management_system
Back to top
Brazucs
I have no idea what my avatar is.


Super Elite (Last Title)


Joined: 31 Mar 2004
Posts: 3349

Posted: 13 Nov 2005 01:40:40 am    Post subject:

Thanks, Arcane.

[code updated]
So close now...
Back to top
Brazucs
I have no idea what my avatar is.


Super Elite (Last Title)


Joined: 31 Mar 2004
Posts: 3349

Posted: 18 Nov 2005 10:15:28 pm    Post subject:

New version, new code.
Back to top
AlienCC
Creative Receptacle!


Know-It-All


Joined: 24 May 2003
Posts: 1927

Posted: 07 Dec 2005 07:57:24 pm    Post subject:

The File Uploader I wrote, which may be useful for others with UTI hosting, for their own personal projects. Mostly because working with safe mode restrictions, and in a chroot is a little bit tricker then most php programmers understand at first.


Code:
<?php
///////////////////////////////////////////////////////////////////////////////
// Author: Jon R. Johnson (jon.r.johnson@gmail.com)
// Purpose: File uploader for OPTI Basic
//          Deadfile cleanup
//
// Date: 11/30/2005
// Version: 0.1 Initial Build
///////////////////////////////////////////////////////////////////////////////

$dir="/users/uti_brazucs/public_html/files/optitmp"; // Files stored here
$hourdif = 3; // Remove files older then x hours

// create form for file uploading
$htmlform = "<form method='POST' action='".$PHP_SELF."' enctype='multipart/form-
data'>
 Select File:
 <input type='file' name='ffile'><br>\n
 <input type='hidden' name='MAX_FILE_SIZE' value='8388608'><br>
 <input type='submit' value='Upload New File'><br>
 <input type='reset' value='Reset '><br>
</form>";

// Read in the POST Data
if(is_uploaded_file($_FILES['ffile']['tmp_name']))  {
  //only do this if they submitted something

  $thisffilename = $_FILES['ffile']['name']; // Actual filename
  $tempfilename = $_FILES['ffile']['tmp_name']; // temp filename

/* //Debugging code, uncomment block to use.
  print "Debug:
         dir($dir)<br>
         thisffilename($thisffilename)<br>
         tempfilename($tempfilename)<br>";
*/
  //Move the file from the temporary location to where we really want it.
  move_uploaded_file($tempfilename, $dir.'/'.$thisffilename);

  //Print confirmation that file has been uploaded.
  print "File: (" . $thisffilename . ") Uploaded successfully!<p>";

}

// Print out html File upload form
print $htmlform;

// Clean up old files
$handler = opendir($dir."/");

while ($file = readdir($handler)) {
  if ($file != '.' && $file != '..') {
    //print_r ($file); //print the file name out
    //print " ATime(".fileatime($dir."/".$file).")<p>"; //print file accesstime

    // Prepare the Time variables
    $timestamp = time();
    $date_time_array = getdate($timestamp);

    $hours = $date_time_array['hours'];
    $minutes = $date_time_array['minutes'];
    $seconds = $date_time_array['seconds'];
    $month = $date_time_array['mon'];
    $day = $date_time_array['mday'];
    $year = $date_time_array['year'];

    //Get the time of now, and 2 hours ago
    $today1 = mktime($hours,$minutes,$seconds,$month,$day,$year);
    $today2 = mktime($hours-$hourdif ,$minutes,$seconds,$month,$day,$year);

    // Print out the unix times
    //print "Now (".($today1) .")<br>";
    //print "$hourdif Hours Ago (".($today2) .")<br>";

    // If file is older then timedif, remove it
    if ($today2 > fileatime($dir."/".$file)) {
      unlink($dir."/".$file) && print "Inactive file removed: ".($file)."<br>";
    }

  }
}

closedir($handler);

?>


--AlienCC
Back to top
Brazucs
I have no idea what my avatar is.


Super Elite (Last Title)


Joined: 31 Mar 2004
Posts: 3349

Posted: 07 Dec 2005 10:22:54 pm    Post subject:

Genius coding...
Back to top
Brazucs
I have no idea what my avatar is.


Super Elite (Last Title)


Joined: 31 Mar 2004
Posts: 3349

Posted: 15 Apr 2006 02:25:35 am    Post subject:

Several people have asked me for this. Today, hidden deep in my hard drive, I found it.
It was at C:\D\Docs\Incomplete\My Web Sites\PHP\_vti_cnf\tibcc\opti\optiJunk\lastpublishedversion

So, here is it:

[attachment=703:attachment] (mind you that this was programmed when I thought SQL stood for Solid Quality Learning and "" => "" arrays are for pansies)


Last edited by Guest on 15 Apr 2006 02:26:49 am; edited 1 time in total
Back to top
Display posts from previous:   
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
    »
» View previous topic :: View next topic  
Page 1 of 1 » All times are UTC - 5 Hours

 

Advertisement