예제 #1
0
파일: edit.php 프로젝트: holandacz/nb4
     $photoplog_toolbartype = $do_bbcode ? is_wysiwyg_compatible(-1, 'fe') : 0;
     if ($photoplog_toolbartype != 2) {
         $photoplog['description'] = $photoplog_file_info['description'];
     }
     // special character and link stuff for the editors
     $photoplog['description'] = str_replace('src="images/smilies/', 'src="' . $vbulletin->options['bburl'] . '/images/smilies/', $photoplog['description']);
     $photoplog['description'] = htmlspecialchars_uni($photoplog['description']);
     // yep this is how to get the description in
     $messagearea = str_replace("</textarea>", $photoplog['description'] . "</textarea>", $messagearea);
     ($hook = vBulletinHook::fetch_hook('photoplog_edit_fields')) ? eval($hook) : false;
     eval('$photoplog_field_title = "' . fetch_template('photoplog_field_title') . '";');
     eval('$photoplog_field_description = "' . fetch_template('photoplog_field_description') . '";');
     $photoplog_custom_field = '';
     photoplog_make_custom_fields($photoplog_file_catid, $photoplog_fielddata);
     $photoplog['catid'] = $photoplog_file_catid;
     photoplog_file_link($photoplog['userid'], $photoplog['fileid'], $photoplog['filename']);
     $photoplog_hslink1 = 'file_' . substr($vbulletin->options['photoplog_highslide_medium_thumb'], 0, 1) . 'link';
     $photoplog_hslink2 = 'file_' . substr($vbulletin->options['photoplog_highslide_medium_thumb'], -1, 1) . 'link';
     $photoplog['do_highslide'] = 0;
     if ($photoplog_hslink1 != 'file_nlink' && $photoplog_hslink2 != 'file_nlink') {
         $photoplog['do_highslide'] = 1;
     }
     $photoplog['hslink1'] = $photoplog['file_slink'];
     $photoplog['hslink2'] = $photoplog['file_llink'];
     if ($vbulletin->options['photoplog_highslide_active'] && $photoplog['do_highslide']) {
         $photoplog['hslink1'] = $photoplog[$photoplog_hslink1];
         $photoplog['hslink2'] = $photoplog[$photoplog_hslink2];
     }
     ($hook = vBulletinHook::fetch_hook('photoplog_edit_form')) ? eval($hook) : false;
     photoplog_output_page('photoplog_edit_form', $vbphrase['photoplog_edit_file']);
 } else {
예제 #2
0
파일: slideshow.php 프로젝트: holandacz/nb4
        $photoplog['fid_next'] = $photoplog_fid_bits[$photoplog_fid_bits_key2];
    }
    $photoplog['fid_list'] = implode(",", $photoplog_fid_bits);
    $photoplog['fid_button'] = '';
    if ($photoplog['fid_previous']) {
        $photoplog['fid_button'] .= "<input class=\"button\" type=\"submit\" name=\"go\" value=\"" . $vbphrase['photoplog_previous'] . "\" />";
    }
    if ($photoplog['fid_previous'] && $photoplog['fid_next']) {
        $photoplog['fid_button'] .= "&nbsp;";
    }
    if ($photoplog['fid_next']) {
        $photoplog['fid_button'] .= "<input class=\"button\" type=\"submit\" name=\"go\" value=\"" . $vbphrase['photoplog_next'] . "\" />";
    }
    $photoplog_search_tot = count($photoplog_fid_bits);
    $photoplog_search_now = intval($photoplog_fid_bits_key) + 1;
    $photoplog['fid_locale'] = construct_phrase($vbphrase['photoplog_x_of_y'], $photoplog_search_now, $photoplog_search_tot);
    $photoplog_navbits = array();
    $photoplog_navbits[$photoplog['location'] . '/index.php' . $vbulletin->session->vars['sessionurl_q']] = htmlspecialchars_uni($vbphrase['photoplog_photoplog']);
    $photoplog_navbits[$photoplog['location'] . '/slideshow.php' . $vbulletin->session->vars['sessionurl_q']] = htmlspecialchars_uni($vbphrase['photoplog_slideshow']);
    $photoplog_navbits[''] = $photoplog['fid_title'];
    if ($photoplog['jsactive']) {
        $photoplog_navbits[''] = $vbphrase['photoplog_slides'];
    }
    photoplog_file_link($photoplog_fid_userid, $photoplog['fid_current'], $photoplog_fid_filename);
    ($hook = vBulletinHook::fetch_hook('photoplog_slideshow_page')) ? eval($hook) : false;
    photoplog_output_page('photoplog_slideshow_page', $vbphrase['photoplog_slideshow'], '', $photoplog_navbits);
}
($hook = vBulletinHook::fetch_hook('photoplog_slideshow_complete')) ? eval($hook) : false;
if ($_REQUEST['do'] != 'query' && $_REQUEST['do'] != 'view' && $_POST['do'] != 'show' && $_GET['do'] != 'show') {
    photoplog_index_bounce();
}
예제 #3
0
$db->free_result($photoplog_memberlist_infos);
if ($ltr == '#' || $photoplog_ausername) {
    $condition .= ' ' . $photoplog_letter_sql;
}
$photoplog_letter_sql = str_replace('username', 'f1.username', $photoplog_letter_sql);
$photoplog_hslink1 = 'file_' . substr($vbulletin->options['photoplog_highslide_small_thumb'], 0, 1) . 'link';
$photoplog_hslink2 = 'file_' . substr($vbulletin->options['photoplog_highslide_small_thumb'], -1, 1) . 'link';
$photoplog['do_highslide'] = 0;
if ($photoplog_hslink1 != 'file_nlink' && $photoplog_hslink2 != 'file_nlink') {
    $photoplog['do_highslide'] = 1;
}
$photoplog_memberlist_thumbs = array();
if (!empty($photoplog_memberlist_userids)) {
    $photoplog_memberlist_infos = $db->query_read_slave("\r\n\t\tSELECT f1.userid, f1.fileid, f1.filename, f1.title\r\n\t\tFROM " . PHOTOPLOG_PREFIX . "photoplog_fileuploads AS f1\r\n\t\tLEFT JOIN " . PHOTOPLOG_PREFIX . "photoplog_fileuploads AS f2\r\n\t\tON (f2.userid = f1.userid AND f2.fileid > f1.fileid)\r\n\t\tWHERE 1=1\r\n\t\t{$photoplog_letter_sql}\r\n\t\tAND f2.fileid IS NULL\r\n\t\tAND f1.userid IN (" . implode(',', array_unique($photoplog_memberlist_userids)) . ")\r\n\t\t{$photoplog_catid_sql1a}\r\n\t\t{$photoplog_admin_sql1a}\r\n\t");
    unset($photoplog_memberlist_userids);
    while ($photoplog_memberlist_info = $db->fetch_array($photoplog_memberlist_infos)) {
        $photoplog['title'] = htmlspecialchars_uni($photoplog_memberlist_info['title']);
        $photoplog['hscnt'] = intval($photoplog['hscnt']) + 1;
        photoplog_file_link($photoplog_memberlist_info['userid'], $photoplog_memberlist_info['fileid'], $photoplog_memberlist_info['filename']);
        $photoplog_memberlist_thumb = '<a href="' . $photoplog['location'] . '/index.php?' . $vbulletin->session->vars['sessionurl'] . 'u=' . $userinfo['userid'] . '"><img style="' . $vbulletin->options['photoplog_csssmall_thumbs'] . '" src="' . $photoplog['file_slink'] . '" alt="' . $photoplog['title'] . '" border="0" /></a>';
        if ($vbulletin->options['photoplog_highslide_active'] && $photoplog['do_highslide']) {
            $photoplog_memberlist_thumb = '
				<script type="text/javascript">hs.registerOverlay({thumbnailId: \'hsjs' . $photoplog['hscnt'] . '\', overlayId: \'hscontrolbar\', position: \'top right\', hideOnMouseOut: true});</script>
				<a id="hsjs' . $photoplog['hscnt'] . '" href="' . $photoplog[$photoplog_hslink2] . '" class="highslide" onclick="return hs.expand(this, {slideshowGroup: \'searchinfo\'})"><img style="' . $vbulletin->options['photoplog_csssmall_thumbs'] . '" src="' . $photoplog[$photoplog_hslink1] . '" alt="' . $photoplog['title'] . '" border="0" /></a>
				<div class="highslide-caption" id="caption-for-hsjs' . $photoplog['hscnt'] . '"><a href="' . $photoplog['location'] . '/index.php?' . $vbulletin->session->vars['sessionurl'] . 'n=' . $photoplog_memberlist_info['fileid'] . '">' . $photoplog['title'] . '</a>&nbsp;</div>
			';
        }
        $photoplog_memberlist_thumbs[$photoplog_memberlist_info['userid']] = $photoplog_memberlist_thumb;
    }
    $db->free_result($photoplog_memberlist_infos);
}
예제 #4
0
파일: listing.php 프로젝트: holandacz/nb4
                $photoplog_divider_flag = 1;
                $photoplog['cat_bits'] .= '
					<tbody>
				';
            } else {
                if ($photoplog_divider_flag == 0) {
                    $photoplog_divider_collapse = 'collapseobj_photoplog_catbit_' . $photoplog_parent_catid;
                    $photoplog_divider_collapse = $vbcollapse[$photoplog_divider_collapse];
                    $photoplog_divider_flag = 1;
                    $photoplog['cat_bits'] .= '
					<tbody id="collapseobj_photoplog_catbit_' . $photoplog_parent_catid . '" style="' . $photoplog_divider_collapse . '">
				';
                }
            }
            $photoplog['hscnt'] = intval($photoplog['hscnt']) + 1;
            photoplog_file_link($photoplog_catbit_userid1, $photoplog_catbit_fileid1, $photoplog_catbit_filename1);
            ($hook = vBulletinHook::fetch_hook('photoplog_listing_catbit')) ? eval($hook) : false;
            eval('$photoplog[\'cat_bits\'] .= "' . fetch_template('photoplog_cat_bit') . '";');
            if (($photoplog_divider_bar == 1 || $photoplog_parent_catid == $photoplog_parent_catnum) && $photoplog_divider_flag == 1) {
                $photoplog_divider_flag = 0;
                $photoplog['cat_bits'] .= '
					</tbody>
				';
            }
        }
    }
    if ($photoplog_divider_flag == 1) {
        $photoplog_divider_flag = 0;
        $photoplog['cat_bits'] .= '
			</tbody>
		';
예제 #5
0
파일: index.php 프로젝트: holandacz/nb4
         $photoplog_user_stamp1 = $photoplog_files_array[$photoplog_user_fileid1]['photoplog_file_dateline'];
         $photoplog_user_stamp2 = $photoplog_comments_array[$photoplog_user_commentid]['photoplog_comment_dateline'];
         $photoplog_user_date1 = vbdate($vbulletin->options['dateformat'], $photoplog_user_stamp1, true);
         $photoplog_user_time1 = vbdate($vbulletin->options['timeformat'], $photoplog_user_stamp1);
         $photoplog_user_date2 = vbdate($vbulletin->options['dateformat'], $photoplog_user_stamp2, true);
         $photoplog_user_time2 = vbdate($vbulletin->options['timeformat'], $photoplog_user_stamp2);
         if ($vbulletin->userinfo['lastvisitdate'] == -1 || $vbulletin->userinfo['lastvisit'] < $photoplog_user_stamp1 || $vbulletin->userinfo['lastvisit'] < $photoplog_user_stamp2) {
             $photoplog_newold_statusicon = 'new';
         } else {
             $photoplog_newold_statusicon = 'old';
         }
         if (!($permissions['photoplogpermissions'] & $vbulletin->bf_ugp_photoplogpermissions['photoplogcanuploadfiles']) && $vbulletin->options['showlocks']) {
             $photoplog_newold_statusicon .= '_lock';
         }
         $photoplog['hscnt'] = intval($photoplog['hscnt']) + 1;
         photoplog_file_link($photoplog_user_userid1, $photoplog_user_fileid1, $photoplog_user_filename);
         ($hook = vBulletinHook::fetch_hook('photoplog_index_userbit')) ? eval($hook) : false;
         eval('$photoplog[\'user_bits\'] .= "' . fetch_template('photoplog_user_bit') . '";');
     }
 }
 unset($photoplog_members_array, $photoplog_files_array, $photoplog_comments_array);
 if (!$photoplog_cnt_bits) {
     $photoplog['user_bits'] = '<tr><td colspan="7" class="alt2">' . $vbphrase['photoplog_not_available'] . '</td></tr>';
 }
 $photoplog['letter_bar'] = '';
 $photoplog['letter_id'] = strtolower($vbulletin->GPC['q']);
 $photoplog_letter_arr = array('1' => '#', 'a' => 'A', 'b' => 'B', 'c' => 'C', 'd' => 'D', 'e' => 'E', 'f' => 'F', 'g' => 'G', 'h' => 'H', 'i' => 'I', 'j' => 'J', 'k' => 'K', 'l' => 'L', 'm' => 'M', 'n' => 'N', 'o' => 'O', 'p' => 'P', 'q' => 'Q', 'r' => 'R', 's' => 'S', 't' => 'T', 'u' => 'U', 'v' => 'V', 'w' => 'W', 'x' => 'X', 'y' => 'Y', 'z' => 'Z');
 $photoplog_folder_flag = 1;
 $photoplog_letter_bar_bits = '';
 foreach ($photoplog_letter_arr as $photoplog_letter_key => $photoplog_letter_val) {
     ($hook = vBulletinHook::fetch_hook('photoplog_settings_letterbarbit')) ? eval($hook) : false;