Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter canadianjameson

    (@canadianjameson)

    let me try to place the PHP in code brackets again:

    <?php
    
    /* I pass directly the GET to the variables but you must check
    * first if are safe using some code you want. For example I
    * would restrict $lang to be only 'fr' and 'en' and w to be a positive non-zero integer
    */
    
    $w = $_GET['w'];
    // and now select the apropriate dir for your resolution
    // first the default, for unexpected values of $w
    $wpdir = 'wallpapers';
    if($w == 800){
    $wpdir .= '800';
    }elseif($w == 1024){
    $wpdir .= '1024';
    }elseif($w == 1152){
    $wpdir .= '1152';
    }elseif($w == 1280){
    $wpdir .= '1280';
    }elseif($w == 1600){
    $wpdir .= '1600';
    }
    // here $wpdir will be 'wallpapers800' for example
    
    $wpdir .= '/';
    
    // constant are really constant, :) so you must define the dirs
    // where you have the wallpapers as constant
    define('VL_WALLPAPER_DIR', $wpdir);

    Thread Starter canadianjameson

    (@canadianjameson)

    Thank you very much, I will try that 🙂

    Thread Starter canadianjameson

    (@canadianjameson)

    Hi Moshu,

    1) I do not have double folders :0) I made very sure of that.

    2) I would very much like to show you, and as a moderator I can only trust that you have the best interest of those you help in mind. If you e-mail me at jonesdoyle AT gmail.com I can provide you with the login info. I’m on somewhat of a sketchy deadline so at this point I don’t mind getting 3rd party help if it means I can start this thing as soon as possible

    3) what are the risks of updating. Is it possible that I lose all of the data on the site? How hard is it to do?

    *scared little squirrel sniffs air hopefully*

    will I lose limbs / set of Russian nukes in the process? (lol)

Viewing 3 replies - 1 through 3 (of 3 total)