Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1110449
in-portal
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Aug 27, 12:39 PM
Size
4 KB
Mime Type
text/x-diff
Expires
Fri, Aug 29, 12:39 PM (14 h, 2 m)
Engine
blob
Format
Raw Data
Handle
716238
Attached To
rINP In-Portal
in-portal
View Options
Index: branches/unlabeled/unlabeled-1.1.2/kernel/include/compat.php
===================================================================
--- branches/unlabeled/unlabeled-1.1.2/kernel/include/compat.php (nonexistent)
+++ branches/unlabeled/unlabeled-1.1.2/kernel/include/compat.php (revision 6950)
@@ -0,0 +1,18 @@
+<?php
+ $dir = FULL_PATH.'/compat/';
+
+ if (is_dir($dir))
+ {
+ if ($dh = opendir($dir))
+ {
+ while (($file = readdir($dh)) !== false)
+ {
+ if($file != "." && $file != ".." && substr($file,-3)=="php")
+ {
+ require_once($dir.$file);
+ }
+ }
+ closedir($dh);
+ }
+ }
+?>
\ No newline at end of file
Property changes on: branches/unlabeled/unlabeled-1.1.2/kernel/include/compat.php
___________________________________________________________________
Added: cvs2svn:cvs-rev
## -0,0 +1 ##
+1.1.2.1
\ No newline at end of property
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: branches/unlabeled/unlabeled-1.1.96/html_parse.php
===================================================================
--- branches/unlabeled/unlabeled-1.1.96/html_parse.php (revision 6949)
+++ branches/unlabeled/unlabeled-1.1.96/html_parse.php (nonexistent)
@@ -1,75 +0,0 @@
-# string $tagFn : function to call for each tag. This function
-# is called for *every* tag, opening and closing.
-# It would be easy to change this to call a
-# different function for open and close tags.
-# The tagFn has these arguments:
-# function tagFn($tag, $attribs)
-# string $tag : the tag
-# string $attribs : all the attributes, as one long string
-# wouldn't be hard to change this to an assoc array
-# string $dataFn : function to call for data (non-tag). This function
-# is called for all the data in between tags, including
-# comments. The dataFn has these arguments:
-# function dataFn($data)
-# string $data : the text
-# string $data : the html to parse
-
-function html_parse($tagFn, $dataFn, $data)
-{
- $comment = false;
-
- # Split on '<', so the beginning of each array entry
- # will be a tag.
- $TagLine = explode('<', $data);
-
- # Loop through each entry -- each entry is a tag
- # followed by everything up to the next tag.
- foreach ($TagLine as $l) {
- # If we're not in a comment block, then check if
- # one starts here.
- if (!$comment) {
- if (substr(ltrim($l), 0, 3) == "!--") {
- # this is the beginning of a comment, not a tag
- $comment = true;
- $commentline = "";
- }
- }
-
- # If we're in a comment block, add this entry to
- # the comment block, and check if it ends here.
- if ($comment) {
- $commentline .= "<".$l;
- if (strstr($l, "-->")) {
- $line = $commentline;
- $tag = "";
- $comment = false;
- }
- else {
- $line = "";
- $tag = "";
- }
- }
- # Otherwise, split on '>' to separate the tag from
- # the data.
- else {
- list($tag, $line) = explode('>', $l, 2);
- }
-
- # If there's a tag, call the tag function
- if (strlen($tag)) {
- $tag = trim($tag);
- list($tag, $attribline) = explode(' ', $tag, 2);
-
- # I could split $attribline into an
- # associative array, but I don't need
- # that functionality now.
- $tagFn($tag, $attribline);
- }
-
- # If there's data, call the data function
- if (strlen($line)) {
- $dataFn($line);
- }
- }
-}
-
Property changes on: branches/unlabeled/unlabeled-1.1.96/html_parse.php
___________________________________________________________________
Deleted: cvs2svn:cvs-rev
## -1 +0,0 ##
-1.1
\ No newline at end of property
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Index: branches/unlabeled/unlabeled-1.2.2/compat.php
===================================================================
--- branches/unlabeled/unlabeled-1.2.2/compat.php (revision 6949)
+++ branches/unlabeled/unlabeled-1.2.2/compat.php (nonexistent)
@@ -1,18 +0,0 @@
-<?php
- $dir = FULL_PATH.'/compat/';
-
- if (is_dir($dir))
- {
- if ($dh = opendir($dir))
- {
- while (($file = readdir($dh)) !== false)
- {
- if($file != "." && $file != ".." && substr($file,-3)=="php")
- {
- require_once($dir.$file);
- }
- }
- closedir($dh);
- }
- }
-?>
\ No newline at end of file
Property changes on: branches/unlabeled/unlabeled-1.2.2/compat.php
___________________________________________________________________
Deleted: cvs2svn:cvs-rev
## -1 +0,0 ##
-1.2
\ No newline at end of property
Deleted: svn:executable
## -1 +0,0 ##
-*
\ No newline at end of property
Event Timeline
Log In to Comment