amazon3d
Members-
Posts
14 -
Joined
-
Last visited
Never
Everything posted by amazon3d
-
Index page for calendar <? session_start(); require("config.php"); require("./lang/lang." . LANGUAGE_CODE . ".php"); require("functions.php"); $month = (int) $HTTP_GET_VARS['month']; $year = (int) $HTTP_GET_VARS['year']; // set month and year to present if month // and year not received from query string $m = (!$month) ? date("n") : $month; $y = (!$year) ? date("Y") : $year; $scrollback = scrollback($m, $y); $scrollfoward = scrollfoward($m, $y); $auth = auth(); require("./templates/" . TEMPLATE_NAME . ".php"); ?> CSS file a{ font-family:arial, helvetica; color:#00F; text-decoration:underline;} span{ font-family:arial, helvetica;} td { font-family:arial, helvetica;} .date_header{ font-size:16px; font-family:arial, helvetica; font-weight:bold;} .day_cell{ background-color:#EDECD8; height:80px; width: 105px; border: solid 1px black;} .empty_day_cell{ background-color:#EEEEEE; height:80px; width: 105px; border: solid 1px black;} .today_cell{ background-color:#9aa968; height:80px; width: 105px; border: solid 1px black;} .day_number{ font-size:10px; font-family:verdana, arial, helvetica; color:#000000;} .title_txt{ font-size:10px; font-family:verdana, arial, helvetica; color:#000000;} .title_txt a:link, .title_txt a:active, .title_txt a:visited, .title_txt a:visited{ color:#00F; text-decoration:underline;} .time_str{ font-size:9px; font-family:arial, helvetica;} .column_header{ background-color:#9aa968; font-size:13px; font-family:arial, helvetica; color:#FFFFFF; font-weight:bold; border: solid 1px black;} .footprint{ font-size:10px; font-weight:bold; font-family:verdana, arial, helvetica; color:#000; text-align: center;} .footprint a{ font-size:10px; font-family:verdana, arial, helvetica; color:#00F; font-weight:bold;} If you need other codes please let me know I don't want to spam the page with stuff you don't need.
-
(bump)
-
Ok I have been hard at work on this one and my computer broke so I haven't been able to resolve this problem for a bit, I open the webpage in IE and it doesn't show up but in FF it shows up just fine, anyone able to give me a hand on this one, it was working fine awhile back but now for some reason it seems to have broken. http://www.fcaofdouglas.com/calendar/index.php
-
Thanks a bunch, I thought something was strange about the image being there. Then it occurred to me that .gif cant use the color #A4B654. So that is why it wasn't showing up right. Thanks again for getting me to look at it and find the bug
-
Changed link to www.shawnmangeot.com
-
For some reason the settings under .title are not working correctly if you look at the link below you can see two different colors even though they are all 1 color in the CSS. If anyone could figure it out, might just need a fresh set of eyes to glance over it. http://www.shawnmangeot.com/test/hq/index.php <div id="content"> <h2 class="title">Welcome to ShawnMangeot.comĀ®!</h2> <div class="story"> </div> </div> #content .title { padding: 10px 20px; background: #A4B654 url(../images/img4.gif) repeat-x left bottom; font-size: 1em;
-
Thank you ever so much, works like a charm, blocks non allowed file types, uploads allowed file types, and doesn't overwrite existing files! Thanks again!
-
Thats what it is doing now but it is allowing it to overwrite the existing file.
-
Thanks, you all have been a great help. Though I have one final question. <?php $pattern = "/^.+\.(txt|doc|docx|rtf|pjpeg|jpg|jpeg|bmp|gif|png)$/i"; { if (file_exists("upload/" . $_FILES["file"]["name"])) { echo $_FILES["file"]["name"] . " already exists. "; } if(preg_match($pattern,$_FILES["file"]["name"])) { move_uploaded_file($_FILES["file"]["tmp_name"], "upload/" . $_FILES["file"]["name"]); echo "Stored in: " . "upload/" . $_FILES["file"]["name"] . "<br />"; } else { echo "Upload: " . $_FILES["file"]["name"] . "<br />"; echo "Type: " . $_FILES["file"]["type"] . "<br />"; echo "Size: " . ($_FILES["file"]["size"] / 1024) . " Kb<br />"; echo "Temp file: " . $_FILES["file"]["tmp_name"] . "<br />"; echo "Invalid file"; } } ?> In this code it is telling it to post both File Exists & Uploaded when I upload a file, rather then saying the file already exists or just uploaded. How would I go about correcting that? Thanks in advance.
-
So how would one change it to extension based
-
Because I'm not sure how to do that, I just started breaking into php from an editing existing content side, I hope to get into the creation side shortly.
-
I need to know how I can allow doc, docx, txt, and rtf files to be uploaded as well. || ($_FILES["file"]["type"] == "what goes here")
-
Ok so I am working on a file up-loader for a client so they can submit doc and jpeg files to be added to their site. Below is a link to the setup I am using, I wanted to know if anyone knows how I can allow doc and txt files or a list of file types. I tried logical things and well php isn't exactly logical. This is the string to determine file types that can be uploaded. || ($_FILES["file"]["type"] == "image/jpeg") http://www.w3schools.com/php/php_file_upload.asp
-
Hello everyone I'm still new to php though I have been trying to learn it as quickly as I can. I'm wondering how I would put to gather a php or html based application, it will need to collect ~4-5 pages of info then submit it via email. Does anyone know how I would go about doing this?