示例#1
0
function lang_date($subject)
{
    $search = array('January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday');
    $replace = array(ReadDB($GLOBALS['OptionsLang']['January']), ReadDB($GLOBALS['OptionsLang']['February']), ReadDB($GLOBALS['OptionsLang']['March']), ReadDB($GLOBALS['OptionsLang']['April']), ReadDB($GLOBALS['OptionsLang']['May']), ReadDB($GLOBALS['OptionsLang']['June']), ReadDB($GLOBALS['OptionsLang']['July']), ReadDB($GLOBALS['OptionsLang']['August']), ReadDB($GLOBALS['OptionsLang']['September']), ReadDB($GLOBALS['OptionsLang']['October']), ReadDB($GLOBALS['OptionsLang']['November']), ReadDB($GLOBALS['OptionsLang']['December']), ReadDB($GLOBALS['OptionsLang']['Monday']), ReadDB($GLOBALS['OptionsLang']['Tuesday']), ReadDB($GLOBALS['OptionsLang']['Wednesday']), ReadDB($GLOBALS['OptionsLang']['Thursday']), ReadDB($GLOBALS['OptionsLang']['Friday']), ReadDB($GLOBALS['OptionsLang']['Saturday']), ReadDB($GLOBALS['OptionsLang']['Sunday']));
    $lang_date = str_replace($search, $replace, $subject);
    return $lang_date;
}
示例#2
0
文件: rss.php 项目: Alanmugz/Skibbdcc
    ?>
</guid>
		<title><![CDATA[<?php 
    echo ReadDB($News["title"]);
    ?>
]]></title>
        <link><?php 
    if (trim($Options["news_link"]) != '') {
        echo ReadDB($Options["news_link"]) . "?id=" . $News['id'];
    } else {
        echo $CONFIG["full_url"] . "preview.php?id=" . $News["id"];
    }
    ?>
</link>
		<description><![CDATA[<?php 
    echo ReadDB($News["summary"]);
    ?>
]]></description>
        <pubDate><?php 
    echo date("D, d M Y H:i:s O", strtotime($News["publish_date"]));
    ?>
</pubDate>
        <?php 
    if ($News["image"] != '') {
        ?>

        <enclosure url="<?php 
        echo $CONFIG["full_url"] . $CONFIG["upload_thumbs"] . $News["image"];
        ?>
" length="<?php 
        echo filesize($CONFIG["server_path"] . $CONFIG["upload_thumbs"] . $News["image"]);
示例#3
0
        <td colspan="3" class="subinfo">System messages: </td>
      </tr>
      <tr>
        <td class="langLeft">Incorrect verification code:</td>
        <td valign="top">
          <input name="Incorrect_verification_code" type="text" size="50" value="<?php 
        echo ReadHTML($OptionsLang["Incorrect_verification_code"]);
        ?>
" />        </td>
      </tr>
            
      <tr>
        <td class="langLeft">Banned IP address used:</td>
        <td valign="top">
          <input name="Banned_ip_used" type="text" size="50" value="<?php 
        echo ReadDB($OptionsLang["Banned_ip_used"]);
        ?>
" />        </td>
      </tr> 
      <tr>
        <td class="langLeft">Banned word used:</td>
        <td valign="top">
          <input name="Banned_word_used" type="text" size="50" value="<?php 
        echo ReadHTML($OptionsLang["Banned_word_used"]);
        ?>
" />        </td>
      </tr>          
      <tr>
        <td class="langLeft">Your comment has been submitted:</td>
        <td valign="top"><input name="Comment_Submitted" type="text" size="50" value="<?php 
        echo ReadHTML($OptionsLang["Comment_Submitted"]);
示例#4
0
    echo $News["imgwidth"];
    ?>
">

			<media:title><?php 
    echo ReadDB($News["title"]);
    ?>
</media:title>

			<media:description><?php 
    echo ReadDB($News["summary"]);
    ?>
</media:description>

			<media:thumbnail url="<?php 
    echo $CONFIG["full_url"] . $CONFIG["upload_thumbs"] . ReadDB($News["image"]);
    ?>
" width="<?php 
    echo $OptionsVis["summ_img_width"];
    ?>
"/>
            
		</media:content>
        
	</item>
<?php 
}
?>

</channel>
</rss>
示例#5
0
px; line-height: <?php 
            echo $OptionsVis["sl_summ_font_size"] + 4;
            ?>
px; font-family: <?php 
            echo $OptionsVis["sl_summ_font_family"];
            ?>
; color:<?php 
            echo $OptionsVis["sl_summ_color"];
            ?>
;"><?php 
            echo cutText(ReadDB($News["summary"]), $OptionsVis["sl_summ_num_char"]);
            ?>
</span>
            <a href="<?php 
            if (trim($Options["news_link"]) != '') {
                echo ReadDB($Options["news_link"]) . "?id=" . $News['id'];
            } else {
                echo $thisPage . "?tid=" . $News['id'];
            }
            ?>
&cat_id=<?php 
            echo $News["cat_id"];
            ?>
#ontitle"> 
            <span style="display:block; padding-left:4px;padding-bottom:2px; font-size:11px;">&raquo; <?php 
            echo $OptionsLang['Read_more'];
            ?>
</span>            
            </a>
            <?php 
        }
示例#6
0
        <td class="formLeft"><?php 
        echo $lang['Edit_comment_Email'];
        ?>
</td>
        <td><input name="email" type="text" size="40" maxlength="250" value="<?php 
        echo ReadHTML($Comments["email"]);
        ?>
" /></td>
      </tr>
  	  <tr>
    	<td class="formLeft" valign="top"><?php 
        echo $lang['Edit_comment_Comment'];
        ?>
</td>
    	<td><textarea name="comment" cols="80" rows="10"><?php 
        echo ReadDB($Comments["comment"]);
        ?>
</textarea></td>
  	  </tr>
  	  <tr>
        <td class="formLeft" align="left">&nbsp;</td>
        <td>
          <input type="submit" name="button2" id="button2" value="<?php 
        echo $lang['Edit_comment_Update'];
        ?>
" class="submitButton" />
        </td>
  	  </tr>
    </table>
    </form>
示例#7
0
<?php

require 'php/config.php';
if ($environment == 'prod') {
    if (!isset($configs_are_set)) {
        include "scriptfolder/configs.php";
    }
    //Facebook data from database
    //$conn aquired from scriptfolderbootstrap/configs.php
    $sql = "SELECT title, summary FROM " . $TABLE["News"] . " WHERE status='Published' AND id='" . mysql_real_escape_string($_REQUEST["id"]) . "'";
    $sql_result = mysql_query($sql, $conn) or die('MySQL query error: ' . $sql . '. Error: ' . mysql_error());
    if (mysql_num_rows($sql_result) > 0) {
        $News = mysql_fetch_assoc($sql_result);
    }
    $titlefb = ReadDB($News["title"]);
    $descfb = ReadDB($News["summary"]);
}
?>

<!DOCTYPE html>
<html>
<head>
	<title>Skibbereen &amp; District Car Club</title>

	<meta name="generator" content="PSPad editor, www.pspad.com" />
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<meta name="description" content="Skibbereen &amp; District Car Club. Home of the Westlogde Fastent Rally" />
	<meta name="keywords" content="Skibbereen and District Car Club, Skibbdcc, Westlodge Hotel, Skibbereen Motor Club, Fastnet Rally" />
	<meta name="author" content="Alan Mulligan Web Design" />
	<meta name="robots" content="index, follow" />
示例#8
0
    $rss .= '  
	<item>
	';
    $rss .= '	<guid isPermaLink="false">' . $isPermaLink . $News["id"] . '</guid>
	';
    $rss .= '	<title><![CDATA[' . ReadDB($News["title"]) . ']]></title>
	';
    $rss .= '	<link>';
    if (trim($Options["news_link"]) != '') {
        $rss .= ReadDB($Options["news_link"]) . '?id=' . $News['id'];
    } else {
        $rss .= $CONFIG["full_url"] . 'preview.php?id=' . $News["id"];
    }
    $rss .= '</link>
	';
    $rss .= '	<description><![CDATA[' . ReadDB($News["summary"]) . ']]></description>
	';
    $rss .= '	<pubDate>' . date("D, d M Y H:i:s O", strtotime($News["publish_date"])) . '</pubDate>
	';
    if ($News["image"] != '') {
        $rss .= '	<enclosure url="' . $CONFIG["full_url"] . $CONFIG["upload_folder"] . $News["image"] . '" length="' . filesize($CONFIG["server_path"] . $CONFIG["upload_thumbs"] . $News["image"]) . '" type="image/jpeg" />';
    }
    $rss .= '  
	</item>
	';
}
$rss .= ' 
 </channel>
';
$rss .= '</rss>';
$handle = fopen("rss.xml", "w");