LassoBin Banner
Recent Posts
test
91.6 weeks ago
ezk
2501.4 weeks ago
Adam Randall
508.5 weeks ago
Adam Randall
512 weeks ago
Greg Hemphill
512.4 weeks ago
Greg Hemphill
515.7 weeks ago
Greg Hemphill
515.7 weeks ago
Becca
515.7 weeks ago
Greg Hemphill
515.7 weeks ago
Becca
515.7 weeks ago
Make new post
Lasso Reference
MySQL Reference
Valid HTML 4.0!
 
Posted by Adam Randall on 03/19/2008 22:51:20.
Link
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
[
  define_tag( 'Client_Cookies2' );

    local(
      'i',
      'cookies' = null,
      'raw'     = client_header( 'Cookie' ) );

    if( #raw !== false );
      #cookies = array;
      iterate( #raw->split( ';' ), #i );
        #i->trim;
        if( #i->find( '=' ) > 0 );
          #cookies->insert( decode_url( #i->substring( 1, #i->find( '=' ) - 1 ) ) = string( decode_url( #i->substring( #i->find( '=' ) + 1, #i->size ) ) ) );
        /if;
      /iterate;

      return( @#cookies );
    else;
      return( false );
    /if;

  /define_tag;


]

  Post new code below.
Name
Code
Math 44 multiplied by -54 equals