How do online games like Ogame handle graphics packs stored on a user's hard drive?

Online games like Ogame can handle graphics packs stored on a user's hard drive by allowing users to upload the graphics pack files through the game interface. The game can then store the graphics pack files in a designated folder on the server and reference them when rendering the game for that user. This allows users to customize their game experience with their own graphics packs without compromising the security of the game.

// Example code to handle uploading and storing graphics pack files in a designated folder on the server

if(isset($_FILES['graphics_pack'])){
    $file_name = $_FILES['graphics_pack']['name'];
    $file_tmp = $_FILES['graphics_pack']['tmp_name'];
    $file_type = $_FILES['graphics_pack']['type'];
    
    $upload_folder = "graphics_packs/";
    
    if(move_uploaded_file($file_tmp, $upload_folder.$file_name)){
        echo "Graphics pack uploaded successfully!";
    } else{
        echo "Error uploading graphics pack.";
    }
}