Jump to content

yarnold

Members
  • Posts

    67
  • Joined

  • Last visited

Posts posted by yarnold

  1. You haven't closed your ' tag have you?

     

    echo '<script type="text/javascript">
    function changeContent(pos) {';
    if (!$autodetect_noscoll) {
    	echo '
    centerpos = thumbstwg_offset[parseInt(pos)];
    ';
    } else {
    	echo '
    if (thumbstwg_offset.length > ' . (($numberofpics * 2) + 1) . ') {
      centerpos = thumbstwg_offset[parseInt(pos)];
    }
    ';
    }
    echo '
            document.sohaform.item_name.value = ' . $image . ';
    reload=0;
    changeContentWait(pos);';
    }
    

  2. A Summary

     

    My name is Edward Yarnold and I am a 17 year old web developer, living in Herefordshire, England and working in Shropshire.. I have been involved in the maintenance and construction of websites since late 2003, and have owned, managed, designed and programmed a variety of sites since my introduction to the world wide web. I have also programmed several versions of my own Content Management System, A-Blog. Some of my work can be viewed in my portfolio (viewed at http://www.twixcoding.com). Now I code and program websites on a part time basis for Right Dynamic, a web development and design firm from Ludlow, Shropshire, and work for myself under "Twix Coding"...

     

    I offer primarily PHP web development services to my clients, however I also dabble in Web Design and Community Management.

     

    I regard W3C compatibility to be one of the most important aspects of web design, and for this reason all of my designs are fully XHTML 1.1 and CSS compliant (want to check it? Click the compliancy buttons at the bottom of my homepage). Accessibility is also an important issue, and again - I make the utmost effort to ensure that my designs meet at the very least, the first tier of accessibility standards.

     

    I am experienced with PHP and MySQL integration to create database-driven Content Management Systems, and also have experience with "AJAX" - "Asynchronous Javascript and XML" - which enables me to create fully interactive web applications without the need to refresh the page frequently.

     

    I am familiar with Object Orientated Programming, having used primarily PHP5 and it's built in OOP functionality since I learnt to program using PHP.  I am also familiar with security issues with PHP, making a huge effort to dramatically reduce the likelhiood of malicious activity being carried out through PHP scripts.

     

    I have experience managing and customising Invision Power Board, phpBB and vBulletin forum software, having ran my own website with over 5,000 active members producing around 1000 posts per day.

     

    If you would like to see a full list of services which Twix Coding provides, please proceed to http://www.twixcoding.com or contact me at ed[at]twixcoding[dot]com.

     

    Thank you for your time.

  3. To solve this problem using your solution, would mean that the sites you're "updating" remotely would have huge security risks associated with the process - instead of a phone number you could put malicious javascript and destroy their web page (even if only it's appearance.)

     

    It is unlikely that any sites would allow you to do it.

     

    I believe that it is possible to update lots of sites at the same time (in the same way that confused.com queries lots of different insurance company websites for quotations), however such a solution would probably be incredibly complex.

     

    I certainly wouldn't like to try it from scratch...

  4. You could use sessions to record the last submit date of the form.

     

    So, when the form processes, at the top of the form add

     

    <?php
    session_start();
    if((array_key_exists('LastPostTime', $_SESSION) && (($_SESSION['LastPostTime'] + 60) <= time()) === false) {
    //Process form
    
    }
    $_SESSION['LastPostTime'] = time();
    ?>
    

  5. Does that not do the same as what I have in my .htaccess file at the moment?

     

    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^([_a-zA-Z0-9]+).php $1.php5 [L]
    </IfModule>
    

  6. Thanks. I will look into finding a more suitable web design image later on... I have changed the navigation so that the problem you outlined no longer exists (increased text-indent).

     

    I will also look at rephrasing my summary paragraphs, thanks for that point!

     

    Thank you for your kind comments

  7. Hi all

     

    At the moment, my client's web host only supports PHP5 when using .php5 as the file extension.

     

    For the moment I have worked around this by using .htaccess to rewrite .php to .php5.

     

    However, this means that whenever I upload the site to the server, I must go through all of the files directly accessed and change the file extensions to .php5.

     

    I was wondering if there is a line I could put into .htaccess to make apache "think" that .php extension files ARE .php5?

     

    Cheers for any help

     

    Ed

  8. <html><head><title>AlibreCam Verification System</title></head>
    
    <center><h3>AlibreCam Verification System</h3></center>
    
    <center><TABLE border=0 cellpadding=3><form name="input" action="verification.php" method="get">
    <tr><td><center>Customer ID:</center></td>
    <td><input type="text" name="user"></td></tr>
    <tr><td colspan=2><center><input type="submit" value="Submit"></center></td></tr>
    </form><br></table><br>
    
    <?php 
    include("connectioninfo.php");
    $customer = $_GET['user'];
    $query= sprintf("SELECT * FROM invoiceid WHERE customerid=%s,$customer");
    $query= mysql_real_escape_string($query);
    $cResult = mysql_query($query);
    $value=0;
    while($row=mysql_fetch_array($cResult)){
    $value=$value+$row['numoflicenses'];
    }
    echo "Total number of licenses purchased: ".$value; 
    ?>
    </html>
    

  9. <?php
    // Initialize the session.
    // If you are using session_name("something"), don't forget it now!
    session_start();
    
    // Unset all of the session variables.
    $_SESSION = array();
    
    // If it's desired to kill the session, also delete the session cookie.
    // Note: This will destroy the session, and not just the session data!
    if (isset($_COOKIE[session_name()])) {
        setcookie(session_name(), '', time()-42000, '/');
    }
    
    // Finally, destroy the session.
    session_destroy();
    ?> 

  10. 
    <?php
    
    $query = "SELECT account IS NULL AND pass IS NULL AND loginupdated IS NULL AS incomplete FROM users WHERE owname='{$_SESSION['s_username']}' LIMIT 1";
    
    $result = mysql_query($query) or die (mysql_error());
    
    if ($result && mysql_num_rows($result) && mysql_result($result,0) == 1) {
    ?>
    <script type="text/javascript">
    alert("Our records show us that you have yet to submit your account login, please do so now.");
    location = "setpass.php";
    </script>
    <?php
    } else {
    header('Location: members.php');
    }
    
    ?>
    

×
×
  • 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.