Subversion-Projekte lars-tiefland.ci

Revision

Revision 1082 | Revision 1115 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 1082 Revision 1110
Zeile 3... Zeile 3...
3
/**
3
/**
4
 *
4
 *
5
 * @package WebanOS CI
5
 * @package WebanOS CI
6
 * @author Lars Tiefland <ltiefland@gmail.com> 
6
 * @author Lars Tiefland <ltiefland@gmail.com> 
7
 * @copyright 2016
7
 * @copyright 2016
8
 * @version $Rev: 1082 $
8
 * @version $Rev: 1110 $
9
 */
9
 */
Zeile 10... Zeile 10...
10
 
10
 
11
class User_model extends CI_Model
11
class User_model extends CI_Model
12
{
12
{
Zeile 108... Zeile 108...
108
					erstellt_von='".$this->session->username."'
108
					erstellt_von='".$this->session->username."'
109
			";
109
			";
110
		}
110
		}
111
		$GLOBALS['db_red_write']->query($sql);
111
		$GLOBALS['db_red_write']->query($sql);
112
	}
112
	}
-
 
113
	
-
 
114
	public function del()
-
 
115
	{
-
 
116
		if ($_SERVER['SERVER_NAME'] == "ci.starfleethq.de")
-
 
117
		{
-
 
118
			$GLOBALS['db_red_write'] = $GLOBALS['db_red'];
-
 
119
		}
-
 
120
		else
-
 
121
		{
-
 
122
			$GLOBALS['db_red_write'] = $this->load->database('db_red_write', TRUE);
-
 
123
		}
-
 
124
		$sql="
-
 
125
			DELETE FROM
-
 
126
				Access
-
 
127
			WHERE
-
 
128
				ID = ".$this->input->post('id')."
-
 
129
		";
-
 
130
		$res = $GLOBALS["db_red_write"]->query($sql);
-
 
131
		if ($res)
-
 
132
		{
-
 
133
			$msg = "Cronjob wurde erfolgreich gelöscht!";
-
 
134
		}
-
 
135
		else
-
 
136
		{
-
 
137
			$msg = "Leider ist ein Fehler aufgetreten.<br>";
-
 
138
			$msg .= "Bitte versuchen Sie es sp&auml;ter noch einmal!<br>";
-
 
139
			//$msg .= mysql_error();
-
 
140
		}
-
 
141
		return $msg;
-
 
142
	}
113
}
143
}
Zeile 114... Zeile 144...
114
 
144
 
115
?>
145
?>