The fastest easiest way to get it right.

hSize

NAME

hSize

FUNCTION

The PHP function hSizepx computes a width by examining the size cookie. It assumes that the baseline is 1024, and returns number that is scaled up or down based on what skin the user is actually using.

INPUTS

number - Size in 1024x768 mode

SOURCE

function hSize($x1024) {
    $app  = $GLOBALS['AG']['application'];
    $size = a($_REQUEST,$app."_size",'1024');
    $final = intval(($x1024 * $size)/1024);
    return $final.'px';
}

User Comments

There are no user comments yet on this page.


Add A Comment

Comments will not appear until after they are moderated. Comments are usually moderated within a few hours on weekdays, but may take longer on weekends and holidays.

Name or nickname: (This will appear with your comment)


Email (this will never be displayed)


Enter your comment here. Use [b] and [/b] for bold, [i] and [/i] for italic, and [pre] and [/pre] for code samples. All literal HTML and PHP that you enter will be escaped out and displayed as you enter it.


Home |  Documentation |  Download |  Credits |  Contact |  Login
Andromeda © Copyright 2004-2010, Licensed under the GPL Version 2