--- /dev/null
+php_flag magic_quotes_gpc off
+php_flag default_charset utf-8
+
+Options +FollowSymlinks -Indexes
<?php
+/**
+* dolphin. Collection of usefull PHP skeletons.
+* Copyright (C) 2009 Johannes 'Banana' Keßler
+*
+* This program is free software: you can redistribute it and/or modify
+* it under the terms of the GNU General Public License as published by
+* the Free Software Foundation, either version 3 of the License, or
+* (at your option) any later version.
+*
+* This program is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
define('DB_TYPE','mysqli'); // Pdo_mysql has a bug with '?'
define('DB_HOST','localhost');
define('DB_DATABASE','db-name');
<?php
+/**
+* dolphin. Collection of usefull PHP skeletons.
+* Copyright (C) 2009 Johannes 'Banana' Keßler
+*
+* This program is free software: you can redistribute it and/or modify
+* it under the terms of the GNU General Public License as published by
+* the Free Software Foundation, either version 3 of the License, or
+* (at your option) any later version.
+*
+* This program is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
// to get the system messages make it true
define('DEBUG',true);
<?php
/**
- * | | |
- * __ \ _ \ __| __| | | __| __| _ \ __ \ __| __| _ \ |
- * | | ( | | | | |\__ \ ( ( | | | | | ( | |
- * _| _|\___/ _| \__|\__, |____/_)\___|\___/ _| _|\__|_| \___/ _|
- * ____/
- *
- * nortys.control
- * Websiten Statistik Tool
- *
- * Copyright (C) 2010 Johannes Keßler
- * nortys Gmbh
- * E3, 13
- * 68159 Mannheim
- *
- * @version: $Id: index.php 11 2010-01-12 14:31:05Z jk $
- */
+* dolphin. Collection of usefull PHP skeletons.
+* Copyright (C) 2009 Johannes 'Banana' Keßler
+*
+* This program is free software: you can redistribute it and/or modify
+* it under the terms of the GNU General Public License as published by
+* the Free Software Foundation, either version 3 of the License, or
+* (at your option) any later version.
+*
+* This program is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
mb_internal_encoding("UTF-8");
<?php
+/**
+* dolphin. Collection of usefull PHP skeletons.
+* Copyright (C) 2009 Johannes 'Banana' Keßler
+*
+* This program is free software: you can redistribute it and/or modify
+* it under the terms of the GNU General Public License as published by
+* the Free Software Foundation, either version 3 of the License, or
+* (at your option) any later version.
+*
+* This program is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
+
/**
* validate given string if it is in given format
*
<?php
+/**
+* dolphin. Collection of usefull PHP skeletons.
+* Copyright (C) 2009 Johannes 'Banana' Keßler
+*
+* This program is free software: you can redistribute it and/or modify
+* it under the terms of the GNU General Public License as published by
+* the Free Software Foundation, either version 3 of the License, or
+* (at your option) any later version.
+*
+* This program is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
// do something:
$var = 1;
-$var-new = $var+1;
+$var_new = $var+1;
// fill the $data variable
$data['test'] = "hallo";