@Ghazascanner
_2019runbot
Ghazascanner File Manager
server :Linux phosweb010 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64
Current Path :
/
homepage
/
v-mt
/
php
/
lib
/
Path :
Upload File :
New :
File
Dir
/homepage/v-mt/php/lib/function.mtcclicenserdf.php
<?php # Movable Type (r) (C) 2001-2008 Six Apart, Ltd. All Rights Reserved. # This code cannot be redistributed without permission from www.sixapart.com. # For more information, consult your Movable Type license. # # $Id: function.mtcclicenserdf.php 1174 2008-01-08 21:02:50Z bchoate $ function smarty_function_mtcclicenserdf($args, &$ctx) { // status: complete // parameters: none $blog = $ctx->stash('blog'); $cc = $blog['blog_cc_license']; if (empty($cc)) return ''; require_once("cc_lib.php"); require_once("MTUtil.php"); $cc_url = cc_url($cc); $rdf = <<<RDF <!-- <rdf:RDF xmlns="http://web.resource.org/cc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> RDF; ## SGML comments cannot contain double hyphens, so we convert ## any double hyphens to single hyphens. $entry = $ctx->stash('entry'); if ($entry) { $permalink = $ctx->tag('EntryPermalink'); $title = encode_xml(strip_hyphen($entry['entry_title'])); $desc = encode_xml(strip_hyphen($ctx->tag('EntryExcerpt'))); $creator = encode_xml(strip_hyphen($entry['entry_author_id'] ? $entry['author_name'] : '')); $date = $ctx->_hdlr_date(array('format' => "%Y-%m-%dT%H:%M:%S"), $ctx) . $ctx->tag('BlogTimezone'); $rdf .= <<<RDF <Work rdf:about="$permalink"> <dc:title>$title</dc:title> <dc:description>$desc</dc:description> <dc:creator>$creator</dc:creator> <dc:date>$date</dc:date> <license rdf:resource="$cc_url" /> </Work> RDF; } else { $site_url = $blog['blog_site_url']; if (!preg_match('!/$!', $site_url)) $site_url .= '/'; $title = encode_xml(strip_hyphen($blog['blog_name'])); $desc = encode_xml(strip_hyphen($blog['blog_description'])); $rdf .= <<<RDF <Work rdf:about="$site_url"> <dc:title>$title</dc:title> <dc:description>$desc</dc:description> <license rdf:resource="$cc_url" /> </Work> RDF; } $rdf .= cc_rdf($cc) . "</rdf:RDF>\n-->\n"; return $rdf; } ?>