-Dolphin is a collection of usefull PHP skeletons
+Dolphin is a collection of useful PHP skeletons
v1.0
-A simple Script to manage your Bookmarks without any third-party hoster eg. xmarks, apple etc.
+A simple Script to manage your Bookmarks without any third-party hoster e.g. xmarks, apple etc.
All you need is this script a MySQL Database and one table in it.
They need to be altered to fit your project.
DO NOT just copy and paste.
-Read the files carefully, otherwise the will not work as espected.
+Read the files carefully, otherwise the will not work as expected.
<?php
/**
- * dolphin. Collection of usefull PHP skeletons.
+ * dolphin. Collection of useful PHP skeletons.
* Copyright (C) 2009 Johannes 'Banana' Keßler
*
* This program is free software: you can redistribute it and/or modify
/**
* get the complete mandant list from the database
- * the elements have a status which indecates the following:
+ * the elements have a status which indicates the following:
* 0= inactive
* 1= active and ready to use
* 2= hidden
Using smarty as template management
All requests are going with the $_GET variable.
-The values are checked and validated. If successfull the right php and template file will be loaded.
+The values are checked and validated. If successful the right php and template file will be loaded.
-eg.
+e.g.
index.php?p=start
will load the start.php and start.html file as template and display all via the main.html file
<?php
/**
-* dolphin. Collection of usefull PHP skeletons.
+* dolphin. Collection of useful PHP skeletons.
* Copyright (C) 2009 Johannes 'Banana' Keßler
*
* This program is free software: you can redistribute it and/or modify
<?php
/**
-* dolphin. Collection of usefull PHP skeletons.
+* dolphin. Collection of useful PHP skeletons.
* Copyright (C) 2009 Johannes 'Banana' Keßler
*
* This program is free software: you can redistribute it and/or modify
<?php
/**
-* dolphin. Collection of usefull PHP skeletons.
+* dolphin. Collection of useful PHP skeletons.
* Copyright (C) 2009 Johannes 'Banana' Keßler
*
* This program is free software: you can redistribute it and/or modify
<?php
/**
-* dolphin. Collection of usefull PHP skeletons.
+* dolphin. Collection of useful PHP skeletons.
* Copyright (C) 2009 Johannes 'Banana' Keßler
*
* This program is free software: you can redistribute it and/or modify
<?php
/**
-* dolphin. Collection of usefull PHP skeletons.
+* dolphin. Collection of useful PHP skeletons.
* Copyright (C) 2009 Johannes 'Banana' Keßler
*
* This program is free software: you can redistribute it and/or modify
</head>
<body>
<div id="menu">Place the menu here</div>
-<div id="content">{inlcude file=$template}</div>
+<div id="content">{include file=$template}</div>
<div id="footer">the footer text</div>
</body>
</html>
-<!-- all the data are in the $data varibale -->
+<!-- all the data are in the $data variable -->
{$data.test}
<p>some nice html data</p>
<?php
/**
- * dolphin. Collection of usefull PHP skeletons.
+ * dolphin. Collection of useful PHP skeletons.
* Copyright (C) 2009 Johannes 'Banana' Keßler
*
* This program is free software: you can redistribute it and/or modify
<?php
/**
- * dolphin. Collection of usefull PHP skeletons.
+ * dolphin. Collection of useful PHP skeletons.
* Copyright (C) 2011 Johannes 'Banana' Keßler
*
* This program is free software: you can redistribute it and/or modify
<?php
/**
- * dolphin. Collection of usefull PHP skeletons.
+ * dolphin. Collection of useful PHP skeletons.
* Copyright (C) 2011 Johannes 'Banana' Keßler
*
* This program is free software: you can redistribute it and/or modify
* @param string $string The text to be colored
* @param string $col The text color
* @param string $bcol The background color. Default is not set
- * @param string $ret The formated ( or not ) text
+ * @param string $ret The formatted ( or not ) text
*/
function cO($string,$col,$bcol=false) {
$ret = false;
<?php
/**
- * dolphin. Collection of usefull PHP skeletons.
+ * dolphin. Collection of useful PHP skeletons.
* Copyright (C) 2009 Johannes 'Banana' Keßler
*
* This program is free software: you can redistribute it and/or modify
/**
* validate if given string is correct
- * this can easily exapnded with more match patterns
+ * this can easily expanded with more match patterns
*
* @param string $string
* @param string $mode