Tout d'abors je salut a toute la communauté de developpez.com. (je ne connais rien en programmation)
voila j'ai rencontré un grand problem d'installation et maintenant depuis plus de vingt jours et sur les recherche je suis tombé sur ce forum via google. alors je viens sollicité de l'aide pour finir ce que j'ai commencé a installer.
voici le code complet d'ou le problem vient:
et a la ligne 89 (souligné en rouge) on me signale une erreur Parse error: syntax error, unexpected
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101<?php /** * User Model * * * @copyright Copyright (c) 2008 [x-MoBiLe] Nulled * @license * @since 1/2/2008 */ class Applicationmodel extends Model { //Constructor function Applicationmodel() { parent::Model(); } function getApplications($onlyBasic = false) { if ($onlyBasic == true) $appQuery = $this->db->query('SELECT * FROM applications WHERE user_id=0'); else $appQuery = $this->db->query('SELECT * FROM applications'); if ($appQuery->num_rows() > 0) { $applications = array(); foreach ($appQuery->result_array() as $appRow) { $applications[$appRow['application_id']] = $appRow; } return $applications; } else return false; } function getUserApplications() { $this->db->select('application_ids'); $this->db->where('user_id', $this->session->userdata('user_id')); $this->db->limit(1, 0); $userAppQuery = $this->db->get('users_applications'); if ($userAppQuery->num_rows() > 0) { $userAppRow = $userAppQuery->result_array(); $appQuery = $this->db->query('SELECT * FROM applications WHERE application_id IN (' . $userAppRow[0]['application_ids'] . ')'); if ($appQuery->num_rows() > 0) { $applications = array(); foreach ($appQuery->result_array() as $appRow) { $applications[$appRow['application_id']] = $appRow; } return $applications; } else return false; } else return false; } function isApplication($appName) { $this->db->where('application_name', $appName); $this->db->limit(1, 0); $appQuery = $this->db->get('applications'); if ($appQuery->num_rows() > 0) { $appRow = $appQuery->result_array(); return $appRow[0]['application_id']; } else return false; } function isUserCanAccessTheApplication($applicationId) { $this->db->select('application_ids'); $this->db->where('user_id', $this->session->userdata('user_id')); $this->db->limit(1, 0); $userAppQuery = $this->db->get('users_applications'); if ($userAppQuery->num_rows() > 0) { $userAppRow = $userAppQuery->result_array(); $userAppArray = explode(',', $userAppRow[0]['application_ids']); if (array_search($applicationId, $userAppArray) === false) return false; else return true; } else return false; } function getLanguages() { $this->db->select('lang_code, lang_name'); $this->db->from('languages'); $langQuery = $this->db->get(); $languages = array(); if ($langQuery->num_rows)() > 0) { foreach ($langQuery->result_array() as $langRow) { $languages[] = $langRow; } } return $languages; } } ?>
j'ai beau tenté mais j'y arrive pas alors quelqu'un veut bien maider se serait un grand plaisir.
je vous remercie d'avances.






Répondre avec citation
Partager