root/ip/tags/release_1_3_0_53/album_personal_cat_admin.php

111163
646
				//set the indicator that we are deleting a parent category
646
				//set the indicator that we are deleting a parent category
647
				$parent_cat_deleted = true;
647
				$parent_cat_deleted = true;
648
648
649
				if (isset($lang[$board_config['sitename']]))
649
				if (isset($lang[ip_stripslashes($board_config['sitename'])]))
650
				{
650
				{
651
					$parent_cat_title = sprintf($lang['Forum_Index'], $lang[$board_config['sitename']]);
651
					$parent_cat_title = sprintf($lang['Forum_Index'], $lang[ip_stripslashes($board_config['sitename'])]);
652
				}
652
				}
653
				else
653
				else
654
				{
654
				{
655
					$parent_cat_title = sprintf($lang['Forum_Index'], $board_config['sitename']);
655
					$parent_cat_title = sprintf($lang['Forum_Index'], ip_stripslashes($board_config['sitename']));
656
				}
656
				}
657
657
658
				//... then check if the selected category is a child to another category
658
				//... then check if the selected category is a child to another category
...
...
715
					$file_part = explode('.', strtolower($pic_filename));
715
					$file_part = explode('.', strtolower($pic_filename));
716
					$pic_filetype = $file_part[count($file_part) - 1];
716
					$pic_filetype = $file_part[count($file_part) - 1];
717
					$pic_filename_only = substr($pic_filename, 0, strlen($pic_filename) - strlen($pic_filetype) - 1);
717
					$pic_filename_only = substr($pic_filename, 0, strlen($pic_filename) - strlen($pic_filetype) - 1);
718
					$pic_base_path = ALBUM_UPLOAD_PATH;
718
					$pic_base_path = IP_ROOT_PATH . ALBUM_UPLOAD_PATH;
719
					$pic_extra_path = '';
719
					$pic_extra_path = '';
720
					$pic_new_filename = $pic_extra_path . $pic_filename;
720
					$pic_new_filename = $pic_extra_path . $pic_filename;
721
					$pic_fullpath = $pic_base_path . $pic_new_filename;
721
					$pic_fullpath = $pic_base_path . $pic_new_filename;
722
					$pic_thumbnail = $picrow[$i]['pic_thumbnail'];
722
					$pic_thumbnail = $picrow[$i]['pic_thumbnail'];
723
					$pic_thumbnail_fullpath = ALBUM_CACHE_PATH . $pic_thumbnail;
723
					$pic_thumbnail_fullpath = IP_ROOT_PATH . ALBUM_CACHE_PATH . $pic_thumbnail;
724
724
725
					if (USERS_SUBFOLDERS_ALBUM == true)
725
					if (USERS_SUBFOLDERS_ALBUM == true)
726
					{
726
					{
727
						if (count($pic_path) == 2)
727
						if (count($pic_path) == 2)
728
						{
728
						{
729
							$pic_extra_path = $pic_path[0] . '/';
729
							$pic_extra_path = $pic_path[0] . '/';
730
							$pic_thumbnail_path = ALBUM_CACHE_PATH . $pic_extra_path;
730
							$pic_thumbnail_path = IP_ROOT_PATH . ALBUM_CACHE_PATH . $pic_extra_path;
731
							if (is_dir($pic_path_only))
731
							if (is_dir($pic_path_only))
732
							{
732
							{
733
								$pic_new_filename = $pic_extra_path . $pic_filename;
733
								$pic_new_filename = $pic_extra_path . $pic_filename;
...
...
742
					}
742
					}
743
743
744
					@unlink($pic_thumbnail_fullpath);
744
					@unlink($pic_thumbnail_fullpath);
745
					@unlink(ALBUM_MED_CACHE_PATH . $pic_extra_path . $pic_thumbnail);
745
					@unlink(IP_ROOT_PATH . ALBUM_MED_CACHE_PATH . $pic_extra_path . $pic_thumbnail);
746
					@unlink(ALBUM_WM_CACHE_PATH . $pic_extra_path . $pic_thumbnail);
746
					@unlink(IP_ROOT_PATH . ALBUM_WM_CACHE_PATH . $pic_extra_path . $pic_thumbnail);
747
					@unlink($pic_fullpath);
747
					@unlink($pic_fullpath);
748
				}
748
				}
749
749