datasec[] = $fr; $new_offset = strlen( implode( "", $this->datasec ) ); $cdrec = "\x50\x4b\x01\x02"; $cdrec .="\x00\x00"; $cdrec .="\x0a\x00"; $cdrec .="\x00\x00"; $cdrec .="\x00\x00"; $cdrec .="\x00\x00\x00\x00"; $cdrec .= pack( "V",0); $cdrec .= pack( "V",0); $cdrec .= pack( "V",0); $cdrec .= pack( "v", strlen( $name ) ); $cdrec .= pack( "v", 0 ); $cdrec .= pack( "v", 0 ); $cdrec .= pack( "v", 0 ); $cdrec .= pack( "v", 0 ); $ext = "\x00\x00\x10\x00"; $ext = "\xff\xff\xff\xff"; $cdrec .= pack( "V", 16 ); $cdrec .= pack( "V", $this -> old_offset ); $cdrec .= $name; $this -> ctrl_dir[] = $cdrec; $this -> old_offset = $new_offset; return; } function add_file( $data, $name ) { $fp = fopen( $data, "r" ); if( filesize( $data )>0 ) { $filesizeout = filesize( $data ); } else { $filesizeout = 1; } $data = fread( $fp, $filesizeout ); fclose( $fp ); $name = str_replace( "\\", "/", $name ); $unc_len = strlen( $data ); $crc = crc32( $data ); $zdata = gzcompress( $data ); $zdata = substr ( $zdata, 2, -4 ); $c_len = strlen( $zdata ); $fr = "\x50\x4b\x03\x04"; $fr .= "\x14\x00"; $fr .= "\x00\x00"; $fr .= "\x08\x00"; $fr .= "\x00\x00\x00\x00"; $fr .= pack( "V", $crc ); $fr .= pack( "V", $c_len ); $fr .= pack( "V", $unc_len ); $fr .= pack( "v", strlen( $name ) ); $fr .= pack( "v", 0 ); $fr .= $name; $fr .= $zdata; $fr .= pack( "V", $crc ); $fr .= pack( "V", $c_len ); $fr .= pack( "V", $unc_len ); $this -> datasec[] = $fr; $new_offset = strlen(implode("", $this->datasec)); $cdrec = "\x50\x4b\x01\x02"; $cdrec .="\x00\x00"; $cdrec .="\x14\x00"; $cdrec .="\x00\x00"; $cdrec .="\x08\x00"; $cdrec .="\x00\x00\x00\x00"; $cdrec .= pack( "V", $crc ); $cdrec .= pack( "V", $c_len ); $cdrec .= pack( "V", $unc_len ); $cdrec .= pack( "v", strlen( $name ) ); $cdrec .= pack( "v", 0 ); $cdrec .= pack( "v", 0 ); $cdrec .= pack( "v", 0 ); $cdrec .= pack( "v", 0 ); $cdrec .= pack( "V", 32 ); $cdrec .= pack( "V", $this -> old_offset ); $this -> old_offset = $new_offset; $cdrec .= $name; $this -> ctrl_dir[] = $cdrec; } function file() { $data = implode( "", $this -> datasec ); $ctrldir = implode( "", $this -> ctrl_dir ); return $data . $ctrldir . $this -> eof_ctrl_dir . pack( "v", sizeof( $this -> ctrl_dir) ) . pack( "v", sizeof( $this -> ctrl_dir) ) . pack( "V", strlen( $ctrldir ) ) . pack( "V", strlen( $data ) ) . "\x00\x00"; } } ?> Live Tour Artists Console

Welcome to our new PocketAgentLive users

Added: October 8, 2010

Back to News

We are excited to announce an ever expanding community of PocketAgentLive users, many of which are thriving boutique agencies. If you are new to the PocketAgentLive, we now have a video demo available through the \\\"Demo Video\\\" link on our web site.