All pastes #375980 Raw Edit

Anonymous

public text v1 · immutable
#375980 ·published 2007-02-28 19:31 UTC
rendered paste body
<?
// ActionScript Category
if ( category == "1" ) {
echo 'ActionScript is a programming language, primarily used to develop software in Adobe Flash. It can be used to add interactivity to animations, or to create fully fledged games. The possiblitys can stretch as far as you want them to. It has a syntax very similar to JavaScript.';
echo '<ul>';
echo '<li><a href="http://www.dannyisonfire.com.com/tutorials.php?category=1&amp;tutorial=1">Mouse Avoider</a></li>';
echo '</ul>';
echo 'Another great site for ActionScript tutorials is <a href="http://www.actionscript.org" target="_blank">ActionScript.org</a>';
}
// ActionScript Tutorials
if ( category == "1" and tutorial == "1" ) {
require("http://www.dannyisonfire.com/tutorials/actionscript/mouseavoider.php");
}
// CSS Category
if ( category == "2" ) {
echo 'CSS stands for Cascading Style Sheets, and is used to style both HTML and XHTML documents. The great thing about CSS, is that it allows coders to seperate the general layout of a website, from the style and appearance of it. It gives both the author of the website, and the audience a much bigger say in how the site is displayed.';
echo '<ul>';
echo '<li><a href="http://www.dannyisonfire.com.com/tutorials.php?category=2&amp;tutorial=1">Manipulating Links</a></li>';
echo '</ul>';
echo 'Another great site for CSS tutorials is <a href="http://www.spoono.com" target="_blank">Spoono.com</a>';
}
// CSS Tutorials
if ( category == "2" and tutorial == "1" ) {
require("http://www.dannyisonfire.com/tutorials/css/manipulatinglinks.php");
}
// HTML/XHTML Category
if ( category == "3" ) {
echo 'HTML stands for Hyper Text Markup Language. XHTML is a newer version of HTML, and stands for Extensible Hyper Text Markup Language. Both are markup languages, have a number of specified tags, and are used to build webpages. They are considered by programmers two of the most basic languages used.';
echo '<ul>';
echo '<li><a href="http://www.dannyisonfire.com.com/tutorials.php?category=3&amp;tutorial=1">Basic Tags</a></li>';
echo '<li><a href="http://www.dannyisonfire.com.com/tutorials.php?category=3&amp;tutorial=2">Forms</a></li>';
echo '<li><a href="http://www.dannyisonfire.com.com/tutorials.php?category=3&amp;tutorial=3">Embedding Flash</a></li>';
echo '</ul>';
echo "Another great site for HTML/XHTML tutorials is <a href=\"http://www.w3schools.com\" target=\"_blank\">W3Schools.com</a>";
}
// HTML/XHTML Tutorials
if ( category == "3" and tutorial == "1" ) {
require("http://www.dannyisonfire.com/tutorials/htmlxhtml/basictags.php");
}
if ( category == "3" and tutorial == "2" ) {
require("http://www.dannyisonfire.com/tutorials/htmlxhtml/forms.php");
}
if ( category == "3" and tutorial == "3" ) {
require("http://www.dannyisonfire.com/tutorials/htmlxhtml/embeddingflash.php");
}
// JavaScript Category
if ( category == "4" ) {
echo 'JavaScript is a scripting language developed by Netscape to enable web authors to design interactive sites. Javascript can interact with HTML source code, enabling Web authors to spice up their sites with dynamic content.';
echo '<ul>';
echo '<li><a href="http://www.dannyisonfire.com.com/tutorials.php?category=4&amp;tutorial=2">Pop Up Window</a></li>';
echo '</ul>';
echo 'Another great site for JavaScript tutorials is <a href="http://www.javascriptkit.com" target="_blank">JavaScriptKit.com</a>';
}
// JavaScript Tutorials
if ( category == "4" and tutorial == "1" ) {
require("http://www.dannyisonfire.com/tutorials/javascript/popupwindow.php");
}
// PHP Category
if ( category == "5" ) {
echo 'PHP is a server side scripting language, that stands for Hypertext Preprocessor. MySQL is a SQL database management system. Both languages can be used to create dynamic websites, with PHP being embedded into the (X)HTML, and MySQL storing any specified data in MySQL databases.';
echo '<ul>';
echo '<li><a href="http://www.dannyisonfire.com.com/tutorials.php?category=5&amp;tutorial=1">Starting With PHP</a></li>';
echo '<li><a href="http://www.dannyisonfire.com.com/tutorials.php?category=5&amp;tutorial=2">Contact Form</a></li>';
echo '<li><a href="http://www.dannyisonfire.com.com/tutorials.php?category=5&amp;tutorial=3">Forced Download</a></li>';
echo '</ul>';
echo 'Another great site for PHP/MySQL tutorials is <a href="http://www.tizag.com" target="_blank">Tizag.com</a>';
}
// PHP/MySQL Tutorials
if ( category == "5" and tutorial == "1" ) {
require("http://www.dannyisonfire.com/tutorials/phpmysql/startingwithphp.php");
}
if ( category == "5" and tutorial == "2" ) {
require("http://www.dannyisonfire.com/tutorials/phpmysql/contactform.php");
}
if ( category == "5" and tutorial == "3" ) {
require("http://www.dannyisonfire.com/tutorials/phpmysql/forceddownload.php");
}
// Tutorial Index Page
else {
echo 'Here you will find a selection of tutorials i have written for a number of different programming languges. In each tutorial, everything is explained step by step, and as simply as possible. Hopefully you will learn a thing or two from them.';
echo '<br /><br />';
echo 'Click one of the links above to view tutorials for that language.';
}
?>