Subversion Repositories eFlore/Applications.cel

Rev

Rev 418 | Rev 1604 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 418 Rev 996
Line 1185... Line 1185...
1185
        preg_match("/\$?([A-I]?[A-Z])\$?(\d+)/",$cell,$match);
1185
        preg_match("/\$?([A-I]?[A-Z])\$?(\d+)/",$cell,$match);
1186
        $col     = $match[1];
1186
        $col     = $match[1];
1187
        $row     = $match[2];
1187
        $row     = $match[2];
Line 1188... Line 1188...
1188
    
1188
    
1189
        // Convert base26 column string to number
1189
        // Convert base26 column string to number
1190
        $chars = split('', $col);
1190
        $chars = explode('', $col);
1191
        $expn  = 0;
1191
        $expn  = 0;
Line 1192... Line 1192...
1192
        $col   = 0;
1192
        $col   = 0;
1193
    
1193
    
Line 1828... Line 1828...
1828
        }
1828
        }
Line 1829... Line 1829...
1829
    
1829
    
1830
        // Determine if the link contains a sheet reference and change some of the
1830
        // Determine if the link contains a sheet reference and change some of the
1831
        // parameters accordingly.
1831
        // parameters accordingly.
1832
        // Split the dir name and sheet name (if it exists)
1832
        // Split the dir name and sheet name (if it exists)
1833
        list($dir_long , $sheet) = split('/\#/', $url);
1833
        list($dir_long , $sheet) = explode('/\#/', $url);
Line 1834... Line 1834...
1834
        $link_type               = 0x01 | $absolute;
1834
        $link_type               = 0x01 | $absolute;
1835
    
1835
    
1836
        if (isset($sheet)) {
1836
        if (isset($sheet)) {
1837
            $link_type |= 0x08;
1837
            $link_type |= 0x08;
1838
            $sheet_len  = pack("V", strlen($sheet) + 0x01);
1838
            $sheet_len  = pack("V", strlen($sheet) + 0x01);
1839
            $sheet      = join("\0", split('', $sheet));
1839
            $sheet      = join("\0", explode('', $sheet));
1840
            $sheet     .= "\0\0\0";
1840
            $sheet     .= "\0\0\0";
1841
        }
1841
        }
1842
        else {
1842
        else {
Line 1853... Line 1853...
1853
    
1853
    
1854
        // Store the short dos dir name (null terminated)
1854
        // Store the short dos dir name (null terminated)
Line 1855... Line 1855...
1855
        $dir_short   = preg_replace('/\.\.\\/', '', $dir_long) . "\0";
1855
        $dir_short   = preg_replace('/\.\.\\/', '', $dir_long) . "\0";
1856
    
1856
    
1857
        // Store the long dir name as a wchar string (non-null terminated)
1857
        // Store the long dir name as a wchar string (non-null terminated)
Line 1858... Line 1858...
1858
        $dir_long       = join("\0", split('', $dir_long));
1858
        $dir_long       = join("\0", explode('', $dir_long));
1859
        $dir_long       = $dir_long . "\0";
1859
        $dir_long       = $dir_long . "\0";
1860
    
1860