initial commit
28
index.html
Executable file
@@ -0,0 +1,28 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
|
||||
<meta name="generator" content="Adobe GoLive" />
|
||||
<title>Welcome to the Home Page of ResourceLinks</title>
|
||||
<link href="css/basic.css" rel="stylesheet" type="text/css" media="all" />
|
||||
<link href="index.php" />
|
||||
</head>
|
||||
|
||||
<body bgcolor="#fcffed" onload='document.location="/resourcelinks/rlinks3/indextest.php"'>
|
||||
<p></p>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
BIN
rlinkpagephotos/Heitzingkirche.JPG
Executable file
|
After Width: | Height: | Size: 2.7 MiB |
BIN
rlinkpagephotos/Heitzingkirche.gif
Executable file
|
After Width: | Height: | Size: 42 KiB |
BIN
rlinkpagephotos/Othmar_small2.jpg
Executable file
|
After Width: | Height: | Size: 13 KiB |
BIN
rlinkpagephotos/anna_and_sara_small.gif
Executable file
|
After Width: | Height: | Size: 84 KiB |
BIN
rlinkpagephotos/billm.gif
Executable file
|
After Width: | Height: | Size: 12 KiB |
BIN
rlinkpagephotos/dave_dewitt.gif
Executable file
|
After Width: | Height: | Size: 43 KiB |
BIN
rlinkpagephotos/family.jpg
Executable file
|
After Width: | Height: | Size: 33 KiB |
BIN
rlinkpagephotos/georgi_gabi.jpg
Executable file
|
After Width: | Height: | Size: 28 KiB |
BIN
rlinkpagephotos/gumpoldskirchen.gif
Executable file
|
After Width: | Height: | Size: 37 KiB |
BIN
rlinkpagephotos/gumpoldskirchen.jpg
Executable file
|
After Width: | Height: | Size: 1.2 MiB |
BIN
rlinkpagephotos/hannes.jpg
Executable file
|
After Width: | Height: | Size: 19 KiB |
BIN
rlinkpagephotos/hburg_full.jpg
Executable file
|
After Width: | Height: | Size: 62 KiB |
BIN
rlinkpagephotos/hkirchesmall.gif
Executable file
|
After Width: | Height: | Size: 41 KiB |
BIN
rlinkpagephotos/hkirchesmall.jpg
Executable file
|
After Width: | Height: | Size: 2.9 MiB |
BIN
rlinkpagephotos/hofburg.JPG
Executable file
|
After Width: | Height: | Size: 2.9 MiB |
BIN
rlinkpagephotos/hofburg.gif
Executable file
|
After Width: | Height: | Size: 68 KiB |
BIN
rlinkpagephotos/hofburg_small.jpg
Executable file
|
After Width: | Height: | Size: 28 KiB |
BIN
rlinkpagephotos/michaelerkirchesmall.gif
Executable file
|
After Width: | Height: | Size: 43 KiB |
BIN
rlinkpagephotos/neptunebrunn.gif
Executable file
|
After Width: | Height: | Size: 67 KiB |
BIN
rlinkpagephotos/neptunebrunn.jpg
Executable file
|
After Width: | Height: | Size: 26 KiB |
BIN
rlinkpagephotos/othmar_anni.jpg
Executable file
|
After Width: | Height: | Size: 21 KiB |
BIN
rlinkpagephotos/pestsaule.JPG
Executable file
|
After Width: | Height: | Size: 2.5 MiB |
BIN
rlinkpagephotos/pestsaule.gif
Executable file
|
After Width: | Height: | Size: 46 KiB |
BIN
rlinkpagephotos/resourcelinkslogogif
Executable file
|
After Width: | Height: | Size: 4.3 KiB |
BIN
rlinkpagephotos/robert_dax.jpg
Executable file
|
After Width: | Height: | Size: 19 KiB |
BIN
rlinkpagephotos/schoenbrunn.gif
Executable file
|
After Width: | Height: | Size: 32 KiB |
BIN
rlinkpagephotos/sdom.JPG
Executable file
|
After Width: | Height: | Size: 2.9 MiB |
BIN
rlinkpagephotos/sdom.gif
Executable file
|
After Width: | Height: | Size: 51 KiB |
BIN
rlinkpagephotos/sdom_small.jpg
Executable file
|
After Width: | Height: | Size: 36 KiB |
BIN
rlinkpagephotos/seibels_small.gif
Executable file
|
After Width: | Height: | Size: 45 KiB |
BIN
rlinkpagephotos/seibels_small.jpg
Executable file
|
After Width: | Height: | Size: 989 KiB |
BIN
rlinkpagephotos/steve_r.jpg
Executable file
|
After Width: | Height: | Size: 37 KiB |
BIN
rlinkpagephotos/weissenkirchen.JPG
Executable file
|
After Width: | Height: | Size: 765 KiB |
BIN
rlinkpagephotos/weissenkirchen.gif
Executable file
|
After Width: | Height: | Size: 52 KiB |
BIN
rlinkpagephotos/wkirchen2.jpg
Executable file
|
After Width: | Height: | Size: 59 KiB |
BIN
rlinkpagephotos/wkirchensmall.gif
Executable file
|
After Width: | Height: | Size: 60 KiB |
260
rlinks3/admin.php
Executable file
@@ -0,0 +1,260 @@
|
||||
<?php
|
||||
function Admin($report)
|
||||
{
|
||||
$user_digest = VerifyUser();
|
||||
|
||||
$return_html = "<div class='admin_div'>\n<br />$report<hr />\n\n";
|
||||
|
||||
if( !$user_digest ) { $return_html .= AdminLogin(); }
|
||||
else if( $user_digest ) { $return_html .= AdminIndex(); }
|
||||
|
||||
$return_html .= "</div>\n";
|
||||
|
||||
return( $return_html );
|
||||
}
|
||||
|
||||
function AdminLogin()
|
||||
{
|
||||
$login_html = "
|
||||
<form action='indextest.php?page=admin' method='post' style='position:relative;z-index:10;'>
|
||||
<table cellpadding='2' cellspacing='0' border='0'>
|
||||
<tr>
|
||||
<td align='right'>Login:</td><td><input type='text' size='30' name='user' /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align='right'>Password:</td><td><input type='password' size='30' name='password' /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align='right' colspan='2'><input type='submit' value='Login' name='submit' /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
";
|
||||
|
||||
return($login_html);
|
||||
}
|
||||
|
||||
function AdminIndex()
|
||||
{
|
||||
$post_types = array("news","requests","big_requests","great_stuff","austria_trip");
|
||||
$post_tables = array("news" => "news_posts",
|
||||
"requests" => "requests_posts",
|
||||
"big_requests" => "bigrequests_posts",
|
||||
"great_stuff" => "greatstuff_posts",
|
||||
'austria_trip' => 'austriatrip_posts'
|
||||
);
|
||||
|
||||
$index_html = "
|
||||
<div class='item_title'>Admin Panel</div>
|
||||
<form action='indextest.php?page=admin' method='post'>
|
||||
<input type='hidden' name='cmd' value='addpost' />
|
||||
<div class='sub_title'>Add Post</div>
|
||||
<div class='item_content'>
|
||||
post type:<br />
|
||||
<select name='type' id='type'>
|
||||
<option value='news'>News</option>
|
||||
<option value='requests'>Normal Prayer Request</option>
|
||||
<option value='big_requests'>Big Prayer Request</option>
|
||||
<option value='great_stuff'>Great Stuff</option>
|
||||
<option value='austria_trip'>Austria Trip</option>
|
||||
</select>
|
||||
<br />
|
||||
title:<br />
|
||||
<input type='text' size='30' name='title' /><br />
|
||||
author:<br />
|
||||
<input type='text' size='20' name='author' /><br />
|
||||
content:<br />
|
||||
<textarea rows='15' cols='58' name='content'></textarea>
|
||||
<br />
|
||||
<input type='submit' value='add post' />
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
<form action='indextest.php?page=admin' method='post'>
|
||||
<div class='sub_title'>Edit Posts</div>
|
||||
<div class='item_content'>
|
||||
post type:<br />
|
||||
<select name='type' id='edit_type' onchange='EditDisplay()'>
|
||||
<option value='news'>News</option>
|
||||
<option value='requests'>Normal Prayer Request</option>
|
||||
<option value='big_requests'>Big Prayer Request</option>
|
||||
<option value='great_stuff'>Great Stuff</option>
|
||||
<option value='austria_trip'>Austria Trip</option>
|
||||
</select>
|
||||
";
|
||||
|
||||
foreach($post_types as $type)
|
||||
{
|
||||
if($type == 'news') { $visible = "style='visibility:visible;'"; }
|
||||
else { $visible = "style='visibility:hidden;'"; }
|
||||
|
||||
$index_html .= "
|
||||
<div id='$type' $visible>
|
||||
Select $type post:<br />
|
||||
<select name='{$post_tables[$type]}'>
|
||||
<option value='0'>None</option>";
|
||||
|
||||
$q_posts = mysql_query("SELECT ID,Title FROM {$post_tables[$type]} ORDER BY ID Desc;");
|
||||
while( $post = mysql_fetch_assoc($q_posts) )
|
||||
{ $index_html .= "\t\t\t<option value='{$post['ID']}'>{$post['Title']}</option>\n"; }
|
||||
|
||||
$index_html .= "
|
||||
</select>
|
||||
</div>
|
||||
";
|
||||
}
|
||||
|
||||
$index_html .= "
|
||||
<br />
|
||||
<input type='radio' name='cmd' value='editpost' checked='checked' /> edit post<br />
|
||||
<input type='radio' name='cmd' value='deletepost' /> delete post
|
||||
<br /> <br />
|
||||
<input type='submit' value='edit/delete selected post' />
|
||||
</div>
|
||||
</form>
|
||||
";
|
||||
|
||||
return($index_html);
|
||||
}
|
||||
|
||||
function VerifyUser()
|
||||
{
|
||||
$digest = mysql_query("SELECT Value FROM rlinks_security WHERE Variable = 'Digest';");
|
||||
$digest = mysql_fetch_assoc($digest);
|
||||
$digest = $digest['Value'];
|
||||
|
||||
if( $_COOKIE['RLINKSDIGEST'] == $digest )
|
||||
{ return $digest; }
|
||||
else if( $_POST['user'] == "" or $_POST['password'] == "" )
|
||||
{ return false; }
|
||||
|
||||
$phrase = mysql_query("SELECT Value FROM rlinks_security WHERE Variable = 'Phrase';");
|
||||
$phrase = mysql_fetch_assoc($phrase);
|
||||
$phrase = $phrase['Value'];
|
||||
|
||||
$user_password = $_POST['password'];
|
||||
$user_login = $_POST['user'];
|
||||
|
||||
$user_digest = sha1("$user_login^$user_password^$phrase");
|
||||
|
||||
if( $user_digest == $digest )
|
||||
{
|
||||
return $user_digest;
|
||||
}
|
||||
else
|
||||
{ return false; }
|
||||
}
|
||||
|
||||
function AddPost($type)
|
||||
{
|
||||
$dbs = array( 'news' => 'news_posts',
|
||||
'requests' => 'requests_posts',
|
||||
'big_requests' => 'bigrequests_posts',
|
||||
'great_stuff' => 'greatstuff_posts',
|
||||
'austria_trip' => 'austriatrip_posts'
|
||||
);
|
||||
|
||||
if( !(VerifyUser()) ) { return; }
|
||||
|
||||
$content = addslashes($_POST['content']);
|
||||
$author = addslashes($_POST['author']);
|
||||
$title = addslashes($_POST['title']);
|
||||
|
||||
$query = mysql_query("INSERT INTO {$dbs[$type]} (Title,Author,Content,Date,NumComments) VALUES ('$title','$author','$content',UNIX_TIMESTAMP(NOW()),0);");
|
||||
|
||||
if( $query ) { return "Successfully added post."; }
|
||||
else { return "Could not add post."; }
|
||||
}
|
||||
|
||||
function DeletePost($type)
|
||||
{
|
||||
$dbs = array( 'news' => 'news_posts',
|
||||
'requests' => 'requests_posts',
|
||||
'big_requests' => 'bigrequests_posts',
|
||||
'great_stuff' => 'greatstuff_posts',
|
||||
'austria_trip' => 'austriatrip_posts'
|
||||
);
|
||||
|
||||
if( !(VerifyUser()) ) { return; }
|
||||
|
||||
$query = mysql_query("DELETE FROM {$dbs[$type]} WHERE ID = {$_POST[$dbs[$type]]} LIMIT 1;" );
|
||||
|
||||
if($query) { return "Post successfully deleted."; }
|
||||
else { return "Post could not be deleted."; }
|
||||
}
|
||||
|
||||
function EditPost($type)
|
||||
{
|
||||
$dbs = array( 'news' => 'news_posts',
|
||||
'requests' => 'requests_posts',
|
||||
'big_requests' => 'bigrequests_posts',
|
||||
'great_stuff' => 'greatstuff_posts',
|
||||
'austria_trip' => 'austriatrip_posts'
|
||||
);
|
||||
|
||||
if( !(VerifyUser()) ) { return; }
|
||||
|
||||
if( !(isset($_POST['doediting'])) )
|
||||
{
|
||||
$edit_html = "
|
||||
<div align='left' style='position:relative;z-index:10;'>
|
||||
<form action='indextest.php?page=admin' method='post'>
|
||||
<input type='hidden' name='doediting' value='1' />
|
||||
<input type='hidden' name='cmd' value='editpost' />
|
||||
<input type='hidden' name='type' value='$type' />
|
||||
";
|
||||
|
||||
$post_id = $_POST[$dbs[$type]];
|
||||
$post = mysql_query("SELECT * FROM {$dbs[$type]} WHERE ID = $post_id LIMIT 1;");
|
||||
$post = mysql_fetch_assoc( $post );
|
||||
|
||||
$post['Title'] = stripslashes($post['Title']);
|
||||
$post['Content'] = stripslashes($post['Content']);
|
||||
$post['Author'] = stripslashes($post['Author']);
|
||||
|
||||
$edit_html .="
|
||||
<div class='sub_title'>Edit Post</div>
|
||||
<input type='hidden' name='id' value='{$_POST[$dbs[$type]]}' />
|
||||
Title: <br />
|
||||
<input type='text' name='title' value='{$post['Title']}' /><br />
|
||||
Author: <br />
|
||||
<input type='text' name='author' value='{$post['Author']}' /><br />
|
||||
Content: <br />
|
||||
<textarea rows='15' cols='58' name='content'>{$post['Content']}</textarea>
|
||||
<br /> <br />
|
||||
";
|
||||
|
||||
$edit_html .= "
|
||||
<input type='submit' value='make changes to post' />
|
||||
</form>
|
||||
</div>
|
||||
<hr />
|
||||
";
|
||||
}
|
||||
else
|
||||
{
|
||||
if( isset($_POST['id']) )
|
||||
{
|
||||
$content = addslashes($_POST['content']);
|
||||
$title = addslashes($_POST['title']);
|
||||
$author = addslashes($_POST['author']);
|
||||
|
||||
$query = mysql_query("UPDATE {$dbs[$type]} SET Content = '$content', Title = '$title', Author = '$author'
|
||||
WHERE ID = {$_POST['id']} LIMIT 1;");
|
||||
|
||||
print mysql_error();
|
||||
|
||||
if( $query ) { $edit_html .= "Successfully edited post.<br />\n\n"; }
|
||||
else { $edit_html .= "Could not edit post.<br />\n\n"; }
|
||||
}
|
||||
}
|
||||
|
||||
return( $edit_html );
|
||||
}
|
||||
|
||||
function SetAdminCookie($p_digest)
|
||||
{
|
||||
setcookie('RLINKSDIGEST',$p_digest,time() + (30*60),'/');
|
||||
}
|
||||
?>
|
||||
20
rlinks3/digester.php
Executable file
@@ -0,0 +1,20 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Digester</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<?php
|
||||
include "functions.php";
|
||||
InitializeDB();
|
||||
|
||||
$phrase = mysql_query("SELECT * FROM rlinks_security WHERE Variable='Phrase';");
|
||||
$phrase = mysql_fetch_assoc($phrase);
|
||||
$phrase = $phrase['Value'];
|
||||
|
||||
$digest = sha1("smramey^7274j3^$phrase");
|
||||
|
||||
mysql_query("INSERT INTO rlinks_security (Variable,Value) VALUES ('Digest','$digest');");
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
527
rlinks3/functions.php
Executable file
@@ -0,0 +1,527 @@
|
||||
<?php
|
||||
//this function adds a comment to either the english or german comments database
|
||||
function AddComment($type)
|
||||
{
|
||||
$posts_dbs = array( 'news' => 'news_posts',
|
||||
'requests' => 'requests_posts',
|
||||
'big_requests' => 'bigrequests_posts',
|
||||
'great_stuff' => 'greatstuff_posts',
|
||||
'austria_trip' => 'austriatrip_posts'
|
||||
);
|
||||
$comments_dbs = array( 'news' => 'news_comments',
|
||||
'requests' => 'requests_comments',
|
||||
'big_requests' => 'bigrequests_comments',
|
||||
'great_stuff' => 'greatstuff_comments',
|
||||
'austria_trip' => 'austriatrip_comments'
|
||||
);
|
||||
|
||||
$_POST['author'] = addslashes($_POST['author']); //make this form data database safe
|
||||
$_POST['authorweb'] = addslashes($_POST['authorweb']);
|
||||
$_POST['content'] = addslashes($_POST['content']);
|
||||
|
||||
//insert this new comment into the news_comments table
|
||||
mysql_query("INSERT INTO {$comments_dbs[$type]} (PostID,Date,Author,AuthorWeb,Content) VALUES ({$_GET['id']},UNIX_TIMESTAMP(NOW()),'{$_POST['author']}','{$_POST['authorweb']}','{$_POST['content']}');");
|
||||
|
||||
//this gets the current comment count for the news post, increments it, then updates the value in the news_posts table
|
||||
$num_comments = mysql_query("SELECT NumComments FROM {$posts_dbs[$type]} WHERE ID = {$_GET['id']};");
|
||||
$num_comments = mysql_fetch_assoc( $num_comments );
|
||||
$num_comments['NumComments'] = $num_comments['NumComments'] + 1;
|
||||
mysql_query("UPDATE {$posts_dbs[$type]} SET NumComments = {$num_comments['NumComments']} WHERE ID = {$_GET['id']};");
|
||||
}
|
||||
|
||||
//this function adds an entry to the guestbook database
|
||||
function AddGuestbookEntry()
|
||||
{
|
||||
$_POST['author'] = addslashes($_POST['author']); //make this form data database safe
|
||||
$_POST['authorweb'] = addslashes($_POST['authorweb']);
|
||||
$_POST['content'] = addslashes($_POST['content']);
|
||||
|
||||
//insert this new guestbook entry into the guestbook table
|
||||
mysql_query("INSERT INTO guestbook (Date,Author,AuthorWeb,Content) VALUES (UNIX_TIMESTAMP(NOW()),'{$_POST['author']}','{$_POST['authorweb']}','{$_POST['content']}');");
|
||||
}
|
||||
|
||||
//opens a connection to the database to be used by the rest of the script
|
||||
function InitializeDB()
|
||||
{
|
||||
$db_host = 'mysql17.powweb.com';
|
||||
$db_user = 'smramey';
|
||||
$db_pass = '7274j3';
|
||||
|
||||
//open the connection to the ria database
|
||||
$rlinks_db = mysql_connect($db_host, $db_user, $db_pass);
|
||||
|
||||
//make sure a db connection was made, if so, select the ria database
|
||||
if( !$rlinks_db ) { die( 'Could not connect to database: ' . mysql_error() ); }
|
||||
else { mysql_select_db('resourcelinks') or die( 'Could not select database: ' . mysql_error()); }
|
||||
}
|
||||
|
||||
//gets the latest news posts and returns an html-ized version of them
|
||||
function GetPosts($type,$page)
|
||||
{
|
||||
$posts_dbs = array( 'news' => 'news_posts',
|
||||
'requests' => 'requests_posts',
|
||||
'big_requests' => 'bigrequests_posts',
|
||||
'great_stuff' => 'greatstuff_posts',
|
||||
'austria_trip' => 'austriatrip_posts'
|
||||
);
|
||||
$files = array( 'news' => 'indextest.php',
|
||||
'requests' => 'prayer_updates.php',
|
||||
'big_requests' => 'prayer_updates.php',
|
||||
'great_stuff' => 'great_stuff.php',
|
||||
'austria_trip' => 'austria_trip.php'
|
||||
);
|
||||
|
||||
$max_posts = 7;
|
||||
$one_past_max = $max_posts + 1;
|
||||
$num_posts = 1;
|
||||
$start_post = $page ? ($page * $max_posts) : 0;
|
||||
$q_posts = mysql_query("SELECT * FROM {$posts_dbs[$type]} ORDER BY ID DESC LIMIT $start_post,$one_past_max;");
|
||||
|
||||
while( $num_posts <= $max_posts and $post = mysql_fetch_assoc($q_posts) )
|
||||
{
|
||||
$title = stripslashes($post['Title']);
|
||||
$author = stripslashes($post['Author']);
|
||||
$content = stripslashes($post['Content']);
|
||||
$date = date( "D, F d, Y \a\\t h:ia", $post['Date'] );
|
||||
$num_comments = $post['NumComments'];
|
||||
$id = $post['ID'];
|
||||
|
||||
$html .="
|
||||
<div align='left' class='item'>
|
||||
<div class='item_title'>$title</div>
|
||||
<div class='item_date'>
|
||||
by $author on $date
|
||||
</div>
|
||||
<div class='item_content'>
|
||||
$content
|
||||
<br /> <br />
|
||||
+ <a href='{$files[$type]}?type=$type&id=$id'>comments [$num_comments]</a>
|
||||
</div>
|
||||
</div>
|
||||
";
|
||||
|
||||
$num_posts++;
|
||||
}
|
||||
|
||||
if( $start_post > 0 or ($start_post == 0 and $post = mysql_fetch_assoc($q_posts)) )
|
||||
{
|
||||
if($start_post > 0) { $post = mysql_fetch_assoc($q_posts); }
|
||||
|
||||
$html .= "
|
||||
<div align='center' class='news_nav'>
|
||||
<table cellpadding='4' cellspacing='0' border='0' width='100%'>
|
||||
<tr>
|
||||
";
|
||||
|
||||
$newer_news = $page - 1;
|
||||
$older_news = $page + 1;
|
||||
|
||||
if($start_post != 0)
|
||||
{ $html .= "<td align='left'><a href='{$files[$type]}?type=$type&page=$newer_news'>next</a></td>"; }
|
||||
if( $post )
|
||||
{ $html .= "<td align='right'><a href='{$files[$type]}?type=$type&page=$older_news'>previous</a></td>"; }
|
||||
|
||||
$html .= "
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
";
|
||||
}
|
||||
|
||||
return($html);
|
||||
}
|
||||
|
||||
//gets the specified news post and display the comments
|
||||
function GetSinglePost($type,$id)
|
||||
{
|
||||
$posts_dbs = array( 'news' => 'news_posts',
|
||||
'requests' => 'requests_posts',
|
||||
'big_requests' => 'bigrequests_posts',
|
||||
'great_stuff' => 'greatstuff_posts',
|
||||
'austria_trip' => 'austriatrip_posts'
|
||||
);
|
||||
$files = array( 'news' => 'indextest.php',
|
||||
'requests' => 'prayer_updates.php',
|
||||
'big_requests' => 'prayer_updates.php',
|
||||
'great_stuff' => 'great_stuff.php',
|
||||
'austria_trip' => 'austria_trip.php'
|
||||
);
|
||||
$comments_dbs = array( 'news' => 'news_comments',
|
||||
'requests' => 'requests_comments',
|
||||
'big_requests' => 'bigrequests_comments',
|
||||
'great_stuff' => 'greatstuff_comments',
|
||||
'austria_trip' => 'austriatrip_comments'
|
||||
);
|
||||
|
||||
$q_posts = mysql_query("SELECT * FROM {$posts_dbs[$type]} WHERE ID = $id LIMIT 1;");
|
||||
$q_comments = mysql_query("SELECT * FROM {$comments_dbs[$type]} WHERE PostID = $id;");
|
||||
|
||||
$post = mysql_fetch_assoc($q_posts);
|
||||
|
||||
$title = stripslashes($post['Title']);
|
||||
$author = stripslashes($post['Author']);
|
||||
$content = stripslashes($post['Content']);
|
||||
$date = date( "D, F d, Y \a\\t h:ia", $post['Date'] );
|
||||
$num_comments = $post['NumComments'];
|
||||
$id = $post['ID'];
|
||||
|
||||
$html .="
|
||||
<div align='left' class='item'>
|
||||
<div class='item_title'>$title || <a href='{$files[$type]}'>return</a></div>
|
||||
<div class='item_date'>
|
||||
by $author on $date
|
||||
</div>
|
||||
<div class='item_content'>
|
||||
$content
|
||||
<br />
|
||||
<div class='sub_title'>comments</div>
|
||||
";
|
||||
|
||||
while( $comment = mysql_fetch_assoc($q_comments) )
|
||||
{
|
||||
$c_website = stripslashes($comment['AuthorWeb']);
|
||||
$c_author = stripslashes($comment['Author']);
|
||||
$c_content = stripslashes($comment['Content']);
|
||||
$c_date = date( "F d, Y \a\\t h:ia", $comment['Date'] );
|
||||
|
||||
if( $c_website != "" && $c_website != "http://" )
|
||||
{ $c_author = "<a href='$c_website'>$c_author</a>"; }
|
||||
|
||||
$html .= "
|
||||
<div class='comment'>
|
||||
<div class='comment_author'>comment by $c_author on $c_date</div>
|
||||
<div class='comment_content'>$c_content</div>
|
||||
</div>
|
||||
";
|
||||
}
|
||||
|
||||
$html .= "
|
||||
<div class='sub_title'>add a comment</div>
|
||||
<form action='{$files[$type]}?type=$type&id=$id' method='post' onsubmit=\"return Check_GB_Fields('author','content');\">
|
||||
<input type='hidden' name='cmd' id='cmd' value='addcomment' />
|
||||
name:<br />
|
||||
<input type='text' size='20' name='author' id='author' />
|
||||
<br />
|
||||
homepage:<br />
|
||||
<input type='text' size='40' name='authorweb' id='authorweb' value='http://' />
|
||||
<br />
|
||||
comment:
|
||||
<br /><textarea rows='4' cols='30' name='content' id='content'></textarea>
|
||||
<br />
|
||||
<input name='submit' type='submit' id='submit' value='submit' class='submit_button'
|
||||
onmouseover=\"javascript:this.style.background = '#999999';\"
|
||||
onmouseout=\"javascript:this.style.background = '#333333';\" />
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
";
|
||||
|
||||
return($html);
|
||||
}
|
||||
|
||||
//gets guestbook entries from database
|
||||
function GetGuestbook()
|
||||
{
|
||||
$max_entries = 7;
|
||||
$one_past_max = $max_entries + 1;
|
||||
$num_entries = 1;
|
||||
$start_entry = $_GET['page'] ? ($_GET['page'] * $max_entries) : 0;
|
||||
$q_entries = mysql_query("SELECT * FROM guestbook ORDER BY ID DESC LIMIT $start_entry,$one_past_max;");
|
||||
|
||||
$html = "
|
||||
<div class='item' align='left'>
|
||||
<div class='sub_title'>add a guestbook entry</div>
|
||||
<form action='guestbook.php' method='post' onsubmit=\"return Check_GB_Fields('author','content');\">
|
||||
<input type='hidden' name='cmd' id='cmd' value='addentry' />
|
||||
name:<br />
|
||||
<input type='text' size='20' name='author' id='author' />
|
||||
<br />
|
||||
homepage:<br />
|
||||
<input type='text' size='40' name='authorweb' id='authorweb' value='http://' />
|
||||
<br />
|
||||
message:
|
||||
<br /><textarea rows='4' cols='30' name='content' id='content'></textarea>
|
||||
<br />
|
||||
<input name='submit' type='submit' id='submit' value='submit' class='submit_button'
|
||||
onmouseover=\"javascript:this.style.background = '#999999';\"
|
||||
onmouseout=\"javascript:this.style.background = '#333333';\" />
|
||||
</form>
|
||||
</div>
|
||||
<div class='sub_title'>guestbook entries</div>
|
||||
";
|
||||
|
||||
while( $num_entries <= $max_entries and $entry = mysql_fetch_assoc($q_entries) )
|
||||
{
|
||||
$author = stripslashes($entry['Author']);
|
||||
$authorweb = stripslashes($entry['AuthorWeb']);
|
||||
$content = stripslashes($entry['Content']);
|
||||
$date = date( "F d, Y \a\\t h:ia", $entry['Date'] );
|
||||
|
||||
if( $authorweb != "" && $authorweb != "http://" )
|
||||
{ $author = "<a href='$authorweb'>$author</a>"; }
|
||||
|
||||
$html .="
|
||||
<div class='comment'>
|
||||
<div class='comment_author'>comment by $author on $date</div>
|
||||
<div class='comment_content'>$content</div>
|
||||
</div>
|
||||
";
|
||||
|
||||
$num_entries++;
|
||||
}
|
||||
|
||||
if( $start_entry > 0 or ($start_post == 0 and $entry = mysql_fetch_assoc($q_entries)) )
|
||||
{
|
||||
if($start_entry > 0) { $entry = mysql_fetch_assoc($q_entries); }
|
||||
|
||||
$html .= "
|
||||
<div align='center' class='guestbook_nav'>
|
||||
<table cellpadding='4' cellspacing='0' border='0' width='100%'>
|
||||
<tr>
|
||||
";
|
||||
|
||||
$newer_entries = $_GET['page'] - 1;
|
||||
$older_entries = $_GET['page'] + 1;
|
||||
|
||||
if($start_entry != 0)
|
||||
{ $html .= "<td align='left'><a href='guestbook.php?page=$newer_entries'>newer entries</a></td>"; }
|
||||
if( $entry )
|
||||
{ $html .= "<td align='right'><a href='guestbook.php?page=$older_entries'>older entries</a></td>"; }
|
||||
|
||||
$html .= "
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
";
|
||||
}
|
||||
|
||||
return($html);
|
||||
}
|
||||
|
||||
//displays a single album
|
||||
function DisplayAlbum()
|
||||
{
|
||||
$root = '../pictures_root';
|
||||
$description = addslashes(file_get_contents("$root/{$_GET['album']}/description.txt"));
|
||||
|
||||
$album = array( 'Folder' => "{$_GET['album']}",
|
||||
'Title' => "{$_GET['album']}",
|
||||
'Description' => "$description"
|
||||
);
|
||||
|
||||
$picture_counter = 0;
|
||||
$first_picture = "";
|
||||
$thumb_prefix = "thumb_";
|
||||
|
||||
print <<<END
|
||||
|
||||
<div class='item_title'>{$album['Title']} || <a href='through_the-lens.php'>return to album index</a></div>
|
||||
<div class='item_content'>
|
||||
{$album['Description']}
|
||||
<script language='javascript' type='text/javascript'>
|
||||
<!--
|
||||
function Change_Pic( picture )
|
||||
{
|
||||
var location = "$root/{$album['Folder']}";
|
||||
if( /long_/.test(picture) )
|
||||
{
|
||||
Landscape_Picture( location + '/' + picture );
|
||||
}
|
||||
else
|
||||
{
|
||||
var main_image = 'main_image';
|
||||
var larger_image_HTML = "+ <a href=\"javascript:News_Picture('" + location + "/" + picture + "');\">enlarge picture</a> +";
|
||||
|
||||
document.getElementById("loading_blinker").style.visibility = "visible";
|
||||
document.getElementById("larger_picture").innerHTML = larger_image_HTML;
|
||||
document[ main_image ].src = location + "/" + picture;
|
||||
}
|
||||
}
|
||||
function Change_Negative( set )
|
||||
{
|
||||
var new_innerhtml = "<table cellpadding=\"0\" cellspacing=\"10\">\\n<tr>";
|
||||
var start_at = set * 10 - 10;
|
||||
set = set * 10 - 1;
|
||||
|
||||
for( start_at=start_at; start_at<=set; start_at++ )
|
||||
{
|
||||
if( image[start_at] )
|
||||
{
|
||||
var temp_img = image[start_at].replace("$thumb_prefix", "" );
|
||||
new_innerhtml += "<td><a href=\"javascript:Change_Pic( '" + temp_img + "' );\"><img src=\"$root/{$album['Folder']}/" + image[start_at] + "\" border=\"0\" height=\"60\" /></a></td>";
|
||||
}
|
||||
}
|
||||
|
||||
new_innerhtml += "</tr>\\n</table>";
|
||||
|
||||
document.getElementById( "negative" ).innerHTML = new_innerhtml;
|
||||
document.getElementById( "current_strip" ).innerHTML = (set + 1) / 10;
|
||||
}
|
||||
|
||||
var image = new Array();
|
||||
END;
|
||||
|
||||
$album_folder = opendir("$root/{$album['Folder']}");
|
||||
while( ($picture = readdir($album_folder)) !== false )
|
||||
{
|
||||
if( stripos($picture, "$thumb_prefix") !== false )
|
||||
{
|
||||
print "\n\t\t\t\t\t\t\t\t image[{$picture_counter}] = '{$picture}';";
|
||||
$picture_counter++;
|
||||
}
|
||||
if( $picture_counter == 0 ) { $first_picture = $picture; }
|
||||
}
|
||||
closedir($album_folder);
|
||||
|
||||
print <<<END
|
||||
|
||||
//-->
|
||||
</script>
|
||||
<div class='negative_index' id='negative_index' align='center'>
|
||||
END;
|
||||
|
||||
$num_negatives = ceil($picture_counter / 10);
|
||||
$this_negative = 1;
|
||||
while( $this_negative < $num_negatives )
|
||||
{
|
||||
print "
|
||||
<a href=\"javascript:Change_Negative('{$this_negative}');\">{$this_negative}</a> -";
|
||||
|
||||
$this_negative++;
|
||||
}
|
||||
|
||||
|
||||
print <<<END
|
||||
|
||||
<a href="javascript:Change_Negative('{$this_negative}');">{$this_negative}</a>
|
||||
| page: <span id='current_strip'>1</span>
|
||||
</div>
|
||||
<div class='negative' id='negative'>
|
||||
<table cellpadding='0' cellspacing='10'>
|
||||
<tr>
|
||||
END;
|
||||
|
||||
print <<<END
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<br />
|
||||
<span id='loading_blinker' style='color:#990000;'>>>> Loading picture...</span>
|
||||
<div align='center' id='larger_picture'>+ <a href="javascript:News_Picture('');">enlarge picture</a> +</div>
|
||||
<div align='center'><img src='' name='main_image' class='main_image' id='main_image' onload="document.getElementById('loading_blinker').style.visibility='hidden';" /></div>
|
||||
<script language='javascript' type='text/javascript'>
|
||||
<!--
|
||||
Change_Negative('1');
|
||||
Change_Pic(image[0].replace("$thumb_prefix", "" ));
|
||||
//-->
|
||||
</script>
|
||||
|
||||
</div>
|
||||
END;
|
||||
}
|
||||
|
||||
//displays all folders as albums in a certain root folder
|
||||
function DisplayAlbumIndex()
|
||||
{
|
||||
$root = '../pictures_root';
|
||||
|
||||
$albums = scandir($root); //get contents of root folder, holding all album folders
|
||||
if($albums)
|
||||
{
|
||||
$album_counter = 0;
|
||||
|
||||
print "<table cellpadding='10' cellspacing='0' border='0'>\n";
|
||||
print "<tr>\n";
|
||||
|
||||
foreach($albums as $folder) //step through root folder
|
||||
{
|
||||
if( $folder == '.' or $folder == '..' )
|
||||
{ continue; }
|
||||
|
||||
if($album_counter == 2)
|
||||
{
|
||||
print "</tr>\n<tr>\n";
|
||||
$album_counter = 0;
|
||||
}
|
||||
|
||||
$pictures = array();
|
||||
$h_album = opendir("$root/$folder"); //open album folder and get two pictures
|
||||
if($h_album)
|
||||
{
|
||||
$c = 0;
|
||||
while( ($c < 2) && (false !== ($picture = readdir($h_album))) )
|
||||
{
|
||||
if(0 === stripos($picture,'thumb_'))
|
||||
{
|
||||
$pictures[$c] = $picture;
|
||||
$c++;
|
||||
}
|
||||
}
|
||||
|
||||
closedir($h_album);
|
||||
}
|
||||
|
||||
print "<td>\n";
|
||||
print "<div class='item_title'>$folder</div>\n";
|
||||
print "<div class='item_content'>\n";
|
||||
print "<img src='$root/$folder/{$pictures[0]}' height='60' /> <img src='$root/$folder/{$pictures[1]}' height='60' /><br />\n";
|
||||
print "<a href='through_the-lens.php?album=$folder'>+ view album</a>\n";
|
||||
print "</div>";
|
||||
print "</td>\n";
|
||||
|
||||
$album_counter++;
|
||||
}
|
||||
|
||||
print "</tr>\n";
|
||||
print "</table>\n\n";
|
||||
}
|
||||
}
|
||||
|
||||
//this function traverses a folder and returns html describing what it finds
|
||||
function TraverseFolders( $p_path )
|
||||
{
|
||||
$rootfolder = opendir( $p_path ); //open folder passed to function
|
||||
$back_paths = explode("/",$p_path);
|
||||
$folderhtml = "<div class='item_title'>"; //variable that will hold all the HTML about the folder
|
||||
$cum_path = '../projects_folders';
|
||||
|
||||
foreach($back_paths as $path)
|
||||
{
|
||||
if( $path == '..' ) { continue; }
|
||||
if( $path != 'projects_folders' )
|
||||
{ $cum_path .= "/$path"; }
|
||||
|
||||
if( $cum_path != $p_path )
|
||||
{ $folderhtml .= " :: <a href='studies_projects.php?folder=$cum_path'>$path</a>"; }
|
||||
}
|
||||
|
||||
$folderhtml .= "</div>\n<div class='item_content'>";
|
||||
|
||||
while( $element = readdir( $rootfolder ) ) //one by one, set $element to a file or folder inside the passed folder
|
||||
{
|
||||
if( ($element != '.') and ($element != '..') ) //ignore current and parent folders
|
||||
{
|
||||
if( is_dir("$p_path/$element") ) //if $element is a folder, call this function recursively and create HTML for that folder
|
||||
{
|
||||
clearstatcache(); //make sure each is_dir call is not using cached information from last is_dir check
|
||||
$folderhtml .= "
|
||||
<div class='sub_title'>
|
||||
<img src='../php_graphics/folder.gif' border='0' />
|
||||
<br />
|
||||
<a href='studies_projects.php?folder=$p_path/$element'>$element</a>
|
||||
</div>\n";
|
||||
}
|
||||
else
|
||||
{ $folderhtml .= "+ <a href='$p_path/$element'>$element</a>\n<br />\n"; }
|
||||
}
|
||||
}
|
||||
|
||||
closedir( $rootfolder );
|
||||
|
||||
$folderhtml .= "
|
||||
</div>";
|
||||
|
||||
return $folderhtml;
|
||||
}
|
||||
?>
|
||||
97
rlinks3/guestbook.php
Executable file
@@ -0,0 +1,97 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
|
||||
<meta name="generator" content="Adobe GoLive" />
|
||||
<title>Welcome to the Home Page of ResourceLinks</title>
|
||||
<link href="css/basic.css" rel="stylesheet" type="text/css" media="all" />
|
||||
<link href="resourcelinks_php.css" rel="stylesheet" type="text/css" media="all" />
|
||||
<script language='javascript' type='text/javascript' src='rlinks.js'></script>
|
||||
<style type="text/css" media="screen"><!--
|
||||
#missionstatement { height: 24px; width: 470px; left: 70px; top: 37px; position: absolute; visibility: visible; }
|
||||
#rlinkslogo { height: 83px; width: 392px; left: 10px; top: 37px; position: absolute; visibility: visible; }
|
||||
#menu { height: 400px; width: 190px; left: 410px; top: 120px; position: absolute; visibility: visible; }
|
||||
#layer5 { height: 40px; width: 310px; left: 40px; top: 114px; position: absolute; visibility: visible; }
|
||||
#layer1 { height: 456px; width: 270px; left: 500px; top: 54px; position: absolute; visibility: visible; }
|
||||
#leftpicture { background-color: #fcffed; height: 580px; width: 830px; left: 0; top: 10px; position: absolute; visibility: visible; }
|
||||
--></style>
|
||||
</head>
|
||||
|
||||
<body bgcolor="#fcffed">
|
||||
<div id="leftpicture">
|
||||
<div id="layer5">
|
||||
<div style="position:relative;width:300px;height:34px;-adbe-g:p;">
|
||||
<div style="position:absolute;top:0px;left:64px;width:192px;height:32px;-adbe-c:c">
|
||||
<div align="center">
|
||||
<em><font face="Georgia, Times New Roman, Times, serif">Guestbook</font><font color="#fcfcfc" face="Georgia, Times New Roman, Times, serif">
|
||||
<hr />
|
||||
</font></em></div>
|
||||
</div>
|
||||
<?php
|
||||
include "functions.php";
|
||||
|
||||
//open the database connection
|
||||
InitializeDB();
|
||||
|
||||
if( $_POST['cmd'] == 'addentry' )
|
||||
{ AddGuestbookEntry(); }
|
||||
|
||||
print GetGuestbook();
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div id="layer1">
|
||||
<img src="rlinkpagephotos/sdom_small.jpg" alt="" width="308" height="464" border="0" /></div>
|
||||
</div>
|
||||
<div style="position:relative;width:946px;height:590px;-adbe-g:p;"></div>
|
||||
<div id="rlinkslogo">
|
||||
<img src="rlinkpagephotos/resourcelinkslogogif" alt="" height="83" width="371" border="0" /></div>
|
||||
<div id="menu">
|
||||
<table width="130" border="0" cellspacing="2" cellpadding="7" align="center">
|
||||
<tr>
|
||||
<td align="center" bgcolor="#faf0e6"><em><font size="-1" face="Georgia, Times New Roman, Times, serif"><a href="index.html">Home</a></font></em></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" bgcolor="#faf0e6"><em><font size="-1" face="Georgia, Times New Roman, Times, serif"><a href="rlinkspages/wo_we_are.html" target="_blank">Who we are</a></font></em></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" bgcolor="#faf0e6"><em><font size="-1" face="Georgia, Times New Roman, Times, serif"><a href="rlinkspages/vision_for_ministry.html" target="_blank">Vision for Ministry</a></font></em></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" bgcolor="#faf0e6"><em><font size="-1" face="Georgia, Times New Roman, Times, serif"><a href="rlinkspages/foundational_beliefs.html" target="_blank">Foundational Beliefs</a></font></em></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" bgcolor="#faf0e6"><em><font size="-1" face="Georgia, Times New Roman, Times, serif"><a href="rlinkspages/directors.html" target="_blank">Directors</a></font></em></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" bgcolor="#faf0e6"><em><font size="-1" face="Georgia, Times New Roman, Times, serif"><a href="rlinkspages/how_to_contribute.html" target="_blank">How to Contribute</a></font></em></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" bgcolor="#faf0e6"><em><font size="-1" face="Georgia, Times New Roman, Times, serif">Prayer Updates</font></em></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" bgcolor="#faf0e6"><em><font size="-1" face="Georgia, Times New Roman, Times, serif">Articles/Projects/Links</font></em></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" bgcolor="#faf0e6"><em><font size="-1" face="Georgia, Times New Roman, Times, serif">Our World in Pictures</font></em></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" bgcolor="#faf0e6"><em><font size="-1" face="Georgia, Times New Roman, Times, serif">Guestbook</font></em></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" bgcolor="#faf0e6"><font size="-1" color="#006400">Click here to request our monthly newsletter</font></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div id="missionstatement">
|
||||
<div style="position:relative;width:450px;height:24px;-adbe-g:p;">
|
||||
<div colspan="3" style="position:absolute;top:0px;left:32px;width:416px;height:16px;-adbe-c:c">
|
||||
<font size="-1" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"><i>Equipping the Man...to Build the Church... to Change the Nations</i></font></div>
|
||||
</div>
|
||||
</div>
|
||||
<p></p>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
118
rlinks3/index.php
Executable file
@@ -0,0 +1,118 @@
|
||||
<?php
|
||||
|
||||
include "functions.php";
|
||||
include "admin.php";
|
||||
|
||||
//open the database connection
|
||||
InitializeDB();
|
||||
|
||||
SetAdminCookie(VerifyUser());
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
|
||||
<meta name="generator" content="Adobe GoLive" />
|
||||
<title>Welcome to the Home Page of ResourceLinks</title>
|
||||
<link href="css/basic.css" rel="stylesheet" type="text/css" media="all" />
|
||||
<link href="resourcelinks_php.css" rel="stylesheet" type="text/css" media="all" />
|
||||
<script language='javascript' type='text/javascript' src='rlinks.js'></script>
|
||||
<style type="text/css" media="screen"><!--
|
||||
#missionstatement { height: 24px; width: 470px; left: 70px; top: 37px; position: absolute; visibility: visible; }
|
||||
#rlinkslogo { height: 83px; width: 392px; left: 10px; top: 37px; position: absolute; visibility: visible; }
|
||||
#menu { height: 400px; width: 190px; left: 410px; top: 120px; position: absolute; visibility: visible; }
|
||||
#layer5 { height: 40px; width: 310px; left: 40px; top: 114px; position: absolute; visibility: visible; }
|
||||
#layer1 { height: 456px; width: 270px; left: 500px; top: 54px; position: absolute; visibility: visible; }
|
||||
#leftpicture { background-color: #fcffed; height: 580px; width: 830px; left: 0; top: 10px; position: absolute; visibility: visible; }
|
||||
--></style>
|
||||
</head>
|
||||
|
||||
<body bgcolor="#fcffed">
|
||||
<div id="leftpicture">
|
||||
<div id="layer5">
|
||||
<div style="position:relative;width:300px;height:34px;-adbe-g:p;">
|
||||
<div style="position:absolute;top:0px;left:64px;width:192px;height:32px;-adbe-c:c">
|
||||
<div align="center">
|
||||
<em><font face="Georgia, Times New Roman, Times, serif">The Latest.....</font><font color="#fcfcfc" face="Georgia, Times New Roman, Times, serif">
|
||||
<hr />
|
||||
</font></em></div>
|
||||
</div>
|
||||
<?php
|
||||
//commands to execute before script
|
||||
if($_POST['cmd'] == 'addnews')
|
||||
{ $report = AddNewsPost(); }
|
||||
else if($_POST['cmd'] == 'editnews')
|
||||
{ $report = EditNewsPost(); }
|
||||
else if($_POST['cmd'] == 'deletenews')
|
||||
{ $report = DeleteNewsPost(); }
|
||||
else if($_POST['cmd'] == 'addcomment')
|
||||
{ AddComment(); }
|
||||
|
||||
//page requests
|
||||
if($_GET['page'] == 'admin')
|
||||
{ print Admin($report); }
|
||||
else if( isset($_GET['id']) )
|
||||
{ print GetSingleNewsPost(); }
|
||||
else
|
||||
{ print GetNews(); }
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div id="layer1">
|
||||
<img src="rlinkpagephotos/sdom_small.jpg" alt="" width="316" height="499" border="0" /></div>
|
||||
</div>
|
||||
<div style="position:relative;width:946px;height:590px;-adbe-g:p;"></div>
|
||||
<div id="rlinkslogo">
|
||||
<img src="rlinkpagephotos/resourcelinkslogogif" alt="" height="83" width="371" border="0" /></div>
|
||||
<div id="menu">
|
||||
<table width="150" border="0" cellspacing="2" cellpadding="7" align="center">
|
||||
<tr>
|
||||
<td align="center" bgcolor="#faf0e6"><em><font size="-1" face="Georgia, Times New Roman, Times, serif"><a href="index.php">Home</a></font></em></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" bgcolor="#faf0e6"><em><font size="-1" face="Georgia, Times New Roman, Times, serif"><a href="rlinkspages/wo_we_are.html">Who we are</a></font></em></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" bgcolor="#faf0e6"><em><font size="-1" face="Georgia, Times New Roman, Times, serif"><a href="rlinkspages/vision_for_ministry.html">Vision for Ministry</a></font></em></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" bgcolor="#faf0e6"><em><font size="-1" face="Georgia, Times New Roman, Times, serif"><a href="rlinkspages/foundational_beliefs.html">Foundational Beliefs</a></font></em></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" bgcolor="#faf0e6"><em><font size="-1" face="Georgia, Times New Roman, Times, serif"><a href="rlinkspages/directors.html">Directors</a></font></em></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" bgcolor="#faf0e6"><em><font size="-1" face="Georgia, Times New Roman, Times, serif"><a href="rlinkspages/how-to-contribute.html">How to Contribute</a></font></em></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" bgcolor="#faf0e6"><em><font size="-1" face="Georgia, Times New Roman, Times, serif">Prayer Updates</font></em></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" bgcolor="#faf0e6"><em><font size="-1" face="Georgia, Times New Roman, Times, serif">Articles/Projects</font></em></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" bgcolor="#faf0e6"><em><font size="-1" face="Georgia, Times New Roman, Times, serif"><a href="linksstuff/linkframes.html">Links</a></font></em></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" bgcolor="#faf0e6"><em><font size="-1" face="Georgia, Times New Roman, Times, serif"><a href="rlinkspages/through_the-lens.html">Through the Lens</a></font></em></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" bgcolor="#faf0e6"><em><font size="-1" face="Georgia, Times New Roman, Times, serif"><a href="guestbook.php">Guestbook</a></font></em></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" bgcolor="#faf0e6"><font size="-1" color="#006400">Click <a href="prayer_let_signup/newplsignup.html">here</a> to request our monthly newsletter</font></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div id="missionstatement">
|
||||
<div style="position:relative;width:450px;height:24px;-adbe-g:p;">
|
||||
<div colspan="3" style="position:absolute;top:0px;left:32px;width:416px;height:16px;-adbe-c:c">
|
||||
<font size="-1" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"><i>Equipping the Man...to Build the Church... to Change the Nations</i></font></div>
|
||||
</div>
|
||||
</div>
|
||||
<p></p>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
129
rlinks3/indextest.php
Executable file
@@ -0,0 +1,129 @@
|
||||
<?php
|
||||
|
||||
include "functions.php";
|
||||
include "admin.php";
|
||||
|
||||
//open the database connection
|
||||
InitializeDB();
|
||||
|
||||
SetAdminCookie(VerifyUser());
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
|
||||
<meta name="generator" content="Adobe GoLive" />
|
||||
<title>Welcome to the Home Page of ResourceLinks</title>
|
||||
<link href="css/basic.css" rel="stylesheet" type="text/css" media="all" />
|
||||
<link href="resourcelinks_php.css" rel="stylesheet" type="text/css" media="all" />
|
||||
<script language='javascript' type='text/javascript' src='rlinks.js'></script>
|
||||
<style type="text/css" media="screen"><!--
|
||||
#missionstatement { height: 24px; width: 470px; left: 70px; top: 37px; position: absolute; visibility: visible; }
|
||||
#rlinkslogo { height: 83px; width: 392px; left: 10px; top: 37px; position: absolute; visibility: visible; }
|
||||
#menu { height: 410px; width: 190px; left: 410px; top: 120px; position: absolute; visibility: visible; }
|
||||
#layer1 { height: 28px; width: 330px; left: 40px; top: 130px; position: absolute; visibility: visible; }
|
||||
--></style>
|
||||
</head>
|
||||
|
||||
<body bgcolor="#fcffed">
|
||||
<div id="layer1">
|
||||
<div style="position:relative;width:305px;height:33px;-adbe-g:p;">
|
||||
<div style="position:absolute;top:0px;left:16px;width:288px;height:32px;-adbe-c:c">
|
||||
<div align="center">
|
||||
<em><font face="Georgia, Times New Roman, Times, serif">The Latest.....</font><font color="#fcfcfc" face="Georgia, Times New Roman, Times, serif">
|
||||
<hr width="60%" />
|
||||
</font></em></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div style='position:absolute;left:488px;top:620px;z-index:20'>
|
||||
<img src='php_graphics/red_arrow.jpg' border='0' />
|
||||
<a href='rlinkspages/austria_trip.php'><img src='php_graphics/austriatrip_btn.jpg' border='0' /></a>
|
||||
</div>
|
||||
<div style="position:relative;width:1068px;height:6000px;-adbe-g:m;">
|
||||
<div style="position:absolute;top:64px;left:416px;width:448px;height:528px;">
|
||||
<img src="rlinkpagephotos/wkirchen2.jpg" alt="" width="448" height="528" border="0" /></div>
|
||||
<div style="position:absolute;top:144px;left:32px;width:340px">
|
||||
<?php
|
||||
|
||||
//commands to execute before script
|
||||
if($_POST['cmd'] == 'addpost')
|
||||
{ $report = AddPost($_POST['type']); }
|
||||
else if($_POST['cmd'] == 'editpost')
|
||||
{ $report = EditPost($_POST['type']); }
|
||||
else if($_POST['cmd'] == 'deletepost')
|
||||
{ $report = DeletePost($_POST['type']); }
|
||||
else if($_POST['cmd'] == 'addcomment')
|
||||
{ AddComment('news'); }
|
||||
|
||||
//page requests
|
||||
if($_GET['page'] == 'admin')
|
||||
{ print Admin($report); }
|
||||
else if( isset($_GET['id']) )
|
||||
{ print GetSinglePost('news',$_GET['id']); }
|
||||
else
|
||||
{ print GetPosts('news',$_GET['page']); }
|
||||
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<div id="rlinkslogo">
|
||||
<img src="rlinkpagephotos/resourcelinkslogogif" alt="" height="83" width="371" border="0" /></div>
|
||||
<div id="menu">
|
||||
<table width="150" border="0" cellspacing="2" cellpadding="7" align="center">
|
||||
<tr>
|
||||
<td align="center" bgcolor="#faf0e6"><em><font size="-1" face="Georgia, Times New Roman, Times, serif"><a href="indextest.php">Home</a></font></em></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" bgcolor="#faf0e6"><em><font size="-1" face="Georgia, Times New Roman, Times, serif"><a href="rlinkspages/wo_we_are.html">Who we are</a></font></em></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" bgcolor="#faf0e6"><em><font size="-1" face="Georgia, Times New Roman, Times, serif"><a href="rlinkspages/vision_for_ministry.html">Vision for Ministry</a></font></em></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" bgcolor="#faf0e6"><em><font size="-1" face="Georgia, Times New Roman, Times, serif"><a href="rlinkspages/foundational_beliefs.html">Foundational Beliefs</a></font></em></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" bgcolor="#faf0e6"><em><font size="-1" face="Georgia, Times New Roman, Times, serif"><a href="rlinkspages/directors.html">Directors</a></font></em></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" bgcolor="#faf0e6"><em><font size="-1" face="Georgia, Times New Roman, Times, serif"><a href="rlinkspages/how-to-contribute.html">How to Contribute</a></font></em></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" bgcolor="#faf0e6"><em><font size="-1" face="Georgia, Times New Roman, Times, serif"><a href="rlinkspages/prayer_updates.php">Prayer Updates</a></font></em></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" bgcolor="#faf0e6"><em><font size="-1" face="Georgia, Times New Roman, Times, serif"><a href="rlinkspages/studies_projects.php">Studies/Projects</a></font></em></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" bgcolor="#faf0e6"><em><font size="-1" face="Georgia, Times New Roman, Times, serif"><a href="rlinkspages/great_stuff.php">Great Stuff</a></font></em></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" bgcolor="#faf0e6"><em><font size="-1" face="Georgia, Times New Roman, Times, serif"><a href="linksstuff/linkframes.html">Links</a></font></em></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" bgcolor="#faf0e6"><em><font size="-1" face="Georgia, Times New Roman, Times, serif"><a href="rlinkspages/through_the-lens.php">Through the Lens</a></font></em></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" bgcolor="#faf0e6"><em><font size="-1" face="Georgia, Times New Roman, Times, serif"><a href="guestbook.php">Guestbook</a></font></em></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="center" bgcolor="#faf0e6"><font size="-1" color="#006400">Click <a href="prayer_let_signup/newplsignup.html">here</a> to request our monthly newsletter</font></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div id="missionstatement">
|
||||
<div style="position:relative;width:450px;height:24px;-adbe-g:p;">
|
||||
<div colspan="3" style="position:absolute;top:0px;left:32px;width:416px;height:16px;-adbe-c:c">
|
||||
<font size="-1" face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular"><i>Equipping the Man...to Build the Church... to Change the Nations</i></font></div>
|
||||
</div>
|
||||
</div>
|
||||
<p></p>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
|
||||
|
||||
BIN
rlinks3/php_graphics/austriatrip_btn.jpg
Executable file
|
After Width: | Height: | Size: 2.2 KiB |
BIN
rlinks3/php_graphics/austriatrip_btn.png
Executable file
|
After Width: | Height: | Size: 43 KiB |
BIN
rlinks3/php_graphics/blog_btn.jpg
Executable file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
rlinks3/php_graphics/blog_btn.png
Executable file
|
After Width: | Height: | Size: 47 KiB |
BIN
rlinks3/php_graphics/folder.gif
Executable file
|
After Width: | Height: | Size: 2.9 KiB |
BIN
rlinks3/php_graphics/red_arrow.jpg
Executable file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
rlinks3/php_graphics/red_arrow.png
Executable file
|
After Width: | Height: | Size: 38 KiB |
BIN
rlinks3/pictures_root/Copy (2) of Wien Trip/114_1456.JPG
Executable file
|
After Width: | Height: | Size: 65 KiB |
BIN
rlinks3/pictures_root/Copy (2) of Wien Trip/114_1465.JPG
Executable file
|
After Width: | Height: | Size: 51 KiB |
BIN
rlinks3/pictures_root/Copy (2) of Wien Trip/114_1486.JPG
Executable file
|
After Width: | Height: | Size: 99 KiB |
6
rlinks3/pictures_root/Copy (2) of Wien Trip/description.txt
Executable file
@@ -0,0 +1,6 @@
|
||||
This is the description for the Wien Trip album.This is the description for the Wien Trip album.This is the description for the Wien Trip album.This is the description for the Wien Trip album.
|
||||
This is the description for the Wien Trip album.
|
||||
This is the description for the Wien Trip album.
|
||||
This is the description for the Wien Trip album.
|
||||
This is the description for the Wien Trip album.
|
||||
This is the description for the Wien Trip album.
|
||||
BIN
rlinks3/pictures_root/Copy (2) of Wien Trip/thumb_114_1456.JPG
Executable file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
rlinks3/pictures_root/Copy (2) of Wien Trip/thumb_114_1465.JPG
Executable file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
rlinks3/pictures_root/Copy (2) of Wien Trip/thumb_114_1486.JPG
Executable file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
rlinks3/pictures_root/Copy (3) of Wien Trip/114_1456.JPG
Executable file
|
After Width: | Height: | Size: 65 KiB |
BIN
rlinks3/pictures_root/Copy (3) of Wien Trip/114_1465.JPG
Executable file
|
After Width: | Height: | Size: 51 KiB |
BIN
rlinks3/pictures_root/Copy (3) of Wien Trip/114_1486.JPG
Executable file
|
After Width: | Height: | Size: 99 KiB |
6
rlinks3/pictures_root/Copy (3) of Wien Trip/description.txt
Executable file
@@ -0,0 +1,6 @@
|
||||
This is the description for the Wien Trip album.This is the description for the Wien Trip album.This is the description for the Wien Trip album.This is the description for the Wien Trip album.
|
||||
This is the description for the Wien Trip album.
|
||||
This is the description for the Wien Trip album.
|
||||
This is the description for the Wien Trip album.
|
||||
This is the description for the Wien Trip album.
|
||||
This is the description for the Wien Trip album.
|
||||
BIN
rlinks3/pictures_root/Copy (3) of Wien Trip/thumb_114_1456.JPG
Executable file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
rlinks3/pictures_root/Copy (3) of Wien Trip/thumb_114_1465.JPG
Executable file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
rlinks3/pictures_root/Copy (3) of Wien Trip/thumb_114_1486.JPG
Executable file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
rlinks3/pictures_root/Copy of Wien Trip/114_1456.JPG
Executable file
|
After Width: | Height: | Size: 65 KiB |
BIN
rlinks3/pictures_root/Copy of Wien Trip/114_1465.JPG
Executable file
|
After Width: | Height: | Size: 51 KiB |
BIN
rlinks3/pictures_root/Copy of Wien Trip/114_1486.JPG
Executable file
|
After Width: | Height: | Size: 99 KiB |
6
rlinks3/pictures_root/Copy of Wien Trip/description.txt
Executable file
@@ -0,0 +1,6 @@
|
||||
This is the description for the Wien Trip album.This is the description for the Wien Trip album.This is the description for the Wien Trip album.This is the description for the Wien Trip album.
|
||||
This is the description for the Wien Trip album.
|
||||
This is the description for the Wien Trip album.
|
||||
This is the description for the Wien Trip album.
|
||||
This is the description for the Wien Trip album.
|
||||
This is the description for the Wien Trip album.
|
||||
BIN
rlinks3/pictures_root/Copy of Wien Trip/thumb_114_1456.JPG
Executable file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
rlinks3/pictures_root/Copy of Wien Trip/thumb_114_1465.JPG
Executable file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
rlinks3/pictures_root/Copy of Wien Trip/thumb_114_1486.JPG
Executable file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
rlinks3/pictures_root/Wien Trip/114_1456.JPG
Executable file
|
After Width: | Height: | Size: 65 KiB |
BIN
rlinks3/pictures_root/Wien Trip/114_1465.JPG
Executable file
|
After Width: | Height: | Size: 51 KiB |
BIN
rlinks3/pictures_root/Wien Trip/114_1486.JPG
Executable file
|
After Width: | Height: | Size: 99 KiB |
6
rlinks3/pictures_root/Wien Trip/description.txt
Executable file
@@ -0,0 +1,6 @@
|
||||
This is the description for the Wien Trip album.This is the description for the Wien Trip album.This is the description for the Wien Trip album.This is the description for the Wien Trip album.
|
||||
This is the description for the Wien Trip album.
|
||||
This is the description for the Wien Trip album.
|
||||
This is the description for the Wien Trip album.
|
||||
This is the description for the Wien Trip album.
|
||||
This is the description for the Wien Trip album.
|
||||
BIN
rlinks3/pictures_root/Wien Trip/thumb_114_1456.JPG
Executable file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
rlinks3/pictures_root/Wien Trip/thumb_114_1465.JPG
Executable file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
rlinks3/pictures_root/Wien Trip/thumb_114_1486.JPG
Executable file
|
After Width: | Height: | Size: 1.8 KiB |