Changeset 1304
- Timestamp:
- 01/29/07 17:18:54 (2 years ago)
- Files:
-
- feedmelinks/folder-as-rss.php (modified) (2 diffs)
- feedmelinks/folder.php (modified) (1 diff)
- feedmelinks/index.php (modified) (5 diffs)
- feedmelinks/list-public.php (modified) (1 diff)
- feedmelinks/modules/initial-dispatch.inc.php (added)
- feedmelinks/modules/list-public-compact.inc.php (modified) (2 diffs)
- feedmelinks/modules/public.inc.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
feedmelinks/folder-as-rss.php
r1178 r1304 20 20 21 21 $showURLs = false; 22 $USE_LONG_URLS = false;23 22 $errors = 0; 24 23 … … 187 186 <% if( $showURLs ) { 188 187 $tmpurl = $url; 189 if( ! $USE_LONG_URLS ) { 190 $tmpurl = str_replace ( "http://", "", $tmpurl); 191 $tmpurl = str_replace ( "https://", "[s] ", $tmpurl); 192 $tmpurl = str_replace ( "ftp://", "[f] ", $tmpurl); 193 $tmpurl = str_replace ( "www.", "", $tmpurl); 194 } 188 $tmpurl = str_replace ( "http://", "", $tmpurl); 189 $tmpurl = str_replace ( "https://", "[s] ", $tmpurl); 190 $tmpurl = str_replace ( "ftp://", "[f] ", $tmpurl); 191 $tmpurl = str_replace ( "www.", "", $tmpurl); 195 192 if( strlen( $tmpurl ) > $MAX_URL_LENGTH ) 196 193 $tmpurl = substr( $tmpurl, 0, $MAX_URL_LENGTH ) . "..."; feedmelinks/folder.php
r1178 r1304 28 28 29 29 $showURLs = false; 30 $USE_LONG_URLS = false;31 30 $errors = ""; 32 31 $condensed = ($condensed || $short) ? 1 : 0; feedmelinks/index.php
r1302 r1304 3 3 include( "modules/class.gzip_encode.inc.php" ); 4 4 include_once( "modules/utils.inc.php" ); 5 include( "modules/initial-dispatch.inc.php" ); 5 6 $page = "index"; 6 7 … … 9 10 $direction = "ASC"; 10 11 11 $tok = $_COOKIE["c_pass_token"]; 12 $u = $sessionUserId = $_COOKIE["c_uid"]; 13 14 if( (! $tok || $tok != md5( getPasswdForUser( $u )) ) && ! $l ) { 15 $op = "login"; 16 if( $name && $url && $from ) { 17 echo bounceTo( $site . "/login?name=" . urlencode( $name ) . "&url=" . urlencode( $url ) . "&from=" . urlencode( $from )); 18 } else { 19 if( isADevice( $HTTP_USER_AGENT )) { 20 echo jsWrap( "window.location = 'http://feedmelinks.com/portal';" ); 21 } else { 22 echo bounceTo( $site . urldecode( "/portal" ) ); 23 } 24 } 25 } else { 12 $MAX_URL_LENGTH = 40; 13 $MAX_NAME_LENGTH = 40; 26 14 27 # first, set up options and defaults. 28 $MAX_URL_LENGTH = 40; 29 $MAX_NAME_LENGTH = 40; 30 $USE_LONG_URLS = 0; 31 32 if( $l ) { 33 $link_info = getLinkInfo( $l ); 34 $name = urldecode( $link_info['name'] ); 35 $submitter = $link_info['submitter']; 36 } 15 if( $l ) { 16 $link_info = getLinkInfo( $l ); 17 $name = urldecode( $link_info['name'] ); 18 $submitter = $link_info['submitter']; 19 } 37 20 38 21 $title = ( $l ? "Feed Me Links » $submitter » " . $name : "Feed Me Links!" ); … … 41 24 if( $op != "delete" && $op != "commitEdit" && $u ) { 42 25 $do_xajax = true; 43 44 26 include( "$modules/header.inc.php" ); 45 ?> 46 47 <br /> 48 49 <?php 27 echo "<br />"; 50 28 } else { 51 29 include( "$modules/header.insecure.inc.php" ); … … 55 33 $showLinks = 1; 56 34 $hotRow = -1; 57 58 ##############################################################59 35 60 36 if( $op == "add_comment" ) { … … 75 51 76 52 include( "$modules/footer.inc.php" ); 77 78 } // end if login 79 new gzip_encode(); 53 new gzip_encode(); 80 54 ?> feedmelinks/list-public.php
r569 r1304 14 14 15 15 $showURLs = false; 16 $USE_LONG_URLS = false;17 18 16 $title = "Feed Me Links : Public " . getCatsName(); 19 17 %> feedmelinks/modules/list-public-compact.inc.php
r889 r1304 20 20 # first, set up options and defaults. 21 21 $MAX_NAME_LENGTH = 40; 22 23 $showURLs = false;24 $USE_LONG_URLS = false;25 22 %> 26 23 … … 33 30 $magick = 1; 34 31 $hotRow = -1; 35 36 $columnCount = $showURLs ? 7 : 6; 37 32 $columnCount = 6; 38 33 $singleGroup = $folder ? true : false; 39 34 feedmelinks/modules/public.inc.php
r889 r1304 17 17 18 18 $showURLs = false; 19 $USE_LONG_URLS = false;20 19 21 20 $max = 4; … … 185 184 <% 186 185 $tmpurl = $url; 187 if( ! $USE_LONG_URLS ) { 188 $tmpurl = str_replace ( "http://", "", $tmpurl); 189 $tmpurl = str_replace ( "https://", "[s] ", $tmpurl); 190 $tmpurl = str_replace ( "ftp://", "[f] ", $tmpurl); 191 $tmpurl = str_replace ( "www.", "", $tmpurl); 192 } 186 $tmpurl = str_replace ( "http://", "", $tmpurl); 187 $tmpurl = str_replace ( "https://", "[s] ", $tmpurl); 188 $tmpurl = str_replace ( "ftp://", "[f] ", $tmpurl); 189 $tmpurl = str_replace ( "www.", "", $tmpurl); 193 190 if( strlen( $tmpurl ) > $MAX_URL_LENGTH ) 194 191 $tmpurl = substr( $tmpurl, 0, $MAX_URL_LENGTH ) . "...";