Ejemplo n.º 1
0
Archivo: main.php Proyecto: anodyne/sms
                    ?>
" class="image">
						<img src="<?php 
                    echo $webLocation;
                    ?>
images/edit.png" alt="[ Edit ]" border="0" />
					</a>
					<?php 
                }
                ?>
				</span><br />
				
				<span class="fontSmall">
					<?php 
                echo "Posted by ";
                displayAuthors($posts['postid'], "link");
                echo " on " . dateFormat("long", $postPosted);
                ?>
					<br />
					
					Mission: <a href="<?php 
                echo $webLocation;
                ?>
index.php?page=mission&id=<?php 
                echo $missionid;
                ?>
"><?php 
                printText($missionTitle);
                ?>
</a>
				</span><br />
Ejemplo n.º 2
0
			<td align="center"><?php 
        echo dateFormat("medium", $postPosted);
        ?>
</td> 
			<td align="center"><a href="<?php 
        echo $webLocation;
        ?>
index.php?page=post&id=<?php 
        echo $postid;
        ?>
"><?php 
        printText($postTitle);
        ?>
</a></td> 
			<td align="center"><?php 
        displayAuthors($postid, "link");
        ?>
</a></td> 
		</tr>
	
		<?php 
        $rowCount++;
    }
    ?>
	
	</table> 
	
<?php 
} else {
    ?>
Ejemplo n.º 3
0
 private function updateRSS($data, $title, $file)
 {
     global $_CONFIG;
     $xml = '<?xml version="1.0" encoding="UTF-8"?>' . PHP_EOL;
     $xml .= '<rss version="2.0"  xmlns:atom="http://www.w3.org/2005/Atom">' . PHP_EOL;
     $xml .= '<channel>' . PHP_EOL;
     $xml .= '<atom:link href="' . BASE_URL . $file . '" rel="self" type="application/rss+xml" />' . PHP_EOL;
     $xml .= '<title>' . $title . '</title>' . PHP_EOL;
     $xml .= '<link>' . BASE_URL . '</link>' . PHP_EOL;
     $xml .= '<description>RSS feed of ' . $title . '</description>' . PHP_EOL;
     $xml .= '<pubDate>' . date("D, d M Y H:i:s O") . '</pubDate>' . PHP_EOL;
     $xml .= '<copyright>' . BASE_URL . '</copyright>' . PHP_EOL;
     $xml .= '<language>' . $_CONFIG['locale'] . '</language>' . PHP_EOL;
     $xml .= '<generator>' . MYBOOKS . '</generator>' . PHP_EOL;
     $xml .= '<image>' . PHP_EOL;
     $xml .= '<title>' . $title . '</title>' . PHP_EOL;
     $xml .= '<url>' . BASE_URL . 'assets/img/books_48x48.png</url>' . PHP_EOL;
     $xml .= '<link>' . BASE_URL . '</link>' . PHP_EOL;
     $xml .= '<width>48</width>' . PHP_EOL;
     $xml .= '<height>48</height>' . PHP_EOL;
     $xml .= '</image>' . PHP_EOL;
     foreach ($data as $id => $book) {
         $xml .= '<item>' . PHP_EOL;
         $xml .= '<title>' . $book['title'] . '</title>' . PHP_EOL;
         $xml .= '<link>' . BASE_URL . substr(Path::book($book['id']), 2) . '</link>' . PHP_EOL;
         $xml .= '<description><![CDATA[<p><strong>' . displayAuthors($book['author']) . '</strong><br>' . ($book['status'] == Book::SEEN ? 'Book read &middot; Rated ' . $book['note'] . '/5' : 'Book not read') . '</p><p>' . htmlspecialchars_decode(htmlentities($book['summary'], ENT_COMPAT, 'UTF-8')) . '</p>]]></description>' . PHP_EOL;
         $xml .= '<enclosure url="' . Books::CompleteImageURI($book) . '" length="42" type="image/jpeg" />' . PHP_EOL;
         $xml .= '<guid isPermaLink="false">' . $book['id'] . '</guid>' . PHP_EOL;
         $xml .= '<pubDate>' . date("D, d M Y H:i:s O", $book['id']) . '</pubDate>' . PHP_EOL;
         foreach (explode(',', $book['genre']) as $genre) {
             $xml .= '<category domain="' . BASE_URL . '?genre=' . trim(mb_convert_case($genre, MB_CASE_LOWER, "UTF-8")) . '">' . trim(mb_convert_case($genre, MB_CASE_TITLE, "UTF-8")) . '</category>' . PHP_EOL;
         }
         $xml .= '<source url="' . BASE_URL . $file . '">' . TITLE . '</source>' . PHP_EOL;
         $xml .= '</item>' . PHP_EOL;
     }
     $xml .= '</channel>' . PHP_EOL;
     $xml .= '</rss>' . PHP_EOL;
     file_put_contents($file, $xml);
 }
Ejemplo n.º 4
0
Archivo: info.php Proyecto: anodyne/sms
		<?php 
    /* loop through everything until you run out of results */
    while ($fetchPost = mysql_fetch_array($getPostsResult)) {
        extract($fetchPost, EXTR_OVERWRITE);
        ?>
		<li class="fontNormal"><a href="<?php 
        echo $webLocation;
        ?>
index.php?page=post&id=<?php 
        echo $fetchPost[0];
        ?>
" class="fix"><?php 
        printText($fetchPost[1]);
        ?>
</a> <span class="fontNormal">by <?php 
        displayAuthors($fetchPost[0], "rank", "noLink");
        ?>
</span></li>
		<li class="spacer">&nbsp;</li>
		<?php 
    }
    ?>
	</ul>
	<?php 
}
?>
	
	<?php 
if ($showInfoPositions == "y") {
    ?>
	<span class="fontLarge"><b>Open Positions</b></span><br />
Ejemplo n.º 5
0
        }
        ?>
	
		<form method="post" action="<?php 
        echo $webLocation;
        ?>
admin.php?page=post&sub=mission&id=<?php 
        echo $id;
        ?>
">
		<table>
			<tr>
				<td class="narrowLabel tableCellLabel">Author</td>
				<td>&nbsp;</td>
				<td><?php 
        displayAuthors($postid, "noLink");
        ?>
</td>
			</tr>
			<tr>
				<td class="narrowLabel tableCellLabel">Mission</td>
				<td>&nbsp;</td>
				<td class="fontNormal">
					<?php 
        $missionTitle = "SELECT missionid, missionTitle FROM sms_missions WHERE missionStatus = 'current'";
        $missionTitleResult = mysql_query($missionTitle);
        $missions = FALSE;
        while ($titleArray = mysql_fetch_array($missionTitleResult)) {
            extract($titleArray, EXTR_OVERWRITE);
            $missions[] = array('id' => $missionid, 'title' => $missionTitle);
        }
Ejemplo n.º 6
0
						<th width="10%"></th>
					</tr>
				</thead>
				
				<?php 
        /* loop through the results and fill the form */
        while ($pendingPosts = mysql_fetch_assoc($getPendingPostsResult)) {
            extract($pendingPosts, EXTR_OVERWRITE);
            ?>
				<tr class="fontNormal">
					<td><?php 
            printText($pendingPosts['postTitle']);
            ?>
</td>
					<td><?php 
            displayAuthors($pendingPosts['postid'], 'noLink');
            ?>
</td>
					<td align="center"><a href="<?php 
            echo $webLocation;
            ?>
index.php?page=post&id=<?php 
            echo $pendingPosts['postid'];
            ?>
"><b>View Post</b></a></td>
					<td align="center"><a href="#" class="delete" rel="facebox" myID="<?php 
            echo $pendingPosts['postid'];
            ?>
" myType="post" myAction="delete"><b>Delete</b></a></td>
					<td align="center"><a href="#" class="add" rel="facebox" myID="<?php 
            echo $pendingPosts['postid'];
Ejemplo n.º 7
0
    $get = "SELECT * FROM sms_posts WHERE postid = {$id} LIMIT 1";
    $getR = mysql_query($get);
    $pendingArray = mysql_fetch_assoc($getR);
    ?>
	<h2>Activate Pending Mission Post?</h2>
	<p>Are you sure you want to activate this post?  Once activated, the post will be emailed to the entire crew.</p>
	
	<hr size="1" width="100%" />
	
	<form method="post" action="">
		<h3><?php 
    printText($pendingArray['postTitle']);
    ?>
</h3>
		<h4>By <?php 
    displayAuthors($pendingArray['postid'], 'noLink');
    ?>
</h4>
		
		<div class="overflow"><?php 
    printText($pendingArray['postContent']);
    ?>
</div>
		
		<p></p>
		
		<div>
			<input type="hidden" name="action_id" value="<?php 
    echo $pendingArray['postid'];
    ?>
" />
Ejemplo n.º 8
0
function similarSummary($ASIN, $mode)
{
    $ars = getARS('asin', array('asin' => $ASIN, 'mode' => $mode));
    if ($ars) {
        $product = $ars->getProduct(0);
    } else {
        echo "cannot get details for {$ASIN}";
    }
    if (!isset($product)) {
        return '';
    }
    $result = "<a href='index.php?action=detail&ASIN={$ASIN}'>" . $product->productName() . '</a> ';
    $result .= displayAuthors($product->authors());
    return $result;
}
function similarSummary($items, $mode)
{
    $ars = getARS('asin', array('asin' => $items['ASIN'], 'mode' => $mode));
    if ($ars) {
        $product = $ars->getProduct(0);
    } else {
        echo "<p>Cannot get details for " . $items['ASIN'] . "</p>";
    }
    if (!isset($product)) {
        return '';
    }
    $result = "<a href=\"index.php?action=detail&ASIN=" . $items['ASIN'] . "\">" . $items['Title'] . "</a> ";
    $result .= displayAuthors($product->authors());
    return $result;
}
Ejemplo n.º 10
0
function displayPeople($uid, $pid)
{
    ?>
    <table>
        <?php 
    displayAuthors($uid, $pid);
    ?>
        <?php 
    displaySpoiled($uid, $pid);
    ?>
        <?php 
    if (USING_ROUND_CAPTAINS) {
        displayRoundCaptain($uid, $pid);
    }
    ?>
        <?php 
    displayEditors($uid, $pid);
    ?>
        <?php 
    if (USING_APPROVERS) {
        displayApprovers($uid, $pid);
    }
    ?>
        <?php 
    displayFactcheckers($uid, $pid);
    ?>
        <?php 
    displayTags($uid, $pid);
    ?>
        <?php 
    if (canSeeTesters($uid, $pid)) {
        displayTesters($uid, $pid);
    }
    ?>
        <?php 
    displayTestingAdmin($uid, $pid);
    ?>
    </table>
<?php 
}