Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4257
Latest: Alex998.
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 43293
Total Topics: 7522
Most Online Today: 118
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 97
Total: 97

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - rtyug

Pages: [1]
1
Site Discussion / analogue of Cpanel
« on: April 17, 2008, 11:42:56 pm »
how does think modification is needed in smf for management a server??

an idea appeared to write, analogue of Cpanel

2
Modifications Talk / Switch to 2.0 beta 3
« on: April 01, 2008, 05:42:21 am »
attention

Download System
1. will there be translation fashion on the version of 2.0 beta 3 ?
2. can you help to translate on this version? also safely to make an update from an old version on new one?

3
SMF Gallery Lite / load of files on a server from a folder
« on: February 07, 2008, 10:05:21 pm »
load of files on a server from a folder ?

4
SMF Gallery Lite / <prev | next >
« on: February 03, 2008, 03:18:36 pm »
Gallery.template.php

Code: [Select]
................................




<tr class="windowbg2">
<td align="center"><b>
<a href="', $scripturl, '?action=gallery;sa=prev;id=', $context['gallery_pic']['ID_PICTURE'], '">', $txt['gallery_text_prev'], '</a> |
<a href="', $scripturl, '?action=gallery;sa=next;id=', $context['gallery_pic']['ID_PICTURE'], '">', $txt['gallery_text_next'], '</a>
</b>
</div>
</td>
</tr>




.............................


the buttons are visible! but does not commute, kicks about on a main page the photo of gallery when want to pass to the following...

how to do that did work, what I had forgotten? where to look?








Gallery.php


Code: [Select]
...................................



function PreviousDownload()
{
global $db_prefix, $txt, $scripturl;

$id = (int) $_REQUEST['id'];
// if (empty($id))
// fatal_error($txt['downloads_error_no_file_selected']);

// Get the category
$dbresult = db_query("
SELECT
ID_PICTURE, ID_CAT
FROM {$db_prefix}gallery_pic
WHERE ID_PICTURE = $id  LIMIT 1", __FILE__, __LINE__);
$row = mysql_fetch_assoc($dbresult);
$ID_CAT = $row['ID_CAT'];

mysql_free_result($dbresult);

// Get previous download
$dbresult = db_query("
SELECT
ID_PICTURE
FROM {$db_prefix}gallery_pic
WHERE ID_CAT = $ID_CAT AND approved = 1 AND ID_PICTURE > $id  LIMIT 1", __FILE__, __LINE__);
if (db_affected_rows() != 0)
{
$row = mysql_fetch_assoc($dbresult);
$ID_PICTURE = $row['ID_PICTURE'];
}
else
$ID_PICTURE = $id;

mysql_free_result($dbresult);

redirectexit('action=gallery;sa=view;id=' . $ID_PICTURE);
}
function NextDownload()
{
global $db_prefix, $txt, $scripturl;

$id = (int) $_REQUEST['id'];
// if (empty($id))
// fatal_error($txt['downloads_error_no_file_selected']);

// Get the category
$dbresult = db_query("
SELECT
ID_PICTURE, ID_CAT
FROM {$db_prefix}gallery_pic
WHERE ID_PICTURE = $id  LIMIT 1", __FILE__, __LINE__);
$row = mysql_fetch_assoc($dbresult);
$ID_CAT = $row['ID_CAT'];

mysql_free_result($dbresult);

// Get  download
$dbresult = db_query("
SELECT
ID_PICTURE
FROM {$db_prefix}gallery_pic
WHERE ID_CAT = $ID_CAT AND approved = 1 AND ID_PICTURE < $id
ORDER BY ID_PICTURE DESC LIMIT 1", __FILE__, __LINE__);
if (db_affected_rows() != 0)
{
$row = mysql_fetch_assoc($dbresult);
$ID_PICTURE = $row['ID_PICTURE'];
}
else
$ID_PICTURE = $id;
mysql_free_result($dbresult);

redirectexit('action=gallery;sa=view;id=' . $ID_PICTURE);
}






..................................


5
General SMF Forum / SQLite to MySQL && MySQL to PostgreSQL
« on: January 31, 2008, 04:53:30 pm »
I put forum 2.0 beta 1

on large an audience not planned, on it it wanted Sqlite!
but if a base will be large and if there will be plenty of queries!!

is it possible it will be to convert a script? are there such? by hands is it possible on PERL? if possibly that is it possible reference??

SQLite to MySQL
MySQL to PostgreSQL

6
Modifications Talk / large files Download System
« on: January 10, 2008, 05:49:01 am »
how to get large files? anymore 500mb? which were begun to the swing normally
for  me error here at getting, writes nothing simply stopped!!
Code: [Select]
index.php?action=downloads;sa=downfile;id=82

(In tuning it is certainly included more 1gb ... and in php.ini also)
Code: [Select]
post_max_size = 10000M
file_uploads = On
; Maximum allowed size for uploaded files.
upload_max_filesize = 1000M

works to 400mb stopped farther, say horrors!!

say please!!

7
Modifications Talk / Limit Download System
« on: December 26, 2007, 05:42:52 pm »
prompt me please how to limit the amount of Download's ?

that one host could get in one file and in one stream...

8
Modifications Talk / Download System++ (php)
« on: December 21, 2007, 09:10:06 pm »
http://custom.simplemachines.org/mods/index.php?mod=992

very good system for files


It is needed to do determination of ip client which was connected and if this ip not included in the list of present networks that to forbid to begin to the swing and get files!!!
more detailed http://ua-ix.com/eng.phtml

I insert a code somewhere, but for me does not turn out to do!!
Code: [Select]
$ip = getenv('REMOTE_ADDR');                                                    


here code
Code: [Select]
<?
// wget http://www.colocall.net/ua/?list -O ua-list.txt

function parse_net($ip)
{
sscanf ($ip, "%d.%d.%d.%d/%d", $one, $two, $three, $four, $mask);
$addr = $one*pow(2,24) + $two*pow(2,16) + $three*pow(2,8) + $four;
for ($i = 0; $i < round($mask); $i++) $bitmask += 1 << (31 - $i);
return array($addr, $addr+abs($bitmask));
}

function parse_ip($ip)
{
sscanf ($ip, "%d.%d.%d.%d", $one, $two, $three, $four);
return $one*pow(2,24) + $two*pow(2,16) + $three*pow(2,8) + $four;
}
function check_ip($ip)
{
$f=file('ua-list.txt');
$IP=parse_ip($ip);
foreach ($f as $net)
{
list($min,$max)=parse_net(trim($net));
if ($IP>=$min && $IP<$max) return true;
}
return false;
}

$ip=$_SERVER["argv"][1];

if (check_ip($ip)) echo "OK - host '$ip' in UA-IX\n";
else echo "FALSE - host '$ip' NOT in UA-IX\n";

?>

вот код download.php

http://2info.dp.ua/403/download.txt


+ Downloads.english-utf8.php


Pages: [1]

+- Recent Topics

Rate own images by fvlog19
April 11, 2024, 10:56:53 am

Tidy Child Boards on 2.1.4 by SMFHacks
April 04, 2024, 03:54:12 pm

Problems SMF 2.0.19 > 2.1.4 SMF Gallery Pro - Recents Images to overall header by Michel68
March 30, 2024, 12:41:08 pm

Can't DROP 'id_member'; check that column/key exists Datei: by SMFHacks
March 30, 2024, 11:58:20 am

No thumbnails on new uploads by Tonyvic
March 29, 2024, 06:26:18 am

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

Powered by EzPortal