View Single Post
  #2  
Old 26th April 2013, 11:17
lekszikov lekszikov is offline
Member
 
Join Date: Feb 2012
P2P
Posts: 2
Default
Sorry i bad englis..

details.php


Code:
$announce_urls[] = $announce;
//$announce_urls[] = 'http://retracker.local/announce';


Image add torrent

Code:
398. $sql = 'SELECT t.seeders, t.banned, t.leechers, t.info_hash, ......

ADD 
t.image,



459. $description = $row['descr'];

ADD
$imageiption = $row['image'];


490. $template->assign_vars( array( 
'MESSAGE1' => $message1,
'MESSAGE2' => $message2,
.......

ADD
'IMAGEIPTION' => $imageiption,


upload.php

Code:
67. $descr = request_var('descr', '');

ADD
$image = request_var('image', '');


70. 	if ( !$name || !$descr |.....

ADD
| !$image |



77. 	if ( $type == 'request' ) {
		$sql_ary = array('hits'    => 1,
                           'userid'  => $userdata['uid'],
                           'cat'     => $cat_id,
                           'request' => $name,
                           'descr'   => $descr,

ADD
'image'   => $image,

100. 	elseif ( $type == 'offer' ) {
		$sql_ary = array('userid'   => $userdata['uid'],
                           'category' => $cat_id,
                           'name'     => $name,
                         'descr'    => $descr,


ADD
'image'   => $image,


189.  $sql_ary = array('filename'    => $fname,
						'owner'       => $userdata['uid'],
						'info_hash'   => $infohash,
						'name'        => $name,
						'size'        => $totallen,
						'numfiles'    => sizeof($filelist),
						'descr'       => $descr,

ADD
'image'   => $image,


255. 	$descr = request_var('descr', '');

ADD
$image = request_var('image', '');


279. 	$template->assign_vars(array(
		'S_FORM_ACTION' => append_sid('upload.php'),
		'FORM_ENCTYPE' => ( $type == 'main' ?  ' enctype="multipart/form-data"' : '' ),
		'MAX_TORRENT_SIZE' => $config['max_torrent_size'],
		'NAME' => $name,
		'DESCRIPTION' => $descr,


ADD
'IMAGEIPTION' => $image,



287.	$bb_code = new bbcode($descr);
288.	$descr = $bb_code->get_html();
289.	$descr = censor_text($descr);

ADD
$bb_code = new bbcode($image);
$image = $bb_code->get_html();
$image = censor_text($image);

SQL file
image_add_torrent.sql

Code:
ALTER TABLE torrents add image text;

Themes edit

templates\bithdtv\details.html


ADD
Code:
	<tr>
    	<td class="detail" valign="top" align="right">{L_IMAGE}</td>
	    <td class="detail" valign="top" align="left"><img src="{IMAGEIPTION}"align="center" width="50%"> </td>
  	</tr>
templates\bithdtv\details_edit.html

ADD
Code:
  <tr>
    <td><label for="image">{L_IMAGE}</label></td>
    <td><textarea name="image"  cols="80">{IMAGE}</textarea>
	<br /><span class="small">{L_IMAGE_MOD}</span></td>
  </tr>
templates\bithdtv\upload_body.html

ADD
Code:
  <tr>
    <td valign="top" align="right" class="detail">{L_IMAGE}</td>
    <td valign="top" align=left class="detail"><textarea name="image" cols="100" >{IMAGE}</textarea></td>
  </tr>

languages\........\lang_main.php

ADD
Code:
		'image' => 'Image',
		'image_mod' => 'Image edit',


Click the image to open in full size.

Click the image to open in full size.

Click the image to open in full size.

Last edited by lekszikov; 26th April 2013 at 12:24.
Reply With Quote