Exponential Basic 2.4.0.1 Exponential Basic CMS — PHP Class Reference

ezimagecatalogue/user/imageedit.php
Go to the documentation of this file.
1 <?php
3 //
4 // $Id: imageedit.php 9571 2002-05-29 13:55:23Z br $
5 //
6 // Created on: <09-Jan-2001 10:45:44 ce>
7 //
8 // This source file is part of Exponential Basic, publishing software.
9 //
10 // Copyright (C) 1999-2001 eZ Systems. All rights reserved.
11 //
12 // This program is free software; you can redistribute it and/or
13 // modify it under the terms of the GNU General Public License
14 // as published by the Free Software Foundation; either version 2
15 // of the License, or (at your option) any later version.
16 //
17 // This program is distributed in the hope that it will be useful,
18 // but WITHOUT ANY WARRANTY; without even the implied warranty of
19 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 // GNU General Public License for more details.
21 //
22 // You should have received a copy of the GNU General Public License
23 // along with this program; if not, write to the Free Software
24 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, US
25 //
26
27 // include_once( "classes/ezhttptool.php" );
28 // include_once( "ezuser/classes/ezuser.php" );
29 // include_once( "ezuser/classes/ezpermission.php" );
30 // include_once( "ezuser/classes/ezobjectpermission.php" );
31 // include_once( "ezuser/classes/ezauthor.php" );
32
33 $user =& eZUser::currentUser();
34
35 $CurrentCategoryID = eZHTTPTool::getVar( "CategoryID" );
36 $CategoryID = eZHTTPTool::getVar( "CategoryID" );
37
38 if ( !$user )
39 {
40 eZHTTPTool::header( "Location: /error/403/" );
41 exit();
42 }
43
44 if ( isset( $NewCategory ) )
45 {
46 eZHTTPTool::header( "Location: /imagecatalogue/category/new/$CurrentCategoryID/" );
47 exit();
48 }
49
50 if ( isset( $Cancel ) )
51 {
52 eZHTTPTool::header( "Location: /imagecatalogue/image/list/" . $CurrentCategoryID . "/" );
53 exit();
54 }
55
56 if ( isset( $DeleteImages ) )
57 {
58 $Action = "DeleteImages";
59 }
60
61 if ( isset( $DeleteCategories ) )
62 {
63 $Action = "DeleteCategories";
64 }
65
66 // include_once( "classes/INIFile.php" );
67 // include_once( "classes/eztemplate.php" );
68 // include_once( "classes/ezlog.php" );
69
70 // // include_once( "classes/ezfile.php" );
71 // include_once( "classes/ezimagefile.php" );
72
73 // include_once( "ezimagecatalogue/classes/ezimage.php" );
74 // include_once( "ezimagecatalogue/classes/ezimagecategory.php" );
75
76 $ini =& eZINI::instance( 'site.ini' );
77 $Language = $ini->variable( "eZImageCatalogueMain", "Language" );
78
79 $t = new eZTemplate( "kernel/ezimagecatalogue/user/" . $ini->variable( "eZImageCatalogueMain", "TemplateDir" ),
80 "kernel/ezimagecatalogue/user/intl/", $Language, "imageedit.php" );
81
82 $t->setAllStrings();
83
84 $t->set_file( "image_edit_page", "imageedit.tpl" );
85
86 $t->set_block( "image_edit_page", "value_tpl", "value" );
87 $t->set_block( "image_edit_page", "multiple_value_tpl", "multiple_value" );
88 $t->set_block( "image_edit_page", "image_tpl", "image" );
89 $t->set_block( "image_edit_page", "errors_tpl", "errors" );
90
91 $t->set_block( "image_edit_page", "write_group_item_tpl", "write_group_item" );
92 $t->set_block( "image_edit_page", "read_group_item_tpl", "read_group_item" );
93
94 $t->set_block( "image_edit_page", "photographer_item_tpl", "photographer_item" );
95 $t->set_block( "image_edit_page", "image_variation_tpl", "variation" );
96 $t->set_block( "image_edit_page", "article_item_tpl", "article_item" );
97 $t->set_block( "image_edit_page", "product_item_tpl", "product_item" );
98
99 $t->set_block( "image_edit_page", "image_info_tpl", "image_info" );
100 $t->set_var( "image_info", "" );
101
102 $t->set_var( "errors", "&nbsp;" );
103
104 $t->set_var( "name_value", $Name );
105 $t->set_var( "image_description", $Description );
106 $t->set_var( "caption_value", $Caption );
107
108 $error = false;
109 $nameCheck = true;
110 $captionCheck = false;
111 $descriptionCheck = false;
112 $fileCheck = true;
113 $permissionCheck = true;
114
115 $t->set_block( "errors_tpl", "error_name_tpl", "error_name" );
116 $t->set_var( "error_name", "&nbsp;" );
117
118 $t->set_block( "errors_tpl", "error_caption_tpl", "error_caption" );
119 $t->set_var( "error_caption", "&nbsp;" );
120
121 $t->set_block( "errors_tpl", "error_file_upload_tpl", "error_file_upload" );
122 $t->set_var( "error_file_upload", "&nbsp" );
123
124 $t->set_block( "errors_tpl", "error_description_tpl", "error_description" );
125 $t->set_var( "error_description", "&nbsp;" );
126
127 // Check for errors when inserting or updating.
128 if ( $Action == "Insert" || $Action == "Update" )
129 {
130 if ( $nameCheck )
131 {
132 if ( empty( $Name ) )
133 {
134 $t->parse( "error_name", "error_name_tpl" );
135 $error = true;
136 }
137 }
138
139 if ( $captionCheck )
140 {
141 if ( empty( $Caption ) )
142 {
143 $t->parse( "error_caption", "error_caption_tpl" );
144 $error = true;
145 }
146 }
147
148 if ( $descriptionCheck )
149 {
150 if ( empty( $Description ) )
151 {
152 $t->parse( "error_description", "error_description_tpl" );
153 $error = true;
154 }
155 }
156
157 if ( $permissionCheck )
158 {
159 // if not write or upload to folder
160 if ( eZObjectPermission::hasPermission( $CategoryID, "imagecatalogue_category", 'w', $user ) == false &&
161 eZObjectPermission::hasPermission( $CategoryID, "imagecatalogue_category", 'u' ) == false &&
162 eZImageCategory::isOwner( eZUser::currentUser(), $CategoryID ) == false )
163 {
164 eZHTTPTool::header( "Location: /error/403/" );
165 exit();
166 }
167 // if update but not write.
168 if ( $Action == "Update" &&
169 eZObjectPermission::hasPermission( $CategoryID, "imagecatalogue_category", "w", $user ) == false &&
170 !eZVirtualFolder::isOwner( $user, $FolderID ) )
171 {
172 eZHTTPTool::header( "Location: /error/403/" );
173 exit();
174 }
175 }
176
177 if ( $fileCheck )
178 {
179 $file = new eZPBImageFile();
180 if ( $file->getUploadedFile( "userfile" ) )
181 {
182 $imageTest = new eZImage();
183 if ( $imageTest->checkImage( $file ) && $imageTest->setImage( $file ) )
184 {
185 $fileOK = true;
186 }
187 else
188 {
189 $error = true;
190 $t->parse( "error_file_upload", "error_file_upload_tpl" );
191 }
192 }
193 else
194 {
195 if ( $Action == "Insert" )
196 {
197 $error = true;
198 $t->parse( "error_file_upload", "error_file_upload_tpl" );
199 }
200 }
201 }
202
203 if ( $error )
204 {
205 $t->parse( "errors", "errors_tpl" );
206 foreach ( $WriteGroupArrayID as $unf )
207 {
208 if ( $unf == 0 )
209 $writeGroupArrayID[] = -1;
210 else
211 $writeGroupArrayID[] = $unf;
212 }
213 foreach ( $ReadGroupArrayID as $unf )
214 {
215 if ( $unf == 0 )
216 $readGroupArrayID[] = -1;
217 else
218 $readGroupArrayID[] = $unf;
219 }
220 }
221 }
222
223 // Insert if error == false
224 if ( $Action == "Insert" && $error == false )
225 {
226 $image = new eZImage();
227 $image->setName( $Name );
228 $image->setCaption( $Caption );
229 $image->setDescription( $Description );
230 $image->setUser( $user );
231
232 $image->setImage( $file );
233
234 $category = new eZImageCategory( $CategoryID );
235
236 if ( trim( $NewPhotographerName ) != "" &&
237 trim( $NewPhotographerEmail ) != "" )
238 {
239 $author = new eZAuthor();
240 $author->setName( $NewPhotographerName );
241 $author->setEmail( $NewPhotographerEmail );
242 $author->store();
243 $image->setPhotographer( $author );
244 }
245 else
246 {
247 $image->setPhotographer( $PhotoID );
248 }
249
250 $image->store();
251
252 $ImageID = $image->id();
253
254 if ( eZObjectPermission::hasPermission( $CategoryID, "imagecatalogue_category", 'w' ) ) // user had write permission
255 {
256 changePermissions( $ImageID, $ReadGroupArrayID, 'r' );
257 changePermissions( $ImageID, $WriteGroupArrayID, 'w' );
258 }
259 else // user had upload permission only, change ownership, set special rights..
260 {
261 eZObjectPermission::removePermissions( $ImageID, "imagecatalogue_image", 'w' ); // no write
262 eZObjectPermission::removePermissions( $ImageID, "imagecatalogue_image", 'r' ); // all read
263 eZObjectPermission::setPermission( -1, $ImageID, "imagecatalogue_image", 'r' );
264 $image->setUser( $category->user() );
265 $image->store();
266 }
267
268 $image->setCategoryDefinition( $category );
269
270 $categories = array_unique( array_merge( $CategoryArray, $CategoryID ) );
271 foreach ( $categories as $categoryItem )
272 {
273 if ( eZObjectPermission::hasPermission( $categoryItem, "imagecatalogue_category", 'u' ) )
274 {
275 eZImageCategory::addImage( $image, $categoryItem );
276 }
277 }
278
279 eZPBLog::writeNotice( "Picture added to catalogue: $image->name() from IP: $REMOTE_ADDR" );
280
281 eZHTTPTool::header( "Location: /imagecatalogue/image/list/" . $CategoryID . "/" );
282 exit();
283 }
284
285 // Update if error == false
286 if ( $Action == "Update" && $error == false )
287 {
288 $image = new eZImage( $ImageID );
289 $image->setName( $Name );
290 if ( trim( $NewPhotographerName ) != "" &&
291 trim( $NewPhotographerEmail ) != "" )
292 {
293 $author = new eZAuthor();
294 $author->setName( $NewPhotographerName );
295 $author->setEmail( $NewPhotographerEmail );
296 $author->store();
297 $image->setPhotographer( $author );
298 }
299 else
300 {
301 $image->setPhotographer( $PhotoID );
302 }
303
304 $image->setCaption( $Caption );
305
306 $image->setDescription( $Description );
307
308
309 $category = new eZImageCategory( $CategoryID );
310 changePermissions( $ImageID, $ReadGroupArrayID, 'r' );
311 changePermissions( $ImageID, $WriteGroupArrayID, 'w' );
312
313 $categories = $image->categories();
314 foreach ( $categories as $categoryItem )
315 {
316 eZImageCategory::removeImage( $image, $categoryItem );
317 }
318
319 $image->setCategoryDefinition( $category );
320 $categories = array_unique( array_merge( $CategoryArray, $CategoryID ) );
321
322 foreach ( $categories as $categoryItem )
323 {
324 if ( eZObjectPermission::hasPermission( $image->id(), "imagecatalogue_image", 'w' ) )
325 eZImageCategory::addImage( $image, $categoryItem );
326 }
327
328 $category->addImage( $image );
329
330 if ( $fileOK )
331 {
332 $image->setImage( $file );
333 }
334
335 $image->store();
336
337 // include_once( "classes/ezhttptool.php" );
338 eZHTTPTool::header( "Location: /imagecatalogue/image/list/" . $CurrentCategoryID . "/" );
339 exit();
340 }
341
342 // Delete an image
343 if ( $Action == "DeleteImages" )
344 {
345 if ( count( $ImageArrayID ) != 0 )
346 {
347 foreach ( $ImageArrayID as $ImageID )
348 {
349 $image = new eZImage( $ImageID );
350 $image->delete();
351
352 print( $ImageID );
353 }
354 }
355
356 // include_once( "classes/ezhttptool.php" );
357 eZHTTPTool::header( "Location: /imagecatalogue/image/list/" . $CurrentCategoryID . "/" );
358 exit();
359 }
360
361 // Delete a category
362 if ( $Action == "DeleteCategories" )
363 {
364 if ( count( $CategoryArrayID ) > 0 )
365 {
366 foreach ( $CategoryArrayID as $categoryID )
367 {
368 $category = new eZImageCategory( $categoryID );
369 $category->delete();
370 }
371 }
372
373 // include_once( "classes/ezhttptool.php" );
374 eZHTTPTool::header( "Location: /imagecatalogue/image/list/" . $CurrentCategoryID . "/" );
375 exit();
376 }
377
378 // Set the default values to null
379 if ( $Action == "New" || $error )
380 {
381 $t->set_var( "action_value", "Insert" );
382 $t->set_var( "image", "" );
383 $t->set_var( "image_id", "" );
384
385 // author select
386
387 $author = new eZAuthor();
388 $authorArray = $author->getAll();
389 $t->set_var( "selected", "" );
390 foreach ( $authorArray as $author )
391 {
392 $t->set_var( "photo_id", $author->id() );
393 $t->set_var( "photo_name", $author->name() );
394 $t->parse( "photographer_item", "photographer_item_tpl", true );
395 }
396
397 }
398
399 // Sets the values to the current image
400 if ( $Action == "Edit" )
401 {
402 $image = new eZImage( $ImageID );
403
404 $t->set_var( "image_id", $image->id() );
405 $t->set_var( "name_value", $image->name() );
406 $t->set_var( "caption_value", $image->caption() );
407 $t->set_var( "image_description", $image->description() );
408 $t->set_var( "action_value", "update" );
409
410 $t->set_var( "image_alt", $image->caption() );
411
412 $photographer = $image->photographer();
413 $PhotographerID = $photographer->id();
414
415 // author select
416
417 $author = new eZAuthor();
418 $authorArray = $author->getAll();
419 foreach ( $authorArray as $author )
420 {
421 if ( $PhotographerID == $author->id() )
422 {
423 $t->set_var( "selected", "selected" );
424 }
425 else
426 {
427 $t->set_var( "selected", "" );
428 }
429 $t->set_var( "photo_id", $author->id() );
430 $t->set_var( "photo_name", $author->name() );
431 $t->parse( "photographer_item", "photographer_item_tpl", true );
432 }
433
434 $variation = $image->requestImageVariation( 150, 150 );
435
436 $t->set_var( "image_src", "/" .$variation->imagePath() );
437 $t->set_var( "image_width", $variation->width() );
438 $t->set_var( "image_height", $variation->height() );
439 $t->set_var( "image_file_name", $image->originalFileName() );
440 $t->parse( "image", "image_tpl" );
441
442 $variationList = $image->variations();
443 for ( $i = 0; $i < count( $variationList ); $i++ )
444 {
445 if ( $variationList[$i]->height() == $image->height() &&
446 $variationList[$i]->width() == $image->width() )
447 {
448 $value = array_slice( $variationList, $i, 1 );
449 $variationList = array_merge( $value, array_slice( $variationList, 0, $i - 1 ), array_slice( $variationList, $i + 1 ) );
450 break;
451 }
452 }
453
454 $info_items = 0;
455 $t->set_var( "variation_item", "" );
456 foreach ( $variationList as $variation )
457 {
458 $t->set_var( "variation_id", $variation->id() );
459 $t->set_var( "variation_width", $variation->width() );
460 $t->set_var( "variation_height", $variation->height() );
461
462 $t->parse( "variation", "image_variation_tpl", true );
463 $info_items++;
464 }
465
466 $t->set_var( "article_item", "" );
467 $articles = $image->articles();
468 foreach ( $articles as $article )
469 {
470 if ( ( $user ) &&
471 ( eZObjectPermission::hasPermission( $article->id(), "article_article", "r", $user ) ) )
472 {
473 $t->set_var( "article_id", $article->id() );
474 $t->set_var( "article_name", $article->name() );
475
476 $t->parse( "article_item", "article_item_tpl", true );
477 $info_items++;
478 }
479 }
480
481 $t->set_var( "product_item", "" );
482 $products = $image->products();
483 foreach ( $products as $product )
484 {
485 $t->set_var( "product_id", $product->id() );
486 $t->set_var( "product_name", $product->name() );
487
488 $t->parse( "product_item", "product_item_tpl", true );
489 $info_items++;
490 }
491
492 if ( $info_items > 0 )
493 $t->parse( "image_info", "image_info_tpl", false );
494 $objectPermission = new eZObjectPermission();
495
496 $readGroupArrayID =& $objectPermission->getGroups( $image->id(), "imagecatalogue_image", "r", false );
497 $writeGroupArrayID =& $objectPermission->getGroups( $image->id(), "imagecatalogue_image", "w", false );
498 }
499
500
501
502 $category = new eZImageCategory() ;
503 $categoryList =& $category->getTree( );
504
505 $tree = new eZImageCategory();
506 $treeArray =& $tree->getTree();
507 $user =& eZUser::currentUser();
508
509 $catCount = count( $treeArray );
510 $t->set_var( "num_select_categories", min( $catCount, 10 ) );
511
512 foreach ( $treeArray as $catItem )
513 {
514 if ( eZObjectPermission::hasPermission( $catItem[0]->id(), "imagecatalogue_category", 'w', $user ) ||
515 eZObjectPermission::hasPermission( $catItem[0]->id(), "imagecatalogue_category", 'u' ) ||
516 eZImageCategory::isOwner( eZUser::currentUser(), $catItem[0]->id() ) )
517 {
518 if ( $Action == "Edit" )
519 {
520 $defCat = $image->categoryDefinition();
521
522 if ( is_a( $defCat, "eZImageCategory" ) )
523 {
524 if ( $image->existsInCategory( $catItem[0] ) &&
525 $defCat->id() != $catItem[0]->id() )
526 {
527 $t->set_var( "multiple_selected", "selected" );
528 }
529 else
530 {
531 $t->set_var( "multiple_selected", "" );
532 }
533 }
534 else
535 {
536 $t->set_var( "multiple_selected", "" );
537 }
538
539 if ( is_a( $defCat, "eZImageCategory" ) )
540 {
541 if ( $defCat->id() == $catItem[0]->id() )
542 {
543 $t->set_var( "selected", "selected" );
544 }
545 else
546 {
547 $t->set_var( "selected", "" );
548 }
549 }
550 else
551 {
552 $t->set_var( "selected", "" );
553 }
554 }
555 else
556 {
557 if ( $CategoryID == $catItem[0]->id() )
558 $t->set_var( "selected", "selected" );
559 else
560 $t->set_var( "selected", "" );
561
562 $t->set_var( "multiple_selected", "" );
563 }
564
565
566 $t->set_var( "option_value", $catItem[0]->id() );
567 $t->set_var( "option_name", $catItem[0]->name() );
568
569 if ( $catItem[1] > 0 )
570 $t->set_var( "option_level", str_repeat( "&nbsp;", $catItem[1] ) );
571 else
572 $t->set_var( "option_level", "" );
573
574
575 $t->parse( "value", "value_tpl", true );
576 $t->parse( "multiple_value", "multiple_value_tpl", true );
577 }
578 }
579
580
581
582 // Print out all the groups.
583 $groups =& eZUserGroup::getAll();
584 foreach ( $groups as $group )
585 {
586 $t->set_var( "group_id", $group->id() );
587 $t->set_var( "group_name", $group->name() );
588
589 $t->set_var( "is_write_selected1", "" );
590 $t->set_var( "is_read_selected1", "" );
591
592 if ( $readGroupArrayID )
593 {
594 foreach ( $readGroupArrayID as $readGroup )
595 {
596 if ( $readGroup == $group->id() )
597 {
598 $t->set_var( "is_read_selected1", "selected" );
599 }
600 elseif ( $readGroup == -1 )
601 {
602 $t->set_var( "read_everybody", "selected" );
603 }
604 else
605 {
606 $t->set_var( "is_read_selected", "" );
607 }
608 }
609 }
610
611 if ( $Action == "New" )
612 $t->set_var( "read_everybody", "selected" );
613
614 $t->parse( "read_group_item", "read_group_item_tpl", true );
615
616 if ( $writeGroupArrayID )
617 {
618 foreach ( $writeGroupArrayID as $writeGroup )
619 {
620 if ( $writeGroup == $group->id() )
621 {
622 $t->set_var( "is_write_selected1", "selected" );
623 }
624 elseif ( $writeGroup == -1 )
625 {
626 $t->set_var( "write_everybody", "selected" );
627 }
628 else
629 {
630 $t->set_var( "is_write_selected", "selected" );
631 }
632 }
633 }
634 else
635 {
636 $t->set_var( "write_everybody", "selected" );
637 }
638
639 $t->parse( "write_group_item", "write_group_item_tpl", true );
640 }
641
642 $t->pparse( "output", "image_edit_page" );
643 /******* FUNCTIONS ****************************/
644 function changePermissions( $objectID, $groups , $permission )
645 {
646 eZObjectPermission::removePermissions( $objectID, "imagecatalogue_image", $permission );
647 if ( count( $groups ) > 0 )
648 {
649 foreach ( $groups as $groupItem )
650 {
651 if ( $groupItem == 0 )
652 $group = -1;
653 else
654 $group = new eZUserGroup( $groupItem );
655
656 eZObjectPermission::setPermission( $group, $objectID, "imagecatalogue_image", $permission );
657 }
658 }
659
660 }
661
662 ?>
$i
$i
Definition: admin/adlist.php:91
$authorArray
$authorArray
Definition: admin/articleedit.php:835
$group
$group
Definition: admin/articleedit.php:799
$author
$author
Definition: admin/articleedit.php:834
$Description
$Description
Definition: articlelistrss.php:38
$article
$article
Definition: articlelog.php:45
$articles
$articles
Definition: authorview.php:64
eZAuthor
Definition: ezauthor.php:40
eZHTTPTool\header
static header( $string)
Definition: ezhttptool.php:96
eZHTTPTool\getVar
static getVar( $name, $onlyCheckPost=false)
Definition: ezhttptool.php:55
eZImageCategory
Definition: ezimagecategory.php:43
eZImageCategory\isOwner
static isOwner( $user, $imageCategory=false)
Definition: ezimagecategory.php:480
eZImageCategory\addImage
static addImage( $value, $categoryid=false)
Definition: ezimagecategory.php:547
eZImageCategory\removeImage
static removeImage( $value, $categoryid=false)
Definition: ezimagecategory.php:594
eZImage
Definition: ezimage.php:95
eZObjectPermission
Definition: ezobjectpermission.php:55
eZObjectPermission\hasPermission
static hasPermission( $objectID, $moduleTable, $permission, $user=false)
Definition: ezobjectpermission.php:76
eZObjectPermission\setPermission
static setPermission( $group, $objectID, $moduleTable, $permission)
Definition: ezobjectpermission.php:236
eZObjectPermission\removePermissions
static removePermissions( $objectID, $moduleTable, $permission)
Definition: ezobjectpermission.php:320
eZPBImageFile
Definition: ezpbimagefile.php:71
eZPBLog\writeNotice
static writeNotice( $notice)
Definition: ezpblog.php:166
eZTemplate
Definition: eztemplate.php:107
eZUserGroup
Definition: ezusergroup.php:66
eZUserGroup\getAll
static & getAll( $as_object=true)
Definition: ezusergroup.php:197
eZUser\currentUser
static & currentUser()
Definition: ezuser.php:896
eZVirtualFolder\isOwner
static isOwner( $user, $folderID)
Definition: ezvirtualfolder.php:421
$Action
$Action
Definition: companysearch.php:80
$ImageID
$ImageID
Definition: companytypelist.php:201
$permission
$permission
Definition: eventedit.php:315
$categories
$categories
Definition: ezarticle/admin/categoryedit.php:636
$file
$file
Definition: ezfilemanager/user/filedownload.php:35
$captionCheck
$captionCheck
Definition: ezimagecatalogue/user/imageedit.php:110
$ini
if(! $user) if(isset( $NewCategory)) if(isset( $Cancel)) if(isset( $DeleteImages)) if(isset( $DeleteCategories)) $ini
Definition: ezimagecatalogue/user/imageedit.php:76
$CategoryID
$CategoryID
Definition: ezimagecatalogue/user/imageedit.php:36
$t
$t
Definition: ezimagecatalogue/user/imageedit.php:79
$treeArray
$treeArray
Definition: ezimagecatalogue/user/imageedit.php:506
$descriptionCheck
$descriptionCheck
Definition: ezimagecatalogue/user/imageedit.php:111
$user
$user
Definition: ezimagecatalogue/user/imageedit.php:33
$tree
$tree
Definition: ezimagecatalogue/user/imageedit.php:505
$Language
$Language
Definition: ezimagecatalogue/user/imageedit.php:77
$groups
foreach( $treeArray as $catItem) $groups
Definition: ezimagecatalogue/user/imageedit.php:583
$catCount
$catCount
Definition: ezimagecatalogue/user/imageedit.php:509
$permissionCheck
$permissionCheck
Definition: ezimagecatalogue/user/imageedit.php:113
$nameCheck
$nameCheck
Definition: ezimagecatalogue/user/imageedit.php:109
$categoryList
$categoryList
Definition: ezimagecatalogue/user/imageedit.php:503
changePermissions
changePermissions( $objectID, $groups, $permission)
Definition: ezimagecatalogue/user/imageedit.php:644
$CurrentCategoryID
$CurrentCategoryID
Definition: ezimagecatalogue/user/imageedit.php:35
$fileCheck
$fileCheck
Definition: ezimagecatalogue/user/imageedit.php:112
$error
$error
Definition: ezimagecatalogue/user/imageedit.php:108
$category
if( $Action=="Insert"|| $Action=="Update") if( $Action=="Insert" && $error==false) if( $Action=="Update" && $error==false) if( $Action=="DeleteImages") if( $Action=="DeleteCategories") if( $Action=="New"|| $error) if( $Action=="Edit") $category
Definition: ezimagecatalogue/user/imageedit.php:502
$variation
$variation
Definition: ezimagecatalogue/user/menubox.php:55
exit
exit
Definition: folder.php:81
$product
$product
Definition: homepage.php:202
$Name
$Name
Definition: polledit.php:250
$categoryID
else $categoryID
Definition: productview.php:66
$image
$image
Definition: user/articlelist.php:242
$info_items
if( $category !=-1) $info_items
Definition: user/imageview.php:118
$products
$products
Definition: user/imageview.php:142
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.